/* ============================================================
   Synaxis Resources — e.Republic resource-detail page (POC)
   Pixel target: JJ mockup (Resource-Detail-Page.pdf) + live e.Republic house style.
   Tokens (sampled from erepublic.com):
     ink/slate  #29333f   body/headings + footer bg
     nav teal   #0d4d4e   header nav links
     eyebrow    #1c7482   asset-type + card labels
     brand teal #005460
     CTA orange #ef4f00   content buttons  (hover #d34601)
     nav orange #ff5002   CONTACT US button (hover #ee4801)
   Type: Roboto Slab (300) headings · Roboto (400) body
   ============================================================ */

/* ---- Scoped reset (page renders via plugin template on a neutral theme) ---- */
.erp-page { margin: 0; background: #fff; color: #29333f;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.erp-page *, .erp-page *::before, .erp-page *::after { box-sizing: border-box; }
.erp-page img { max-width: 100%; height: auto; }
.erp-page a { color: inherit; text-decoration: none; }
.erp-page figure { margin: 0; }
/* NB: do NOT zero h1/h2/p/ul margins here — element selectors (.erp-page h1)
   out-rank the single-class typography rules below and would suppress them. */

.erp-wrap { width: 90%; max-width: 1300px; margin-inline: auto; }

/* ============================================================
   HEADER
   ============================================================ */
.erp-header { background: #fff; border-bottom: 1px solid #eef0f2; padding: 20px 0; }
.erp-header .erp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.erp-logo img { height: 34px; width: auto; display: block; }
.erp-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }

/* top row: Careers + CONTACT US */
.erp-nav-top { display: flex; align-items: center; gap: 26px; }
.erp-nav-top a.erp-top-link { color: #0d4d4e; font-family: "Roboto Slab", Georgia, serif; font-size: 14px; }
.erp-nav-top a.erp-top-link:hover { color: #1c7482; }
/* .erp-page prefix: out-rank the `.erp-page a { color: inherit }` reset so the
   button text is white, matching the hero (two-class) button. */
.erp-page .erp-contact { background: #ff5002; color: #fff; -webkit-text-fill-color: #fff;
  font-size: 13px; font-weight: 400; padding: 10px 22px; border-radius: 6px; letter-spacing: .01em; line-height: 1; }
.erp-page .erp-contact:hover { background: #ee4801; }

/* main nav row */
.erp-nav-main { display: flex; align-items: center; gap: 30px; }
.erp-nav-main a { color: #0d4d4e; font-family: "Roboto Slab", Georgia, serif; font-size: 16px;
  display: inline-flex; align-items: center; }
.erp-nav-main a:hover { color: #1c7482; }
.erp-nav-main a::after { content: ""; display: inline-block; width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); margin-left: 9px; opacity: .65; }

/* ============================================================
   BODY — single centered channel  (v0.3.1)
   JJ #5: the webinar video runs the FULL channel width, larger, clean
   on white (no dark boxed right-rail). Text sits at a readable measure,
   left-aligned to the channel; the video + CTA fill the whole channel.
   ============================================================ */
.erp-main { padding: 52px 0 72px; }
.erp-main .erp-wrap { max-width: 900px; }                 /* the content channel */
.erp-main .erp-wrap > * { margin-left: 0; margin-right: 0; } /* left-aligned within the channel */

/* text blocks: comfortable reading measure, left edge flush with the video */
.erp-main .erp-wrap > .erp-eyebrow,
.erp-main .erp-wrap > .erp-h1,
.erp-main .erp-wrap > .erp-h2,
.erp-main .erp-wrap > .erp-body,
.erp-main .erp-wrap > .erp-intro,
.erp-main .erp-wrap > .erp-list { max-width: 760px; }

/* eyebrow */
.erp-eyebrow { color: #1c7482; font-size: 15px; font-weight: 500; letter-spacing: .01em; margin: 0 0 14px; }

/* headings */
.erp-h1 { font-family: "Roboto Slab", Georgia, serif; font-weight: 300; font-size: 46px;
  line-height: 1.1; color: #29333f; margin: 0 0 20px; letter-spacing: -.005em; }
.erp-h2 { font-family: "Roboto Slab", Georgia, serif; font-weight: 300; font-size: 30px;
  line-height: 1.2; color: #29333f; margin: 44px 0 16px; }
.erp-h1 + .erp-h2 { margin-top: 20px; }

/* body copy */
.erp-body { font-size: 16px; line-height: 1.72; color: #333f4c; margin: 0 0 20px; }
.erp-body:last-child { margin-bottom: 0; }
.erp-intro { margin-bottom: 14px; }

/* What You'll Discover — disc bullets */
.erp-list { list-style: disc; padding: 0 0 0 1.35em; margin: 10px 0 0; }
.erp-list li::marker { color: #333f4c; }
.erp-list li { font-size: 16px; line-height: 1.55; color: #333f4c; margin: 0 0 13px; }
.erp-list li:last-child { margin-bottom: 0; }

/* ---- Webinar asset: full-channel video, clean on white ----
   Override WP's "constrained" group layout (it centres + narrows children);
   we want the video to fill the whole channel, left-aligned with the text. */
.erp-asset { margin: 32px 0 0 !important; max-width: 900px; padding: 0 !important; }
.erp-asset > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.erp-asset .wp-block-video { width: 100% !important; max-width: none !important; margin: 0 !important; }
.erp-asset video { display: block; width: 100% !important; max-width: none !important;
  aspect-ratio: 16 / 9; height: auto; object-fit: cover;
  background: #0d1b1e; border: 1px solid #e2e5ea; border-radius: 14px; }

/* slim CTA under the video — trimmer than the standard Download button */
.erp-cta { margin: 18px 0 6px; max-width: 900px; }
.erp-cta .wp-block-button { width: auto; }
.erp-btn .wp-block-button__link { display: inline-block; width: auto;
  background: #ef4f00; color: #fff; -webkit-text-fill-color: #fff; font-family: Roboto, sans-serif;
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  padding: 9px 20px; border-radius: 6px; line-height: 1; }
.erp-btn .wp-block-button__link:hover { background: #d34601; }

/* ============================================================
   RELATED RESOURCES band
   ============================================================ */
.erp-related { background: #f2f3f9; padding: 64px 0 72px; } /* measured off the navigator page 7/17 */
.erp-related h2 { text-align: center; font-family: "Roboto Slab", Georgia, serif; font-weight: 300;
  font-size: 30px; line-height: 1.2; color: #29333f; margin: 0 0 40px; }
.erp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1180px; margin-inline: auto; }
.erp-card { background: #fff; border: 1px solid #e6e7f1; border-radius: 12px; overflow: hidden;
  box-shadow: none; display: flex; flex-direction: column; }
.erp-card-img { width: 100%; height: 200px; object-fit: cover; display: block;
  /* Round the image's top corners to the card's INNER radius (12px card − 1px
     border = 11px). overflow:hidden alone leaves the square image corners
     peeking past the rounded border — JJ's "poorly rounded corners" (7/18). */
  border-top-left-radius: 11px; border-top-right-radius: 11px; }
.erp-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.erp-card-eyebrow { color: #ff5002; font-family: Roboto, sans-serif; font-size: 13px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 1.3px; margin: 0 0 8px; }
.erp-card-title { font-family: Roboto, sans-serif; font-weight: 400; font-size: 18px;
  line-height: 1.35; color: #29333f; margin: 0 0 10px; }
.erp-card-meta { color: #6b7280; font-size: 14px; margin: 0 0 20px; }
.erp-card-link { margin-top: auto; align-self: center; color: #ff5002; padding: 6px 0 2px; }
.erp-card-link:hover { color: #d34601; }

/* ============================================================
   FOOTER
   ============================================================ */
.erp-footer { background: #29333f; color: #fff; padding: 56px 0 48px; }
.erp-footer .erp-wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; }
.erp-foot-brand { display: flex; flex-direction: column; }
.erp-foot-logo { height: 30px; width: auto; margin: 0 0 20px; }
.erp-foot-copy { font-size: 14px; color: rgba(255,255,255,.72); margin: 0 0 10px; }
.erp-foot-legal { font-size: 13px; color: rgba(255,255,255,.72); margin: 0 0 22px; }
.erp-foot-legal a { color: rgba(255,255,255,.72); }
.erp-foot-legal a:hover { color: #fff; }
.erp-foot-legal .sep { padding: 0 8px; opacity: .5; }
.erp-social { display: flex; gap: 12px; }
.erp-social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; }
.erp-social a:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.erp-social svg { width: 15px; height: 15px; fill: #fff; }
.erp-foot-col h3 { font-family: "Roboto", sans-serif; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.8); margin: 4px 0 16px; }
.erp-foot-col ul { list-style: none; padding: 0; margin: 0; }
.erp-foot-col li { margin: 0 0 11px; }
.erp-foot-col a { font-size: 15px; color: rgba(255,255,255,.88); }
.erp-foot-col a:hover { color: #ff8a5c; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .erp-main .erp-wrap { max-width: 620px; }
  .erp-main .erp-wrap > .erp-eyebrow,
  .erp-main .erp-wrap > .erp-h1,
  .erp-main .erp-wrap > .erp-h2,
  .erp-main .erp-wrap > .erp-body,
  .erp-main .erp-wrap > .erp-intro,
  .erp-main .erp-wrap > .erp-list,
  .erp-asset, .erp-cta { max-width: 100%; }
  .erp-footer .erp-wrap { grid-template-columns: 1fr 1fr; }
  .erp-foot-brand { grid-column: 1 / -1; margin-bottom: 8px; }
  .erp-cards { grid-template-columns: 1fr; max-width: 460px; }
  .erp-h1 { font-size: 38px; }
}
@media (max-width: 820px) {
  .erp-header .erp-wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .erp-nav { align-items: flex-start; }
  .erp-nav-main { flex-wrap: wrap; gap: 16px 22px; }
}
@media (max-width: 560px) {
  .erp-h1 { font-size: 32px; }
  .erp-footer .erp-wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   FORGIVING CONTENT EDITING — JJ notes, 2026-07-17 (single-channel)
   Any block a non-technical editor adds to the resource body inherits the
   house look and the channel width, whether typed fresh or pasted. Custom
   erp-* pattern classes still win where present, so the starter content is
   untouched; this only catches bare blocks. Mirrored into the editor canvas
   below so it is true WYSIWYG.
   ============================================================ */

/* bare text-ish blocks tuck into the reading measure; media/buttons stay full-channel */
.erp-main .erp-wrap > h1.wp-block-heading:not(.erp-h1),
.erp-main .erp-wrap > h2.wp-block-heading:not(.erp-h2),
.erp-main .erp-wrap > h3.wp-block-heading,
.erp-main .erp-wrap > p.wp-block-paragraph:not(.erp-body):not(.erp-eyebrow):not(.erp-intro),
.erp-main .erp-wrap > .wp-block-list:not(.erp-list),
.erp-main .erp-wrap > .wp-block-quote { max-width: 760px; }

/* --- house typography for bare core blocks (front-end) --- */
.erp-main .erp-wrap > h1.wp-block-heading:not(.erp-h1) {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 300; font-size: 46px;
  line-height: 1.1; color: #29333f; margin: 0 0 20px; letter-spacing: -.005em; }
.erp-main .erp-wrap > h2.wp-block-heading:not(.erp-h2) {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 300; font-size: 30px;
  line-height: 1.2; color: #29333f; margin: 44px 0 16px; }
.erp-main .erp-wrap > h3.wp-block-heading:not([class*="erp-"]) {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 400; font-size: 22px;
  line-height: 1.25; color: #29333f; margin: 32px 0 12px; }
.erp-main .erp-wrap > p.wp-block-paragraph:not(.erp-body):not(.erp-eyebrow):not(.erp-intro) {
  font-size: 16px; line-height: 1.72; color: #333f4c; margin: 0 0 20px; }
.erp-main .erp-wrap > .wp-block-list:not(.erp-list) {
  font-size: 16px; line-height: 1.72; color: #333f4c; margin: 10px 0 20px; padding-left: 1.35em; }
.erp-main .erp-wrap > .wp-block-list:not(.erp-list) li { margin: 0 0 8px; }

/* bare button (no .erp-btn) inherits the orange Download-button look */
.erp-main .erp-wrap > .wp-block-buttons .wp-block-button__link {
  display: inline-block; width: auto; background: #ef4f00; color: #fff;
  -webkit-text-fill-color: #fff; font-family: Roboto, sans-serif; font-size: 13px;
  font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  padding: 9px 20px; border-radius: 6px; line-height: 1; }
.erp-main .erp-wrap > .wp-block-buttons .wp-block-button__link:hover { background: #d34601; }

/* --- same house look INSIDE the editor canvas (WYSIWYG) ---
   Scoped to .editor-styles-wrapper; the editor style is enqueued only on the
   sx_resource screen, so these never touch another post type's editor. */
.editor-styles-wrapper h1.wp-block-heading:not(.erp-h1) {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 300; font-size: 46px;
  line-height: 1.1; color: #29333f; letter-spacing: -.005em; }
.editor-styles-wrapper h2.wp-block-heading:not(.erp-h2) {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 300; font-size: 30px;
  line-height: 1.2; color: #29333f; }
.editor-styles-wrapper h3.wp-block-heading:not([class*="erp-"]) {
  font-family: "Roboto Slab", Georgia, serif; font-weight: 400; font-size: 22px;
  line-height: 1.25; color: #29333f; }
.editor-styles-wrapper p.wp-block-paragraph:not(.erp-body):not(.erp-eyebrow):not(.erp-intro) {
  font-size: 16px; line-height: 1.72; color: #333f4c; }
.editor-styles-wrapper .wp-block-list:not(.erp-list) {
  font-size: 16px; line-height: 1.72; color: #333f4c; }
.editor-styles-wrapper .wp-block-button__link {
  background: #ef4f00; color: #fff; -webkit-text-fill-color: #fff;
  font-family: Roboto, sans-serif; font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em; padding: 9px 20px;
  border-radius: 6px; line-height: 1; }

/* ---- Ungated variant: thumbnail + download (full-channel too) ---- */
.erp-asset .erp-thumb, .erp-asset .erp-thumb img { display: block; width: 100%; height: auto; margin: 0; }

/* ---- Gated HubSpot form variant ---- */
.erp-hs { background: #fff; padding: 24px; }
.erp-hs-head { font-family: "Roboto Slab", serif; font-size: 20px; font-weight: 600; color: #15202b; margin: 0 0 14px; }
.erp-hs-mock { display: flex; flex-direction: column; gap: 12px; }
.erp-hs-mock label { display: flex; flex-direction: column; gap: 4px; font: 500 13px/1.3 Roboto, sans-serif; color: #334155; }
.erp-hs-mock input { border: 1px solid #cbd5e1; border-radius: 4px; padding: 9px 10px; font: 400 14px Roboto, sans-serif; }
.erp-hs-submit { background: #ef4f00; color: #fff; border: 0; border-radius: 4px; padding: 12px 18px; font: 500 14px Roboto, sans-serif; cursor: pointer; margin-top: 4px; }
.erp-hs-submit:hover { background: #d34601; }
