/* ==========================================================================
   ReadyForRole — rfr-blog-v2.css (September 2026)
   Editorial article template for /blog/ posts. Additive: loaded after
   premium.css + rfr-additions.css, scoped to .rfr-post-page / .rfr-post-*.
   Nothing here touches the old .rfr-article styles used by earlier posts.
   ========================================================================== */

/* ---------- reading progress ---------- */
.rfr-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 1040;
  background: transparent;
  pointer-events: none;
}
.rfr-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-1, #16356F), var(--brand-2, #2380B9) 55%, var(--brand-3, #25B786));
  box-shadow: 0 0 12px rgba(35, 128, 185, .55);
  transition: width .12s linear;
}

/* ---------- hero ---------- */
.rfr-post-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 64px;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(35, 128, 185, .38), transparent 60%),
    radial-gradient(700px 380px at 88% 0%, rgba(37, 183, 134, .26), transparent 62%),
    linear-gradient(160deg, #0d1b31 0%, #16356F 60%, #12508a 100%);
  color: #fff;
}
.rfr-post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}
.rfr-post-hero > .container { position: relative; z-index: 1; }
.rfr-post-crumbs { font-size: .84rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.rfr-post-crumbs a { color: #9fd3f3; text-decoration: none; }
.rfr-post-crumbs a:hover { color: #fff; text-decoration: underline; }
.rfr-post-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #d8f3ea;
  background: rgba(37, 183, 134, .18);
  border: 1px solid rgba(37, 183, 134, .45);
  border-radius: 999px;
  padding: .4rem 1rem;
  margin-bottom: 1.1rem;
}
.rfr-post-title {
  font-family: var(--rfr-display, "Montserrat", sans-serif);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: #fff;
  max-width: 17ch;
  margin: 0 0 1rem;
}
@media (min-width: 992px) { .rfr-post-title { max-width: 22ch; } }
.rfr-post-dek {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  max-width: 62ch;
  margin: 0 0 1.6rem;
}
.rfr-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.4rem;
  font-size: .88rem;
  color: rgba(255,255,255,.78);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.rfr-post-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.rfr-post-meta i { color: #7fc9ef; }
.rfr-post-byline {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  color: #fff;
}
.rfr-post-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-2, #2380B9), var(--brand-3, #25B786));
  color: #fff;
  font-size: .95rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

/* ---------- layout ---------- */
.rfr-post-body { padding: 3.25rem 0 1rem; background: linear-gradient(180deg, #fff 0%, var(--brand-2-050, #f2f8fc) 100%); }
.rfr-post-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .rfr-post-wrap { grid-template-columns: 250px minmax(0, 1fr); gap: 3.5rem; }
}

/* ---------- side rail ---------- */
.rfr-post-rail { position: relative; }
@media (min-width: 992px) {
  .rfr-post-rail { position: sticky; top: 110px; align-self: start; max-height: calc(100vh - 140px); overflow-y: auto; }
  .rfr-post-rail::-webkit-scrollbar { width: 4px; }
  .rfr-post-rail::-webkit-scrollbar-thumb { background: rgba(22,53,111,.18); border-radius: 4px; }
}
.rfr-rail-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-2-deep, #175d87);
  margin-bottom: .75rem;
}
.rfr-rail-nav { list-style: none; margin: 0 0 1.5rem; padding: 0; border-left: 2px solid rgba(22,53,111,.12); }
.rfr-rail-nav a {
  display: block;
  padding: .45rem 0 .45rem 1rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: .88rem;
  line-height: 1.45;
  color: var(--rfr-muted, #51648a);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.rfr-rail-nav a:hover { color: var(--brand-2, #2380B9); }
.rfr-rail-nav a.is-active {
  color: var(--rfr-ink-2, #132a47);
  font-weight: 700;
  border-left-color: var(--brand-3, #25B786);
}
.rfr-rail-cta {
  background: #fff;
  border: 1px solid var(--rfr-line, rgba(22,53,111,.10));
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 10px 26px -18px rgba(22,53,111,.45);
}
.rfr-rail-cta h4 { font-size: .95rem; font-weight: 700; color: var(--rfr-ink-2, #132a47); margin: 0 0 .35rem; }
.rfr-rail-cta p { font-size: .82rem; line-height: 1.55; color: var(--rfr-muted, #51648a); margin: 0 0 .8rem; }
.rfr-rail-cta a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .84rem;
  font-weight: 700;
  color: var(--brand-2, #2380B9);
  text-decoration: none;
}
.rfr-rail-cta a:hover { gap: .6rem; }
/* mobile: collapsible contents */
.rfr-rail-toggle {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid var(--rfr-line, rgba(22,53,111,.10));
  border-radius: 14px;
  padding: .85rem 1.1rem;
  font-weight: 700;
  color: var(--rfr-ink-2, #132a47);
  text-align: left;
  cursor: pointer;
}
.rfr-rail-toggle::after { content: "\203A"; float: right; transform: rotate(90deg); display: inline-block; }
@media (min-width: 992px) { .rfr-rail-toggle { display: none; } }
@media (max-width: 991.98px) {
  .rfr-rail-inner { display: none; padding-top: 1rem; }
  .rfr-post-rail.is-open .rfr-rail-inner { display: block; }
  .rfr-rail-cta { display: none; }
}

/* ---------- article typography ---------- */
.rfr-post {
  max-width: 74ch;
  font-size: 1.06rem;
  line-height: 1.85;
  color: #33455f;
}
.rfr-post > p { margin: 0 0 1.35rem; }
.rfr-post strong { color: var(--rfr-ink-2, #132a47); font-weight: 700; }
.rfr-post em { color: #43587a; }
.rfr-post a:not(.rfr-action-btn) {
  color: var(--brand-2-deep, #175d87);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(transparent 62%, rgba(37,183,134,.32) 0);
  transition: background-size .25s ease, color .2s ease;
}
.rfr-post a:not(.rfr-action-btn):hover { color: var(--brand-1, #16356F); background-image: linear-gradient(transparent 62%, rgba(37,183,134,.6) 0); }

.rfr-post-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--rfr-ink-2, #132a47);
  font-weight: 500;
  padding: 0 0 1.4rem;
  border-bottom: 1px solid var(--rfr-line, rgba(22,53,111,.10));
  margin-bottom: 1.8rem;
}
.rfr-post-lead em { font-style: normal; }

.rfr-post h2 {
  counter-increment: rfr-sec;
  position: relative;
  font-family: var(--rfr-display, "Montserrat", sans-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.28;
  color: var(--rfr-ink-2, #132a47);
  margin: 3rem 0 1.1rem;
  padding-top: 1.25rem;
  scroll-margin-top: 120px;
}
.rfr-post { counter-reset: rfr-sec; }
.rfr-post h2::before {
  content: counter(rfr-sec, decimal-leading-zero);
  display: block;
  font-family: var(--rfr-display, "Montserrat", sans-serif);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--brand-3-deep, #178a64);
  margin-bottom: .35rem;
}
.rfr-post h2::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: var(--rfr-grad, linear-gradient(100deg, #16356F, #2380B9, #25B786));
}
.rfr-post h3 {
  font-family: var(--rfr-display, "Montserrat", sans-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--rfr-ink-2, #132a47);
  margin: 2rem 0 .6rem;
  padding-left: .85rem;
  border-left: 3px solid var(--brand-2, #2380B9);
  scroll-margin-top: 120px;
}
.rfr-post ul, .rfr-post ol { margin: 0 0 1.35rem; padding-left: 1.25rem; }
.rfr-post li { margin-bottom: .55rem; }

.rfr-rule {
  border: 0;
  height: 1px;
  margin: 2.75rem 0;
  background: linear-gradient(90deg, transparent, rgba(22,53,111,.18) 15%, rgba(22,53,111,.18) 85%, transparent);
  position: relative;
  overflow: visible;
}
.rfr-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px; height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--brand-3, #25B786);
  border-radius: 2px;
  box-shadow: 0 0 0 5px var(--brand-2-050, #f2f8fc);
}

/* ---------- key-insight panel (replaces the plain quick-answer box) ---------- */
.rfr-post-key {
  position: relative;
  background: linear-gradient(135deg, #ffffff, var(--brand-3-050, #f0fbf7));
  border: 1px solid rgba(37,183,134,.3);
  border-radius: 20px;
  padding: 1.6rem 1.75rem 1.5rem 4.4rem;
  margin: 0 0 2.25rem;
  box-shadow: 0 16px 36px -26px rgba(22,53,111,.5);
}
.rfr-post-key::before {
  content: "\F431"; /* bi-lightbulb */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 1.5rem;
  top: 1.55rem;
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-3, #25B786), var(--brand-2, #2380B9));
  box-shadow: 0 8px 16px -8px rgba(37,183,134,.8);
}
.rfr-post-key .rfr-key-label {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-3-deep, #178a64);
  margin-bottom: .45rem;
}
.rfr-post-key p { margin: 0; font-size: 1.02rem; line-height: 1.75; color: var(--rfr-ink-2, #132a47); }

/* ---------- pull quote ---------- */
.rfr-pq-label {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-2-deep, #175d87);
  margin-bottom: .4rem;
}
.rfr-pullquote {
  margin: 2.25rem 0;
  padding: 1.35rem 0 1.35rem 1.6rem;
  border-left: 4px solid var(--brand-2, #2380B9);
  font-family: var(--rfr-display, "Montserrat", sans-serif);
  font-size: 1.18rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--rfr-ink-2, #132a47);
}

/* ---------- takeaway cards ---------- */
.rfr-takeaways {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: .85rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
}
.rfr-takeaways li {
  position: relative;
  background: #fff;
  border: 1px solid var(--rfr-line, rgba(22,53,111,.10));
  border-radius: 14px;
  padding: .95rem 1.1rem .95rem 2.9rem;
  font-size: .95rem;
  line-height: 1.6;
  margin: 0;
  box-shadow: 0 8px 22px -20px rgba(22,53,111,.8);
}
.rfr-takeaways li::before {
  content: "\F26E"; /* bi-check2 */
  font-family: "bootstrap-icons";
  position: absolute;
  left: .95rem;
  top: .95rem;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-3, #25B786), var(--brand-2, #2380B9));
}

/* ---------- numbered gate / framework cards ---------- */
.rfr-gate { counter-reset: rfr-gate; list-style: none; margin: 1.5rem 0 2rem; padding: 0; }
.rfr-gate li {
  counter-increment: rfr-gate;
  position: relative;
  background: #fff;
  border: 1px solid var(--rfr-line, rgba(22,53,111,.10));
  border-left: 3px solid var(--brand-2, #2380B9);
  border-radius: 14px;
  padding: 1rem 1.15rem 1rem 3.6rem;
  margin: 0 0 .75rem;
  font-size: .96rem;
  line-height: 1.6;
  box-shadow: 0 8px 22px -20px rgba(22,53,111,.8);
}
.rfr-gate li::before {
  content: counter(rfr-gate, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-family: var(--rfr-display, "Montserrat", sans-serif);
  font-size: .82rem;
  font-weight: 800;
  color: var(--brand-2-deep, #175d87);
  background: var(--brand-2-100, #e2f0f8);
  border-radius: 8px;
  padding: .2rem .45rem;
}
.rfr-gate b { display: block; color: var(--rfr-ink-2, #132a47); margin-bottom: .15rem; }
.rfr-gate .rfr-gate-scale {
  display: block;
  width: max-content;
  margin-top: .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rfr-muted-2, #6d7f9f);
  background: var(--brand-2-050, #f2f8fc);
  border-radius: 999px;
  padding: .25rem .7rem;
}

/* ---------- share ---------- */
.rfr-share { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: 2.5rem 0 0; }
.rfr-share span { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rfr-muted-2, #6d7f9f); margin-right: .35rem; }
.rfr-share a, .rfr-share button {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--rfr-line, rgba(22,53,111,.12));
  background: #fff;
  color: var(--rfr-ink-2, #132a47);
  cursor: pointer;
  transition: transform .25s ease, color .2s ease, border-color .2s ease;
}
.rfr-share a:hover, .rfr-share button:hover { transform: translateY(-2px); color: var(--brand-2, #2380B9); border-color: var(--brand-2, #2380B9); }
.rfr-share .rfr-copied { font-size: .8rem; color: var(--brand-3-deep, #178a64); font-weight: 600; }

/* ---------- end card ---------- */
.rfr-post-end {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--brand-1, #16356F), var(--brand-2, #2380B9));
  border-radius: 22px;
  padding: 2.25rem;
  color: #fff;
  text-align: center;
}
.rfr-post-end h2 { color: #fff !important; margin: 0 0 .6rem !important; padding: 0 !important; counter-increment: none; }
.rfr-post-end h2::before, .rfr-post-end h2::after { display: none; }
.rfr-post-end p { color: rgba(255,255,255,.85); max-width: 60ch; margin: 0 auto 1.4rem; }
.rfr-post-end .rfr-action-btn { background: #fff; color: var(--brand-1, #16356F) !important; }
.rfr-post-end .rfr-btn-ghost {
  background: transparent;
  background-image: none;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: none;
}
.rfr-post-end .rfr-btn-ghost:hover { background: rgba(255,255,255,.12); background-image: none; border-color: #fff; color: #fff !important; }
.rfr-post-end .rfr-action-btn::after { display: none; }

/* ---------- author strip ---------- */
.rfr-post-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--rfr-line, rgba(22,53,111,.10));
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  margin-top: 2.5rem;
}
.rfr-post-author .rfr-post-avatar { width: 46px; height: 46px; font-size: 1.2rem; flex-shrink: 0; }
.rfr-post-author h4 { font-size: 1rem; font-weight: 700; color: var(--rfr-ink-2, #132a47); margin: 0 0 .2rem; }
.rfr-post-author p { font-size: .88rem; line-height: 1.55; color: var(--rfr-muted, #51648a); margin: 0; }

@media (max-width: 575.98px) {
  .rfr-post-hero { padding: 120px 0 44px; }
  .rfr-post { font-size: 1.01rem; }
  .rfr-post-key { padding: 3.6rem 1.25rem 1.3rem; }
  .rfr-post-key::before { top: 1.25rem; left: 1.25rem; }
  .rfr-post-end { padding: 1.6rem; }
}

@media print {
  .rfr-post-rail, .rfr-share, .rfr-post-end, .rfr-progress, .rfr-header, .rfr-footer, #scroll-top { display: none !important; }
  .rfr-post-hero { background: none; color: #000; padding: 0 0 1rem; }
  .rfr-post-title, .rfr-post-dek, .rfr-post-meta { color: #000; }
  .rfr-post-wrap { display: block; }
}

/* ---------- end-of-article CTA buttons ---------- */
.rfr-post-end .d-flex { flex-wrap: wrap; }
.rfr-post-end .rfr-action-btn {
  font-size: .88rem;
  padding: 13px 18px;
  white-space: normal;
  text-wrap: balance;
  max-width: 100%;
}
@media (max-width: 575.98px) {
  .rfr-post-end .rfr-action-btn { width: 100%; font-size: .88rem; padding: 12px 16px; }
}
