/* 10-uplift.css — Phase 6b rebuild-clean styling to the REINSW source look.
   Authored against ground-truth/pages/home/shot-1440.png (frozen source capture).
   Loaded AFTER vendor CSS + theme-tokens; deliberately overrides both where the
   source visual system lived in excluded Telerik bundles (D-T1-26). */

/* ---------- corrected brand tokens (visible palette from source capture) ---------- */
:root {
  --rn-navy: #1b2a6b;
  --rn-navy-dark: #131c4e;
  /* S5 family-1: source computed heading/link colour rgb(0,75,139) — the 6b
     value #2a4dd0 was a pixel-sampling guess (registry capture-v1 specs) */
  --rn-blue: #004b8b;
  --rn-text: #1a1818; /* source body text rgb(26,24,24) — was #333 */
  --rn-teal: #00a7b5;
  --rn-purple: #8e2ba8;
  --rn-magenta: #b52ab0;
  --rn-green: #3fa544;
  --rn-orange: #FF8204; /* T2 source-match: source token --reinsw-orange; #f5821f was a pixel guess */
  --rn-band-gradient: linear-gradient(115deg, #1b2a6b 0%, #14507a 35%, #00a7b5 60%, #8e2ba8 100%);
  /* T2 source-match (D-T2-07): the --purple/--teal/--royal-blue gradient overrides that
     lived here (approximations of tokens the port lacked) are REMOVED — the genuine
     definitions now load from vendor/06-source-tokens.css and must win. */
}

/* ---------- typography ---------- */
html { font-size: 62.5%; }
body {
  font-family: "franklin-gothic-urw", "Franklin Gothic", "Open Sans", Arial, sans-serif;
  font-size: 1.6rem; line-height: 1.5; color: var(--rn-text);
}
/* S5 family-1: source headings are REGULAR-width Franklin Gothic at weight 600
   (capture width test: urw 340.9 vs rendered 326.3 vs urw-cond 293.8); band
   titles compute 40px on source. The 6b -cond/700/36px was a look-guess. */
h1, h2, h3, h4, h5, h6 {
  /* T2 source-match (D-T2-07): "Franklin Gothic" (the source's self-hosted Book woff,
     05b-fast-theme-tail.css) must resolve FIRST — urw-first forced Typekit's heavier cut
     and is why rebuild headings rendered bolder than source. */
  font-family: "Franklin Gothic", "franklin-gothic-urw", Arial, sans-serif;
  font-weight: 600; color: var(--rn-blue); line-height: 1.15; margin: 0 0 .6em;
}
h1 { font-size: 4rem; }
/* Source heading system (registry capture-v1): H2 SUB-headings are orange
   32px/600 (callout, meta-panel, social-share, rich-text); band-TITLE H2s
   (card grids, logo grid, listing filter) match H1 titles — navy 40px. */
h2 { font-size: 3.2rem; color: #ff8204; }
.rn-card-grid h2, .rn-logo-grid h2, .rn-listing-filter__heading {
  font-size: 4rem; color: var(--rn-blue);
}
/* home-template zones run the Helvetica stack (heading weight 700) on source —
   quick-links tiles, partners band, stats band are home-only components */
.rn-logo-grid h2 { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; }
.rn-hero-banner--quick-links h3 { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; }
.rn-logo-grid p, .rn-stats-band p { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
h3 { font-size: 2.4rem; } h5 { font-size: 1.8rem; }
/* Title bands: source #E8EDF4 (page-title band + content hero banners).
   !important needed to beat Bootstrap's .bg-light utility on page-title-band;
   bg-* variants and the quick-links gradient still win (also !important, later) */
.page-title-band,
.rn-hero-banner:not([class*="bg-"]):not(.rn-hero-banner--quick-links) { background-color: #e8edf4 !important; }
/* Footer body text: white 14px, h5 weight 700 (family stays Franklin) */
.site-footer p { font-size: 1.4rem; color: #fff; }
.site-footer h5 { font-weight: 700; }

/* ---------- F2 (VD-01/VD-02): hero quick-links grid + stats pill ----------
   The vendor Bootstrap subset does not resolve the bare col-6/col-lg classes
   these two modules use (probe: row 200px, cols 50px) — grid declared
   explicitly here. Source look: 2×4 white tile cards edge-to-edge in the
   1360px container on the gradient; stats = white rounded strip on the same
   gradient with navy values, icon left of each KPI. */
.rn-hero-banner--quick-links .row,
.rn-stats-band__row { display: flex; flex-wrap: wrap; margin: 0 -8px; float: none !important; width: auto !important; }
.rn-hero-banner--quick-links .row > div { flex: 0 0 50%; max-width: 50%; padding: 8px; box-sizing: border-box; }
@media (min-width: 768px) {
  .rn-hero-banner--quick-links .row > div { flex: 0 0 25%; max-width: 25%; }
}
.rn-stats-band__col { flex: 1 1 11%; min-width: 96px; padding: 0 8px; box-sizing: border-box; }
.rn-hero-banner__tile {
  background: #fff; border-radius: 6px; padding: 16px 14px; height: 100%;
  display: flex; align-items: center; gap: 12px; text-align: left !important; position: relative;
}
.rn-hero-banner__tile h3 { font-size: 1.6rem; margin: 0; color: var(--rn-blue); font-weight: 700; }
.rn-hero-banner__icon { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; }
/* the tile is one visual unit on source — the link covers the card */
.rn-hero-banner__tile .cta-link { position: absolute; inset: 0; font-size: 0 !important; color: transparent !important; }
/* vendor iMIS CSS floats the header over the content (MAIN started at 0);
   source header is in-flow — content begins below it */
.site-header { float: none !important; }
.body-container-wrapper { clear: both; }
.rn-stats-band { background: var(--rn-band-gradient) !important; padding: 24px 0 40px; }
.rn-stats-band .container {
  background: #fff; border-radius: 8px; padding: 18px 20px; color: var(--rn-blue);
}
.rn-stats-band .container .rn-stats-band__value { color: var(--rn-blue); font-size: 2.2rem; font-weight: 700; }
.rn-stats-band .container .rn-stats-band__label { color: #333; font-size: 1.2rem; }
.rn-stats-band__icon { width: 22px; height: 22px; object-fit: contain; display: inline-block; vertical-align: -3px; margin-right: 6px; }
a { color: var(--rn-blue); }

/* dark bands: white text incl. headings */
.bg-purple, .bg-teal, .bg-royal-blue, .site-header, .site-footer, .rn-stats-band, .ctaband-section {
  color: #fff;
}
.bg-purple h1, .bg-purple h2, .bg-purple h3, .bg-teal h2, .bg-royal-blue h2,
.site-footer h5, .ctaband-section h2, .ctaband-section h3 { color: #fff; }

/* ---------- header / nav (source: navy band, white links, dropdown panels) ---------- */
.site-header {
  background: var(--rn-navy-dark);
  padding: 0 24px;
}
.site-header .wrapper { max-width: 1360px; margin: 0 auto; min-height: 64px; }
.header-logo-text { color: #fff; font-size: 2.4rem; font-weight: 700; letter-spacing: .5px; }
.site-header a { color: #fff; text-decoration: none; font-size: 1.4rem; }
.UtilitySection { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; align-items: center; }
.nav-toggle, .nav-toggle-checkbox { display: none; }

.nav-root { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-root > .nav-item { position: relative; }
.nav-root > .nav-item > a { display: block; padding: 20px 12px; font-weight: 600; white-space: nowrap; }
.nav-root > .nav-item:hover > a { background: var(--rn-navy); }
.nav-sub {
  list-style: none; margin: 0; padding: 8px 0; display: none;
  position: absolute; top: 100%; left: 0; min-width: 260px; z-index: 100;
  background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); border-top: 3px solid var(--rn-teal);
}
.nav-item:hover > .nav-sub { display: block; }
.nav-sub .nav-item { position: relative; }
.nav-sub a { color: #24305e !important; padding: 8px 16px; display: block; font-size: 1.4rem; }
.nav-sub a:hover { background: #eef3ff; color: var(--rn-blue) !important; }
.nav-level-2 { top: 0; left: 100%; border-top: none; border-left: 3px solid var(--rn-teal); }

@media (max-width: 992.98px) {
  .nav-toggle { display: block; cursor: pointer; }
  .nav-toggle span { display: block; width: 24px; height: 3px; background: #fff; margin: 5px 0; }
  .primary-navigation-area { display: none; width: 100%; }
  .nav-toggle-checkbox:checked ~ .primary-navigation-area { display: block; }
  .nav-root { flex-direction: column; }
  .nav-sub { position: static; box-shadow: none; }
}

/* ---------- band sections rhythm ---------- */
main .body-container > div, .dnd-section { padding: 0; }
section[class*="-section"], .rn-band { padding: 56px 24px; }
section .container, section .wrapper { max-width: 1360px; margin: 0 auto; }

/* hero banner: diagonal gradient + white tiles */
.herobanner-section, .hero-banner { background: var(--rn-band-gradient); padding: 48px 24px; }
.herobanner-section .tile, .quick-link-tile {
  background: #fff; border-radius: 6px; padding: 18px 20px; color: var(--rn-blue);
  display: flex; align-items: center; gap: 12px; font-weight: 600;
}

/* stats band: navy, white figures in a row */
.statsband-section, .rn-stats-band { background: var(--rn-navy-dark); padding: 28px 24px; }
.statsband-section .stat, .stat-item { color: #fff; text-align: center; padding: 0 14px; }
.statsband-section .stat strong, .stat-item strong { font-size: 2.6rem; display: block; }
.statsband-section .row, .rn-stats-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }

/* CTA band */
.ctaband-section { background: var(--rn-band-gradient); text-align: center; padding: 64px 24px; }
.ctaband-section .btn, .ctaband-section .button { background: var(--rn-teal); color: #fff; }

/* ---------- cards ---------- */
.card { border: 1px solid #e3e7f2; border-radius: 6px; background: #fff; }
.card-title, .card-title a { color: var(--rn-blue); font-weight: 700; }
.card-body { padding: 16px; }
.badge { background: #e8f0fe; color: var(--rn-blue); border-radius: 3px; padding: 2px 8px; font-size: 1.1rem; font-weight: 600; }
.card .badge { margin-right: 6px; }

/* coloured card header bars (source events section) */
.card-header-teal { background: var(--rn-teal); color: #fff; padding: 10px 16px; font-weight: 700; }
.card-header-magenta { background: var(--rn-magenta); color: #fff; padding: 10px 16px; font-weight: 700; }
.card-header-green { background: var(--rn-green); color: #fff; padding: 10px 16px; font-weight: 700; }

/* ---------- buttons ---------- */
.btn, .button, a.button {
  display: inline-block; padding: 10px 22px; border-radius: 4px; font-weight: 700;
  background: var(--rn-blue); color: #fff !important; text-decoration: none; border: 0; font-size: 1.4rem;
}
.btn.orange, .button.orange, .bg-orange { background: var(--rn-orange) !important; }
.btn-block { display: block; text-align: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--rn-navy-dark); padding: 56px 24px 32px; margin-top: 0; }
.site-footer .wrapper { max-width: 1360px; margin: 0 auto; }
.site-footer a { color: #fff; text-decoration: none; font-size: 1.4rem; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-main { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer .footer-main > div { flex: 1 1 220px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.footer-contact { color: #fff; }
.footer-subscribe .button { background: var(--rn-orange); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 20px; }
.legal-text, .acknowledgement { color: #9fb0e8; font-size: 1.3rem; }
.social a { margin-right: 10px; font-weight: 700; }

/* ---------- listing pages ---------- */
.blog-listing-title, .course-listing h1 { color: var(--rn-blue); }
.blog-post-header h1 { font-size: 3.2rem; }
.blog-post-meta, .blog-card-meta, .event-date { color: #6a7391; font-size: 1.3rem; }
.blog-post-image { max-width: 100%; height: auto; border-radius: 6px; margin: 12px 0 20px; }
.course-price { color: var(--rn-navy); font-weight: 700; }

/* ---------- iteration 2 (final): hero quick-links tiles + layout-context fixes ---------- */
.body-wrapper { display: block; }
.rn-hero-banner { background: var(--rn-band-gradient); padding: 40px 24px; }
.rn-hero-banner .container { max-width: 1360px; margin: 0 auto; }
.rn-hero-banner .row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.rn-hero-banner .col-6 { flex: 0 0 50%; max-width: 50%; padding: 8px; box-sizing: border-box; }
@media (min-width: 768px) {
  .rn-hero-banner .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .rn-hero-banner .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
}
.rn-hero-banner__tile {
  background: #fff; border-radius: 6px; padding: 18px 14px; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.rn-hero-banner__tile, .rn-hero-banner__tile a, .rn-hero-banner__tile h1,
.rn-hero-banner__tile h2, .rn-hero-banner__tile h3, .rn-hero-banner__tile h4,
.rn-hero-banner__tile h5, .rn-hero-banner__tile p {
  color: var(--rn-blue); font-size: 1.5rem; font-weight: 600; margin: 0; text-decoration: none;
}
.rn-hero-banner__tile .cta-link { font-size: 1.3rem; font-weight: 400; }
.rn-hero-banner--content { color: #fff; }
.rn-hero-banner--content h1, .rn-hero-banner--content h2 { color: #fff; }
.rn-hero-banner__image { max-width: 100%; height: auto; border-radius: 6px; }
/* generic module sections get band width */
section .container { max-width: 1360px; margin: 0 auto; }

/* ---------- F3 (VD-03 + hero fix-again, D-T1-32) ---------- */
/* hero tiles: icon LEFT of a single left-aligned label (vendor rule was
   beating the tile flex — hence !important, per the fix-again hint) */
.rn-hero-banner__tile { display: flex !important; flex-direction: row !important; align-items: center !important; }
.rn-hero-banner__tile h3 { text-align: left !important; margin: 0 !important; }
.rn-hero-banner__icon { width: 40px !important; height: 40px !important; margin: 0 !important; }
/* blog post/listing: capped featured image, title-band headings inherit
   .page-title-band tokens from F1 */
.blog-post-image { width: 100%; max-height: 320px; object-fit: cover; border-radius: 4px; }
.page-title-band h1 { margin: 0; }
.page-title-band .container > h1 { padding: 0; }
.blog-post-tags .badge, .blog-card-tags .badge { background: #e8f0fe; color: var(--rn-blue); }
/* listing cards: source-style top accent + contained imagery */
.blog-listing .card-img-top, .card > .card-img-top { max-height: 170px; object-fit: cover; }
.course-listing .card, main .card { border-top: 4px solid var(--rn-teal); border-radius: 6px; }

/* ---------- F4 (VD-04): band spacing to source heights ---------- */
.site-footer { padding: 50px 24px !important; }
.site-footer .footer-main { row-gap: 40px; }
.page-title-band { padding: 44px 0 !important; }
main .ctaband-section, .rn-cta-band { padding: 72px 0; }
/* AML orange toolkit band is a thin strip on source */
.rn-hero-banner.bg-orange { padding: 8px 0 !important; }
.rn-hero-banner.bg-orange .container > .row { min-height: 0; }
/* meta panels: tighter (live ran ~+330px vs source) */
.rn-meta-panel { padding: 24px 0; }
.rn-meta-panel .card, .rn-meta-panel .card-body { padding: 12px 16px; }
/* social share: source is a right-edge vertical teal bar, icons only */
.rn-social-share { position: fixed; right: 0; top: 38%; z-index: 90; background: var(--rn-teal); border-radius: 6px 0 0 6px; padding: 10px 8px; }
.rn-social-share h2, .rn-social-share__label, .rn-social-share__more { display: none; }
.rn-social-share a { display: block; color: #fff !important; margin: 8px 0; font-size: 1.3rem; }

/* F4 round 2: measured tuning */
.rn-cta-band { padding: 72px 0 !important; }
.site-footer { padding: 50px 24px !important; } /* 50px = source-computed; extra height comes from inner gaps */
.site-footer .footer-main { row-gap: 64px; } .site-footer .footer-main > div { margin-bottom: 24px; }
.rn-meta-panel iframe { max-height: 340px; width: 100%; }
.rn-hero-banner.bg-orange h1 { font-size: 2.4rem; margin: 0; }
.rn-hero-banner.bg-orange p { margin: 4px 0; font-size: 1.4rem; }
.rn-hero-banner.bg-orange .rn-hero-banner__cta { padding: 6px 18px; }

/* F5/fluid-sanity: vendor grid runs flex-nowrap rows in the 992-1199 range and
   a fixed 1360px container — force wrapping + fluid container below 1400px */
main .row { flex-wrap: wrap !important; float: none !important; }
@media (max-width: 1399.98px) {
  .container, .site-header .wrapper, .site-footer .wrapper { max-width: 100% !important; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
}
