/* RIBS Technologies – Manufacturing Hub design layer v2 (19 Nov 2026)
   Follows RIBS Brand Guideline v2.0: Primary Blue #0070C0, Light Blue #00B0F0 (accents only),
   Black body text, Dark Grey #595959, Light Grey #E7E6E6, Pale Grey #F2F2F2, Calibri.
   Loaded after ribs-brand.css and ribs-home.css so it wins without !important where possible. */

:root {
    --rb-blue: #0070C0;
    --rb-blue-dark: #005A9C;
    --rb-light: #00B0F0;
    --rb-ink: #000000;
    --rb-grey: #595959;
    --rb-line: #E7E6E6;
    --rb-pale: #F2F2F2;
    --rb-white: #FFFFFF;
    --rb-font: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
    --rb-radius: 4px;
}

body, button, input, select, textarea { font-family: var(--rb-font); }
body { color: var(--rb-ink); background: var(--rb-white); }

/* Accessibility: skip link, visible on keyboard focus */
.rb-skip { position: absolute; left: 12px; top: -60px; z-index: 10000; background: var(--rb-blue); color: #fff !important; padding: 10px 16px; font-weight: 700; border-radius: var(--rb-radius); }
.rb-skip:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--rb-light); outline-offset: 2px; }

/* Sidebar stays in view while reading (desktop) */
@media (min-width: 992px) {
    #sidebar { position: sticky; top: 16px; align-self: flex-start; }
}

/* ---------- Top bar ---------- */
#header .top-bar { background: var(--rb-pale) !important; border-bottom: 1px solid var(--rb-line); min-height: 34px; }
#header .top-bar .top-menu > li,
#header .top-bar .top-menu > li > a { color: var(--rb-grey) !important; font-size: 13px; line-height: 34px; }
#header .top-bar .top-menu > li > a:hover { color: var(--rb-blue) !important; }
#header .top-bar .ribs-topbar-item { margin-right: 18px; }
#header .top-bar .ribs-topbar-iso { color: var(--rb-blue) !important; font-weight: 700; }
#header .top-bar .top-menu-right i,
#header .top-bar .top-menu-right svg { color: var(--rb-grey); fill: var(--rb-grey); }

/* ---------- Main menu (larger, sentence case) ---------- */
#header .ribs-main-header { border-bottom: 1px solid var(--rb-line); }
.ribs-main-header.navbar-default .navbar-nav > li > a,
.ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li > a {
    font-family: var(--rb-font) !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--rb-ink) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    border-bottom: 3px solid transparent;
}
.ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li > a:hover,
.ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li:hover > a,
.ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li.active > a {
    color: var(--rb-blue) !important;
    border-bottom-color: var(--rb-light);
    background: transparent !important;
}
@media (max-width: 1799px) {
    .ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li > a { font-size: 18px !important; padding-left: 9px !important; padding-right: 9px !important; }
}
@media (max-width: 1599px) {
    .ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li > a { font-size: 17px !important; padding-left: 5px !important; padding-right: 5px !important; }
    .navbar-right .li-cta a.ribs-nav-cta { padding: 10px 14px !important; margin: 0 4px !important; }
}
.ribs-main-header .dropdown-menu a,
.ribs-main-header .megamenu .menu-left a { font-family: var(--rb-font); font-size: 15px !important; color: var(--rb-ink); }
.ribs-main-header .dropdown-menu a:hover { color: var(--rb-blue) !important; }
.navbar-right .li-cta a.ribs-nav-cta { font-size: 15px !important; padding: 11px 18px !important; border-radius: var(--rb-radius); border-bottom: 0 !important; }

/* Mobile menu */
#navMobile .navbar-nav > li > a,
#navMobile .nav-mobile-links a { font-family: var(--rb-font); font-size: 17px; font-weight: 700; color: var(--rb-ink); }
#navMobile .dropdown-menu a { font-size: 16px; font-weight: 400; }

/* ---------- Shared buttons ---------- */
.rh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: var(--rb-radius); font-weight: 700; font-size: 16px; text-decoration: none !important; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.rh-btn-primary { background: var(--rb-blue); color: #fff !important; border: 1px solid var(--rb-blue); }
.rh-btn-primary:hover { background: var(--rb-blue-dark); border-color: var(--rb-blue-dark); }
.rh-btn-secondary { background: #fff; color: var(--rb-blue) !important; border: 1px solid var(--rb-blue); }
.rh-btn-secondary:hover { background: var(--rb-pale); }
.rh-btn-white { background: #fff; color: var(--rb-blue) !important; border: 1px solid #fff; }
.rh-btn-white:hover { background: var(--rb-pale); }
.rh-btn-outline-white { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.7); }
.rh-btn-outline-white:hover { background: rgba(255,255,255,.12); }
.rh-btn:focus-visible, .rh-stage:focus-visible, .rh-topic:focus-visible, .rh-chips a:focus-visible { outline: 3px solid var(--rb-light); outline-offset: 2px; }

.rh-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rb-light); }

/* ---------- Home: hero ---------- */
.ribs-v2-home .rh-hero { background: var(--rb-white); border-bottom: 1px solid var(--rb-line); padding: 56px 0 52px; }
.rh-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.rh-hero-copy { display: grid; gap: 18px; }
.rh-hero-copy h1 { margin: 0; font-size: 46px; line-height: 1.12; font-weight: 700; color: var(--rb-blue); max-width: 22ch; text-wrap: balance; }
.rh-lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--rb-grey); max-width: 58ch; }
.rh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.rh-trust { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--rb-grey); }
.rh-trust li { position: relative; padding-left: 16px; }
.rh-trust li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--rb-light); }

.rh-hero-panel { background: var(--rb-pale); border-top: 4px solid var(--rb-blue); padding: 24px 24px 20px; display: grid; gap: 12px; }
.rh-journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: none; }
.rh-journey a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; color: var(--rb-ink); font-size: 17px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--rb-line); }
.rh-journey li:last-child a { border-bottom: 0; }
.rh-journey a:hover { color: var(--rb-blue); }
.rh-step { flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: var(--rb-blue); color: #fff; font-size: 14px; border-radius: 50%; }
.rh-panel-link { font-weight: 700; color: var(--rb-blue); }

/* Plan your Odoo project card */
.rh-plan { background: #fff; border: 1px solid var(--rb-line); border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); overflow: hidden; display: grid; }
.rh-plan-head { background: var(--rb-blue); color: #fff; padding: 20px 24px 18px; display: grid; gap: 4px; }
.rh-plan-head h2 { margin: 0; font-size: 24px; font-weight: 700; color: #fff; border: 0; padding: 0; }
.rh-plan-head p { margin: 0; font-size: 15px; color: #e6f2fb; }
.rh-plan-body { padding: 8px 24px 4px; display: grid; }
.rh-phase { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rb-line); }
.rh-phase:last-child { border-bottom: 0; }
.rh-phase-name { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rb-light); padding-top: 6px; }
.rh-plan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rh-plan-steps a { display: flex; gap: 12px; align-items: flex-start; padding: 6px 8px; margin: 0 -8px; border-radius: 4px; text-decoration: none; color: var(--rb-ink); }
.rh-plan-steps a:hover { background: var(--rb-pale); }
.rh-plan-steps a:hover b { color: var(--rb-blue); }
.rh-plan-steps .rh-step { margin-top: 1px; }
.rh-step-text { display: grid; gap: 2px; min-width: 0; }
.rh-step-text b { font-size: 17px; font-weight: 700; line-height: 1.3; }
.rh-step-text small { font-size: 14px; line-height: 1.4; color: var(--rb-grey); }
.rh-plan-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 24px 20px; background: var(--rb-pale); border-top: 1px solid var(--rb-line); }
@media (max-width: 600px) {
    .rh-phase { grid-template-columns: 1fr; gap: 4px; }
    .rh-plan-foot .rh-btn { flex: 1 1 100%; }
}
.rh-panel-link::after, .rh-more::after { content: " \2192"; }

/* ---------- Home: sections ---------- */
.rh-section { padding: 56px 0; }
.rh-alt { background: var(--rb-pale); }
.rh-head { display: grid; gap: 6px; margin-bottom: 24px; max-width: 70ch; }
.rh-head h2, .ribs-v2-home .ribs-section-head h2 { margin: 0; font-size: 30px; font-weight: 700; color: var(--rb-blue); padding-bottom: 8px; border-bottom: 2px solid var(--rb-light); width: fit-content; }
.rh-head p { margin: 0; font-size: 17px; color: var(--rb-grey); }

.rh-stage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rh-stage { display: grid; gap: 10px; align-content: start; padding: 22px; background: #fff; border: 1px solid var(--rb-line); border-radius: var(--rb-radius); text-decoration: none !important; color: var(--rb-ink); transition: border-color .15s ease, box-shadow .15s ease; }
.rh-stage:hover { border-color: var(--rb-blue); box-shadow: 0 6px 18px rgba(0, 112, 192, .10); }
.rh-stage-n { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--rb-light); color: var(--rb-blue); font-weight: 700; border-radius: 50%; }
.rh-stage h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--rb-ink); line-height: 1.25; }
.rh-stage p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--rb-grey); }
.rh-more { margin-top: auto; font-weight: 700; color: var(--rb-blue); }

.rh-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.rh-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rh-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: #fff; border: 1px solid var(--rb-line); border-radius: 22px; color: var(--rb-ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.rh-chips a:hover { border-color: var(--rb-blue); color: var(--rb-blue); }

.rh-topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rh-topic { display: grid; gap: 8px; align-content: start; padding: 20px; background: #fff; border: 1px solid var(--rb-line); border-top: 3px solid var(--rb-blue); border-radius: var(--rb-radius); text-decoration: none !important; }
.rh-topic h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--rb-blue); }
.rh-topic p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--rb-grey); }
.rh-topic:hover { box-shadow: 0 6px 18px rgba(0, 112, 192, .10); }

/* Browse the hub: post lists per main menu */
.rh-list-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.rh-list { display: flex; flex-direction: column; gap: 10px; }
.rh-list h3 a { color: var(--rb-blue); text-decoration: none; }
.rh-list h3 a:hover { text-decoration: underline; }
.rh-list > p { font-size: 14px; }
.rh-postlist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; }
.rh-postlist li { border-top: 1px solid var(--rb-line); }
.rh-postlist a { display: block; padding: 9px 0 9px 14px; position: relative; color: var(--rb-ink); font-size: 15px; line-height: 1.35; text-decoration: none; }
.rh-postlist a::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; background: var(--rb-light); }
.rh-postlist a:hover { color: var(--rb-blue); }
.rh-list .rh-more { margin-top: auto; padding-top: 6px; text-decoration: none; }

/* Hide the old home blocks if any partial still prints them */
.ribs-v2-home .ribs-topics { display: none; }

/* Latest + featured headings on home */
.ribs-v2-home .ribs-section-head p { color: var(--rb-grey); font-size: 16px; }
.ribs-v2-home .ribs-section-head a { color: var(--rb-blue); font-weight: 700; }

/* ---------- Home: closing CTA band ---------- */
.rh-cta { background: var(--rb-blue); color: #fff; padding: 48px 0; margin-top: 24px; }
.rh-cta-inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.rh-cta h2 { margin: 0 0 6px; font-size: 30px; font-weight: 700; color: #fff; }
.rh-cta p { margin: 0; font-size: 17px; max-width: 60ch; color: #fff; }
.rh-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Post cards and lists (site-wide) ---------- */
.post-item .title, .post-item .title a,
.post-item-horizontal .title, .post-item-horizontal .title a { font-family: var(--rb-font); font-weight: 700; color: var(--rb-ink); }
.post-item .title a:hover, .post-item-horizontal .title a:hover { color: var(--rb-blue); }
.post-item .description, .post-item-horizontal .description, .post-item p.small-post-description { color: var(--rb-grey); font-size: 15px; }
.post-meta, .post-item .post-meta, .post-item-horizontal .post-meta { color: var(--rb-grey); }
.category-label, .badge-category, a.badge-category { font-family: var(--rb-font); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--rb-blue) !important; border-radius: 2px; }
.btn-load-more { border: 1px solid var(--rb-blue) !important; color: var(--rb-blue) !important; background: #fff !important; font-weight: 700; border-radius: var(--rb-radius); min-height: 44px; }
.btn-load-more:hover { background: var(--rb-pale) !important; }

/* Sidebar widget titles */
.sidebar-widget .widget-head, .widget-head { background: transparent !important; border-bottom: 2px solid var(--rb-light) !important; }
.sidebar-widget .widget-head .title, .widget-head .title, .widget-head h4 { color: var(--rb-blue) !important; background: transparent !important; font-family: var(--rb-font); font-size: 18px !important; font-weight: 700; text-transform: none; padding-left: 0 !important; }

/* ---------- Article page ---------- */
.post-content .post-title, .post-content h1.title { font-family: var(--rb-font); color: var(--rb-blue); font-size: 36px; line-height: 1.2; font-weight: 700; }
.post-content .post-summary, .post-content h2.post-summary { font-size: 19px !important; line-height: 1.55; color: var(--rb-grey) !important; font-weight: 400 !important; border: 0 !important; padding: 0 !important; }
.post-content .post-text { font-size: 18px; line-height: 1.65; color: var(--rb-ink); }
.post-content .post-text p, .post-content .post-text li { font-size: 18px; line-height: 1.65; }
.post-content .post-text ul li::marker { color: var(--rb-light); }
.post-content .post-text a { color: var(--rb-blue); text-decoration: underline; text-underline-offset: 2px; }
.post-content .post-text table { border-collapse: collapse; width: 100%; }
.post-content .post-text table th { background: var(--rb-blue); color: #fff; }
.post-content .post-text table td, .post-content .post-text table th { border: 1px solid var(--rb-line); padding: 8px 10px; }
.post-content .post-text table tr:nth-child(even) td { background: var(--rb-pale); }
/* Breadcrumbs: one size and one colour rule on every page type */
.breadcrumb, .breadcrumb * { font-family: var(--rb-font) !important; font-size: 16px !important; line-height: 1.5 !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; }
.breadcrumb { background: transparent !important; padding: 0 !important; margin: 0 0 14px !important; }
.breadcrumb > li, .breadcrumb > li > a, .breadcrumb > li > span { color: var(--rb-grey) !important; }
.breadcrumb > li > a:hover { color: var(--rb-blue) !important; text-decoration: underline; }
.breadcrumb > li:last-child, .breadcrumb > li:last-child > a, .breadcrumb > li:last-child > span { color: var(--rb-ink) !important; }
.breadcrumb > li + li::before { font-size: 16px !important; color: var(--rb-grey) !important; padding: 0 8px !important; }

/* Header logo: smaller, frees room for a larger menu */
.ribs-main-header .ribs-logo,
.ribs-main-header img.logo,
.ribs-header-logo .ribs-logo { max-height: 46px !important; width: auto !important; }
.ribs-main-header .container { padding-top: 6px !important; padding-bottom: 6px !important; }

/* Category / listing page heading */
.page-title, h1.page-title { font-family: var(--rb-font); color: var(--rb-blue) !important; font-weight: 700; font-size: 34px !important; line-height: 1.2; margin: 0 0 10px !important; }
.rc-head { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 2px solid var(--rb-light); }
.rc-intro { margin: 0; font-size: 18px; line-height: 1.55; color: var(--rb-grey); max-width: 68ch; }
.rc-subcats { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rc-subcats a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rb-line); border-radius: 20px; background: #fff; color: var(--rb-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.rc-subcats a:hover { border-color: var(--rb-blue); color: var(--rb-blue); }
@media (max-width: 600px) { .page-title, h1.page-title { font-size: 28px !important; } .rc-intro { font-size: 17px; } }

/* ---------- Footer ---------- */
.ribs-footer-v2 { background: #0f1720; color: #d7dde3; padding: 56px 0 0; }
.ribs-footer-v2 .rf-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 36px; }
.ribs-footer-v2 .rf-brand { display: grid; gap: 12px; align-content: start; }
.ribs-footer-v2 .rf-brand p { margin: 0; font-size: 15px; line-height: 1.55; color: #c3cad1; }
.ribs-footer-v2 .rf-tagline { color: #fff !important; font-weight: 700; font-size: 17px !important; }
.ribs-footer-v2 .rf-cta { justify-self: start; margin-top: 6px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--rb-blue); color: #fff !important; font-weight: 700; border-radius: var(--rb-radius); text-decoration: none; }
.ribs-footer-v2 .rf-cta:hover { background: var(--rb-blue-dark); }
.ribs-footer-v2 h4 { margin: 0 0 16px; font-size: 17px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rb-light); }
.ribs-footer-v2 .rf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ribs-footer-v2 .rf-col a { color: #e6eaee; font-size: 15px; text-decoration: none; }
.ribs-footer-v2 .rf-col a:hover { color: #fff; text-decoration: underline; }
.ribs-footer-v2 .ribs-footer-social { display: flex !important; flex-wrap: wrap; gap: 8px; margin: 16px 0 0 !important; }
.ribs-footer-v2 .ribs-footer-note { margin: 16px 0 8px; color: #c3cad1; font-size: 14px; }
.ribs-footer-v2 .rf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding: 18px 0 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #aeb7c0; }
.ribs-footer-v2 .rf-bottom p { margin: 0; }
.ribs-footer-v2 .rf-bottom .nav-footer { margin: 0; }
.ribs-footer-v2 .rf-bottom .nav-footer a { color: #aeb7c0; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .rh-stage-grid, .rh-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ribs-footer-v2 .rf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ribs-footer-v2 .rf-brand { grid-column: 1 / -1; }
}
@media (max-width: 991px) {
    .rh-hero-grid, .rh-two { grid-template-columns: 1fr; gap: 32px; }
    .rh-hero-copy h1 { font-size: 38px; }
    #header .top-bar { display: none; }
}
@media (max-width: 600px) {
    .ribs-v2-home .rh-hero { padding: 36px 0; }
    .rh-hero-copy h1 { font-size: 32px; }
    .rh-lede { font-size: 17px; }
    .rh-section { padding: 40px 0; }
    .rh-head h2, .rh-cta h2 { font-size: 25px; }
    .rh-stage-grid, .rh-topic-grid { grid-template-columns: 1fr; }
    .rh-actions .rh-btn, .rh-cta-actions .rh-btn { flex: 1 1 100%; }
    .ribs-footer-v2 .rf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-content .post-title, .post-content h1.title { font-size: 28px; }
    .post-content .post-text, .post-content .post-text p, .post-content .post-text li { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .rh-btn, .rh-stage, .rh-topic { transition: none; }
}

/* =====================================================================
   v3 – corporate structure alignment (20 Nov 2026)
   Shapes and layout patterns from ribstechnologies.com (pill buttons,
   16px card radius, split headline, stats strip, two-tone footer),
   colours and type kept on Brand Guideline v2.0.
   ===================================================================== */
:root { --rb-radius-card: 16px; --rb-radius-sm: 12px; --rb-tint: #EEF5FB; }

/* Pill buttons like the corporate site */
.rh-btn { border-radius: 999px; padding: 0 26px; gap: 8px; }
.rh-btn-link { background: transparent; border: 0; color: var(--rb-ink) !important; padding-left: 4px; padding-right: 4px; }
.rh-btn-link:hover { color: var(--rb-blue) !important; }
.navbar-right .li-cta a.ribs-nav-cta { border-radius: 999px !important; }
#footer.ribs-footer-v2 .rf-cta { border-radius: 999px; }

/* Rounded cards */
.rh-stage, .rh-topic, .rh-plan, .rb-article-cta, .rh-stat { border-radius: var(--rb-radius-card); }
.post-item .post-item-image img, .post-item-horizontal .item-image img, .ribs-feed img { border-radius: var(--rb-radius-sm); }

/* Top bar: contact details left, corporate links right */
#header .top-bar .top-menu-left { display: flex; flex-wrap: wrap; align-items: center; width: 100%; }
#header .top-bar .ribs-topbar-sep { flex: 1 1 auto; margin: 0; }
#header .top-bar .ribs-topbar-link a { font-weight: 700; }
#header .top-bar .ribs-topbar-iso { color: var(--rb-blue) !important; }

/* Split headline: lead words grey with a blue underline, rest blue */
.rh-hero-copy h1.rh-split { color: var(--rb-blue); }
.rh-split-lead { display: inline-block; color: var(--rb-grey); border-bottom: 3px solid var(--rb-blue); padding-bottom: 4px; margin-bottom: 6px; }
.rh-split-accent { color: var(--rb-blue); }
.rh-note { margin: 2px 0 0; font-size: 15px; color: var(--rb-grey); }

/* Hero background: light grid like the corporate hero, kept subtle */
.ribs-v2-home .rh-hero { position: relative; overflow: hidden; }
.ribs-v2-home .rh-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(231,230,230,.6) 1px, transparent 1px), linear-gradient(to bottom, rgba(231,230,230,.6) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 75%); }
.ribs-v2-home .rh-hero > .container { position: relative; }

/* Stats strip */
.rh-stats { padding: 0 0 8px; background: #fff; }
.ribs-v2-home .rh-hero { border-bottom: 0; }
.rh-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -8px; }
.rh-stat { display: grid; gap: 4px; text-align: center; padding: 20px 16px; border: 1px solid var(--rb-line); background: #fff; }
.rh-stat strong { font-size: 28px; line-height: 1.1; font-weight: 700; color: var(--rb-blue); }
.rh-stat span { font-size: 14px; line-height: 1.4; color: var(--rb-grey); }

/* End-of-article next step */
.rb-article-cta { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; margin: 36px 0 28px; padding: 26px 28px; background: var(--rb-tint); border: 1px solid #D6E7F5; border-left: 5px solid var(--rb-blue); }
.rb-article-cta > div:first-child { flex: 1 1 340px; min-width: 0; display: grid; gap: 6px; }
.rb-article-cta h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 24px !important; color: var(--rb-blue) !important; }
.rb-article-cta p { margin: 0 !important; font-size: 17px !important; color: var(--rb-grey) !important; }
.rb-article-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rb-article-cta .rh-btn { text-decoration: none !important; }

/* Footer: light main area + dark copyright bar (corporate pattern) */
#footer.ribs-footer-v2 { background: var(--rb-pale); color: var(--rb-grey); padding: 52px 0 0; border-top: 1px solid var(--rb-line); }
#footer.ribs-footer-v2 .rf-grid { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.6fr); }
#footer.ribs-footer-v2 h4 { color: var(--rb-blue); padding-bottom: 10px; margin-bottom: 16px; position: relative; }
#footer.ribs-footer-v2 h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--rb-light); }
#footer.ribs-footer-v2 .rf-brand p, #footer.ribs-footer-v2 .rf-brand p b { color: var(--rb-grey); }
#footer.ribs-footer-v2 .rf-brand p b { color: var(--rb-ink); }
#footer.ribs-footer-v2 .rf-tagline { color: var(--rb-blue) !important; }
#footer.ribs-footer-v2 .rf-col a, #footer.ribs-footer-v2 .rf-office a, #footer.ribs-footer-v2 .rf-regions a { color: var(--rb-ink); }
#footer.ribs-footer-v2 .rf-col a:hover, #footer.ribs-footer-v2 .rf-office a:hover, #footer.ribs-footer-v2 .rf-regions a:hover { color: var(--rb-blue); }
#footer.ribs-footer-v2 .rf-office { font-style: normal; font-size: 15px; line-height: 1.6; color: var(--rb-grey); margin: 0 0 14px; }
#footer.ribs-footer-v2 .rf-office b { display: block; color: var(--rb-ink); font-size: 16px; }
#footer.ribs-footer-v2 .rf-regions { font-size: 14px; color: var(--rb-grey); margin: 4px 0 0; }
#footer.ribs-footer-v2 .ribs-footer-note { color: var(--rb-grey); }
#footer.ribs-footer-v2 .ribs-footer-social a { background: #fff !important; border: 1px solid var(--rb-line); color: var(--rb-grey) !important; }
#footer.ribs-footer-v2 .ribs-footer-social a:hover { color: var(--rb-blue) !important; border-color: var(--rb-blue); }
#footer.ribs-footer-v2 .rf-bottom { margin-top: 40px; padding: 0; border: 0; background: #333333; color: #fff; }
#footer.ribs-footer-v2 .rf-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-top: 16px; padding-bottom: 18px; }
#footer.ribs-footer-v2 .rf-bottom p { margin: 0; font-size: 14px; color: #fff; }
#footer.ribs-footer-v2 .rf-bottom b { color: #fff; }
#footer.ribs-footer-v2 .rf-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
#footer.ribs-footer-v2 .rf-legal a { color: #fff; font-size: 14px; }
#footer.ribs-footer-v2 .rf-legal a:hover { color: var(--rb-light); }
#footer.ribs-footer-v2 .ribs-footer-logo { display: none; }

@media (max-width: 1199px) {
  #footer.ribs-footer-v2 .rf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #footer.ribs-footer-v2 .rf-brand { grid-column: auto; }
  #header .top-bar .ribs-topbar-link { display: none; }
}
@media (max-width: 991px) { .rh-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; } }
@media (max-width: 600px) {
  #footer.ribs-footer-v2 .rf-grid { grid-template-columns: 1fr; }
  .rb-article-cta { padding: 22px 20px; }
  .rb-article-cta-actions .rh-btn { flex: 1 1 100%; }
  .rh-stat strong { font-size: 24px; }
}

/* Light footer: social icons and newsletter field */
#footer.ribs-footer-v2 .ribs-footer-social li a,
#footer.ribs-footer-v2 .ribs-footer-social li a i,
#footer.ribs-footer-v2 .ribs-footer-social li a span { color: #595959 !important; }
#footer.ribs-footer-v2 .ribs-footer-social li a svg,
#footer.ribs-footer-v2 .ribs-footer-social li a svg path { fill: #595959 !important; }
#footer.ribs-footer-v2 .ribs-footer-social li a:hover,
#footer.ribs-footer-v2 .ribs-footer-social li a:hover i { color: #fff !important; background: var(--rb-blue) !important; border-color: var(--rb-blue) !important; }
#footer.ribs-footer-v2 .ribs-footer-social li a:hover svg path { fill: #fff !important; }
#footer.ribs-footer-v2 .newsletter { background: #fff !important; border: 1px solid var(--rb-line); border-radius: 999px; overflow: hidden; }
#footer.ribs-footer-v2 .newsletter-input { background: #fff !important; color: var(--rb-ink) !important; border: 0 !important; }
#footer.ribs-footer-v2 .newsletter-input::placeholder { color: #8a8a8a; }
#footer.ribs-footer-v2 .newsletter-button { border-radius: 999px !important; }

/* Top bar v4: one row, contact links left, corporate links + day/night switch right */
#header .top-bar .container > .col-sm-12 { float: none; width: 100%; padding-left: 0; padding-right: 0; }
#header .top-bar .container > .col-sm-12 > .row { display: flex !important; flex-wrap: nowrap; align-items: center; justify-content: space-between; margin: 0; min-height: 38px; gap: 16px; }
#header .top-bar .container > .col-sm-12 > .row::before,
#header .top-bar .container > .col-sm-12 > .row::after { display: none !important; }
#header .top-bar .top-menu { float: none !important; margin: 0 !important; padding: 0 !important; display: flex !important; align-items: center; flex-wrap: nowrap; }
#header .top-bar .top-menu-left { width: auto !important; flex: 1 1 auto; min-width: 0; gap: 0 20px; }
#header .top-bar .top-menu-right { flex: 0 0 auto; gap: 0 12px; }
#header .top-bar .top-menu > li { float: none !important; display: flex; align-items: center; white-space: nowrap; margin: 0 !important; padding: 0 !important; line-height: 38px; }
#header .top-bar .ribs-topbar-item { margin-right: 0 !important; }
#header .top-bar .ribs-topbar-item a, #header .top-bar .ribs-topbar-iso { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
#header .top-bar .rtb-ico { width: 14px; height: 14px; fill: var(--rb-blue); flex: none; }
#header .top-bar .ribs-topbar-link:first-of-type { margin-left: auto !important; }
#header .top-bar .ribs-topbar-link { padding-left: 14px !important; border-left: 1px solid var(--rb-line); }
#header .top-bar .ribs-topbar-link a { color: var(--rb-ink) !important; font-weight: 700; }
#header .top-bar .ribs-topbar-link a:hover { color: var(--rb-blue) !important; }
#header .top-bar .li-dark-mode-sw form { margin: 0; display: flex; }
#header .top-bar .btn-switch-mode { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--rb-line); border-radius: 50%; background: #fff; color: var(--rb-grey); }
#header .top-bar .btn-switch-mode:hover { color: var(--rb-blue); border-color: var(--rb-blue); }
@media (max-width: 1365px) { #header .top-bar .ribs-topbar-iso { display: none; } }
@media (max-width: 1199px) { #header .top-bar .ribs-topbar-link { display: none !important; } }

/* Browse by topic – compact cards (pattern from the live hub) */
.rh-topics-compact { padding-top: 48px; padding-bottom: 40px; }
.rh-tc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rh-tc { display: grid; gap: 8px; align-content: start; min-height: 128px; padding: 20px 22px; background: #fff; border: 1px solid var(--rb-line); border-radius: 12px; text-decoration: none !important; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.rh-tc:hover { border-color: var(--rb-blue); box-shadow: 0 8px 22px rgba(0, 112, 192, .10); transform: translateY(-2px); }
.rh-tc-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 18px; font-weight: 700; color: var(--rb-ink); }
.rh-tc:hover .rh-tc-title { color: var(--rb-blue); }
.rh-tc-count { flex: none; font-size: 12px; font-weight: 700; color: var(--rb-blue); background: var(--rb-tint, #EEF5FB); padding: 3px 8px; border-radius: 999px; }
.rh-tc small { font-size: 14.5px; line-height: 1.45; color: var(--rb-grey); }

/* Featured articles – match live card style */
.ribs-v2-home .ribs-featured { background: var(--rb-pale); padding: 48px 0 52px; }
.ribs-v2-home .ribs-featured .ribs-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.ribs-v2-home .ribs-featured .ribs-section-head h2 { margin: 0 0 6px; font-size: 30px; font-weight: 700; color: var(--rb-blue); padding-bottom: 8px; border-bottom: 2px solid var(--rb-light); width: fit-content; }
.ribs-v2-home .ribs-featured .ribs-section-head a { font-weight: 700; color: var(--rb-blue); white-space: nowrap; }
.ribs-v2-home .ribs-featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ribs-v2-home .ribs-card { background: #fff; border: 1px solid var(--rb-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease; }
.ribs-v2-home .ribs-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.08); transform: translateY(-2px); }
.ribs-v2-home .ribs-card .ribs-card-image { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--rb-line); }
.ribs-v2-home .ribs-card .ribs-card-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.ribs-v2-home .ribs-card > *:not(.ribs-card-image) { padding-left: 20px; padding-right: 20px; }
.ribs-v2-home .ribs-card a:not(.ribs-card-image) { text-decoration: none; }

@media (max-width: 1199px) { .rh-tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) { .ribs-v2-home .ribs-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .rh-tc-grid, .ribs-v2-home .ribs-featured-grid { grid-template-columns: 1fr; }
  .ribs-v2-home .ribs-featured .ribs-section-head { flex-direction: column; align-items: flex-start; }
  .ribs-v2-home .ribs-featured .ribs-section-head h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .rh-tc, .ribs-v2-home .ribs-card { transition: none; } .rh-tc:hover, .ribs-v2-home .ribs-card:hover { transform: none; } }

/* =====================================================================
   v5 – original hero restored, unified top bar, premium polish (20 Nov 2026)
   ===================================================================== */

/* Original hero (as on the live hub) – keep its look, brand font */
.ribs-v2-home .rb-hero-original { min-height: 560px; padding: 84px 0 76px; }
.ribs-v2-home .rb-hero-original .ribs-hero-copy h1 { font-family: var(--rb-font); letter-spacing: -0.01em; }
.ribs-v2-home .rb-hero-original .ribs-hero-copy p { font-family: var(--rb-font); }
.ribs-v2-home .rb-hero-original .ribs-btn { font-family: var(--rb-font); font-size: 16px; font-weight: 700; }

/* Plan section below the hero: intro left, card right */
.rh-plan-section { padding: 64px 0; background: #fff; }
.rh-plan-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.rh-plan-intro { display: grid; gap: 14px; align-content: start; }
.rh-plan-intro h2 { margin: 0; font-size: 34px; line-height: 1.2; font-weight: 700; color: var(--rb-blue); text-wrap: balance; }
.rh-plan-intro p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--rb-grey); max-width: 52ch; }
.rh-plan-intro .rh-btn { justify-self: start; margin-top: 6px; }
.rh-stats { padding: 28px 0 8px; }
.rh-stats-grid { margin-top: 0; }

/* Top bar: every item the same colour, size and weight */
#header .top-bar .top-menu > li,
#header .top-bar .top-menu > li > a,
#header .top-bar .ribs-topbar-item a,
#header .top-bar .ribs-topbar-iso,
#header .top-bar .ribs-topbar-link a {
  color: var(--rb-grey) !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
#header .top-bar .top-menu > li > a:hover,
#header .top-bar .ribs-topbar-link a:hover { color: var(--rb-blue) !important; }
#header .top-bar .rtb-ico { fill: var(--rb-grey); }
#header .top-bar .ribs-topbar-link { border-left-color: var(--rb-line); }

/* ---------- Premium polish ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: rgba(0, 112, 192, .16); }

/* Sticky, quiet header with soft shadow */
#header .ribs-main-header { background: #fff; box-shadow: 0 1px 0 var(--rb-line), 0 6px 18px rgba(0,0,0,.04); }
@media (min-width: 1280px) { #header { position: sticky; top: -47px; z-index: 900; background: #fff; } }
@media (max-width: 1279px) { #header { position: sticky; top: 0; z-index: 900; background: #fff; } }

/* Section rhythm and headings */
.rh-section { padding: 72px 0; }
.rh-head { margin-bottom: 30px; }
.rh-head h2, .ribs-v2-home .ribs-section-head h2 { font-size: 32px; letter-spacing: -0.005em; }

/* Cards: one elevation system */
.rh-tc, .rh-stage, .rh-topic, .rh-stat, .ribs-v2-home .ribs-card, .rb-article-cta, .rh-plan { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.035); }
.rh-tc:hover, .rh-stage:hover, .rh-topic:hover, .ribs-v2-home .ribs-card:hover { box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 14px 32px rgba(0, 112, 192, .12); }
.ribs-v2-home .ribs-card .ribs-card-image img { transition: transform .35s ease; }
.ribs-v2-home .ribs-card:hover .ribs-card-image img { transform: scale(1.04); }

/* Post lists and archive cards */
.post-item, .post-item-horizontal { transition: transform .2s ease; }
.post-item .post-item-image, .post-item-horizontal .item-image { overflow: hidden; border-radius: 12px; }
.post-item .post-item-image img, .post-item-horizontal .item-image img { transition: transform .35s ease; }
.post-item:hover .post-item-image img, .post-item-horizontal:hover .item-image img { transform: scale(1.04); }
.post-item .title a, .post-item-horizontal .title a { line-height: 1.3; }

/* Article reading experience */
.post-content .post-text { max-width: 760px; }
.post-content .post-text h2 { margin-top: 42px; }
.post-content .post-text blockquote { border-left: 4px solid var(--rb-light); background: var(--rb-pale); padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--rb-ink); }
.post-content .post-image img, .post-content .show-on-page-load img { border-radius: 16px; }

/* Sidebar widgets as quiet cards */
#sidebar .sidebar-widget { background: #fff; border: 1px solid var(--rb-line); border-radius: 16px; padding: 18px 20px 8px; margin-bottom: 24px; }

/* Buttons: consistent focus and press feel */
.rh-btn:active, .ribs-btn:active { transform: translateY(1px); }

@media (max-width: 991px) {
  .rh-plan-wrap { grid-template-columns: 1fr; gap: 28px; }
  .rh-plan-intro h2 { font-size: 28px; }
  .ribs-v2-home .rb-hero-original { min-height: 0; padding: 48px 0 40px; }
}
@media (max-width: 600px) {
  .rh-section, .rh-plan-section { padding: 48px 0; }
  .rh-plan-intro .rh-btn { justify-self: stretch; }
  .rh-head h2, .ribs-v2-home .ribs-section-head h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribs-v2-home .ribs-card .ribs-card-image img, .post-item img, .post-item-horizontal img { transition: none; transform: none !important; }
}

/* v6 – brand light-blue backgrounds for hero and closing band (20 Nov 2026) */
:root { --rb-sky: #EAF4FC; --rb-sky-line: #D3E7F7; }
.ribs-v2-home .rb-hero-original {
  background: linear-gradient(180deg, #F3F9FE 0%, var(--rb-sky) 100%);
  border-bottom: 1px solid var(--rb-sky-line);
}
.ribs-v2-home .rb-hero-original .ribs-hero-media img { filter: drop-shadow(0 10px 24px rgba(0, 112, 192, .08)); }
.ribs-v2-home .rb-hero-original .ribs-btn-secondary { background: #fff; }

/* Closing band: light blue with a blue accent instead of solid blue */
.rh-cta { background: var(--rb-sky); color: var(--rb-ink); border-top: 1px solid var(--rb-sky-line); border-bottom: 1px solid var(--rb-sky-line); padding: 56px 0; }
.rh-cta-inner { background: #fff; border: 1px solid var(--rb-sky-line); border-left: 5px solid var(--rb-blue); border-radius: 16px; padding: 30px 34px; box-shadow: 0 8px 26px rgba(0, 112, 192, .08); }
.rh-cta h2 { color: var(--rb-blue); }
.rh-cta p { color: var(--rb-grey); }
.rh-cta .rh-btn-white { background: var(--rb-blue); color: #fff !important; border-color: var(--rb-blue); }
.rh-cta .rh-btn-white:hover { background: var(--rb-blue-dark); border-color: var(--rb-blue-dark); }
.rh-cta .rh-btn-outline-white { background: #fff; color: var(--rb-blue) !important; border: 1px solid var(--rb-blue); }
.rh-cta .rh-btn-outline-white:hover { background: var(--rb-sky); }
@media (max-width: 600px) { .rh-cta-inner { padding: 24px 20px; } }

/* =====================================================================
   v7 – larger, airier main menu + luxury corporate navigation (20 Nov 2026)
   ===================================================================== */
.ribs-header-inner { column-gap: 14px !important; }
.ribs-main-header .container { padding-left: 18px !important; padding-right: 18px !important; }

/* Size and spacing by screen width */
.ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li > a {
  font-size: 19px !important; padding-left: 13px !important; padding-right: 13px !important;
  letter-spacing: .005em !important; position: relative; border-bottom: 0 !important;
}
@media (max-width: 1799px) { .ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li > a { font-size: 18px !important; padding-left: 11px !important; padding-right: 11px !important; } }
@media (max-width: 1599px) { .ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li > a { font-size: 18px !important; padding-left: 7px !important; padding-right: 7px !important; } }

/* Refined hover / active state: a centred underline that grows */
.ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li > a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 10px; height: 2px;
  background: var(--rb-blue); border-radius: 2px; transition: left .2s ease, right .2s ease;
}
.ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li:hover > a::after,
.ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li.active > a::after,
.ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li > a:focus-visible::after { left: 10px; right: 10px; }
.ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li > a .caret { opacity: .55; margin-left: 6px; transition: transform .2s ease, opacity .2s ease; }
.ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li:hover > a .caret { opacity: 1; transform: rotate(180deg); }

/* Dropdowns and mega menu: rounded, soft shadow, roomy items */
.ribs-main-header .navbar-nav > li > .dropdown-menu,
.ribs-main-header.megamenu .dropdown.megamenu-fw > .dropdown-menu {
  border: 1px solid var(--rb-line) !important; border-top: 3px solid var(--rb-blue) !important;
  border-radius: 0 0 14px 14px !important; box-shadow: 0 18px 40px rgba(0, 0, 0, .10) !important;
  padding: 10px 0 !important; overflow: hidden;
}
.ribs-main-header .dropdown-menu > li > a,
.ribs-main-header .megamenu .menu-left a {
  padding: 10px 22px !important; font-size: 16px !important; font-weight: 400 !important; color: var(--rb-ink) !important;
  border-left: 3px solid transparent; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ribs-main-header .dropdown-menu > li > a:hover,
.ribs-main-header .megamenu .menu-left a:hover,
.ribs-main-header .megamenu .menu-left li.active a {
  background: var(--rb-sky, #EAF4FC) !important; color: var(--rb-blue) !important; border-left-color: var(--rb-blue);
}

/* Header button and search: same height, calmer weight */
.navbar-right .li-cta a.ribs-nav-cta { font-size: 15px !important; padding: 11px 20px !important; letter-spacing: .01em; box-shadow: 0 6px 16px rgba(0, 112, 192, .22); }
.navbar-right .li-cta a.ribs-nav-cta:hover { box-shadow: 0 8px 20px rgba(0, 112, 192, .30); }
@media (max-width: 1599px) { .navbar-right .li-cta a.ribs-nav-cta { padding: 10px 16px !important; } }

@media (prefers-reduced-motion: reduce) {
  .ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li > a::after,
  .ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li > a .caret { transition: none; }
}
@media (max-width: 1599px) {
  .ribs-main-header.navbar-default .navbar-nav:not(.navbar-right) > li > a { padding-left: 6px !important; padding-right: 6px !important; }
  .navbar-right .li-cta a.ribs-nav-cta { padding: 10px 14px !important; margin: 0 2px !important; }
  .ribs-header-inner { column-gap: 10px !important; }
}

/* Topic cluster links at the end of each article */
.rb-cluster { margin: 8px 0 32px; padding: 24px 26px; border: 1px solid var(--rb-line); border-radius: 16px; background: #fff; }
.rb-cluster h2 { margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; font-size: 21px !important; color: var(--rb-ink) !important; }
.rb-cluster ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.rb-cluster li { border-top: 1px solid var(--rb-line); }
.rb-cluster li a { display: block; padding: 10px 0 10px 16px; position: relative; color: var(--rb-ink) !important; text-decoration: none !important; font-size: 16px !important; line-height: 1.4; }
.rb-cluster li a::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; background: var(--rb-light); }
.rb-cluster li a:hover { color: var(--rb-blue) !important; }
.rb-cluster .rh-more { text-decoration: none !important; }
@media (max-width: 600px) { .rb-cluster ul { grid-template-columns: 1fr; } .rb-cluster { padding: 20px 18px; } }

/* Answer-first summary at the top of each article */
.post-content .post-text .rb-answer { margin: 0 0 28px; padding: 18px 22px; background: var(--rb-sky, #EAF4FC); border-left: 4px solid var(--rb-blue); border-radius: 0 12px 12px 0; }
.post-content .post-text .rb-answer p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--rb-ink); }
.post-content .post-text .rb-answer strong { color: var(--rb-blue); }
