/* RBS Staff Training. Everything is scoped to .rbst so the theme is left alone. */
.rbst {
  /* The website's colours (realbenefitsolutions.org). */
  --navy: #103c54; --blue: #0078bd; --ink: #183c50; --muted: #526d7d; --line: #d7e5ed;
  --canvas: #f0f7fb; --card: #ffffff; --tint: #edf6fa; --sky: #a6dbee; --good: #1f7a5a;
  color: var(--ink); font-size: 16px; line-height: 1.55; padding: 8px 0 40px;
  font-family: inherit; box-sizing: border-box;
  /* Break out of narrow theme content columns, up to 1180px wide. */
  position: relative; left: 50%; transform: translateX(-50%);
}
div.rbst.rbst:not(.rbst-gate) { width: min(1180px, calc(100vw - 48px)) !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.rbst.rbst-gate { width: auto; left: auto; transform: none; }
.rbst *, .rbst *::before, .rbst *::after { box-sizing: border-box; }
.rbst a { color: var(--blue); text-decoration: none; }
.rbst a:hover { text-decoration: underline; }
.rbst h2, .rbst h3, .rbst h4 { font-family: inherit; letter-spacing: 0; color: var(--navy); line-height: 1.25; margin: 0 0 8px; font-weight: 700; }
.rbst p { margin: 0 0 12px; }
.rbst-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--blue); margin: 0 0 4px !important; }
.rbst-muted, .rbst-sub { color: var(--muted); }

/* Header and ask box */
.rbst-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.rbst-title { font-size: 34px; margin: 0; }
.rbst-title a { color: var(--navy); }
.rbst-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--blue); color: #fff !important; border: 1px solid var(--blue); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none !important; font-family: inherit; line-height: 1.2; }
.rbst-btn:hover { background: #00649d; }
.rbst-btn-ghost { background: #fff; color: var(--navy) !important; border-color: var(--line); }
.rbst-btn-ghost:hover { background: var(--tint); }
.rbst-btn-sm { padding: 7px 14px; font-size: 14px; }
.rbst-ask { background: var(--navy); border-radius: 16px; padding: 18px 20px; margin-bottom: 24px; }
.rbst-ask label { display: block; color: #fff; font-weight: 600; margin-bottom: 8px; font-size: 17px; }
.rbst-ask-row { display: flex; gap: 8px; }
.rbst-ask input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 12px 18px; font-size: 16px; font-family: inherit; color: var(--ink); background: #fff; }
.rbst-ask input:focus { outline: 3px solid #7cc4ef; }
.rbst-ask .rbst-btn { background: #fff; color: var(--navy) !important; border-color: #fff; }
#rbst-results:empty { display: none; }
#rbst-results { margin-top: 14px; display: grid; gap: 12px; }
.rbst-answer { background: #fff; border-radius: 12px; padding: 16px 18px; }
.rbst-answer > strong { display: block; font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.rbst-none { background: #fff7e6; }
.rbst-more { background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.rbst-more .rbst-eyebrow { color: #bfe2f7; }

/* Sections */
.rbst-section { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 20px; }
.rbst-section > h3 { font-size: 22px; }
.rbst-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* The map */
.rbst-map { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 34px; counter-reset: none; }
.rbst-stage { position: relative; background: var(--canvas); border-radius: 14px; border-top: 5px solid var(--c); padding: 14px 16px 12px; margin: 0; }
.rbst-stage-head { display: flex; gap: 12px; align-items: center; color: var(--ink) !important; text-decoration: none !important; margin-bottom: 8px; }
.rbst-stage-head strong { display: block; font-size: 17px; color: var(--navy); }
.rbst-stage-head small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.rbst-stage-head:hover strong { text-decoration: underline; }
.rbst-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--c, var(--navy)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.rbst-stage ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rbst-stage li { margin: 0; border-bottom: 1px solid var(--line); }
.rbst-stage li:last-child { border-bottom: 0; }
.rbst-stage li a { display: block; padding: 7px 2px; font-size: 15px; }
.rbst-arrow { position: absolute; right: -27px; top: 26px; width: 20px; height: 20px; }
.rbst-arrow::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 2px; background: var(--muted); }
.rbst-arrow::after { content: ""; position: absolute; left: 9px; top: 5px; border: 5px solid transparent; border-left: 7px solid var(--muted); }
.rbst-map > li:nth-child(3n) .rbst-arrow { display: none; }

/* Steps, tips, tables */
.rbst-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; }
.rbst-steps li { counter-increment: s; position: relative; padding: 4px 0 8px 40px; margin: 0; }
.rbst-steps li::before { content: counter(s); position: absolute; left: 0; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--blue); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.rbst-steps-sm li { padding-bottom: 4px; font-size: 15px; }
.rbst-tip { background: var(--tint); border-left: 4px solid var(--blue); border-radius: 8px; padding: 12px 16px; margin: 0 0 12px; }
.rbst-tip strong:first-child { color: var(--blue); display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.rbst-tip p { margin: 4px 0 0; }
.rbst-done { background: #e9f6ef; border-radius: 8px; padding: 10px 14px; }
.rbst-done > strong:first-child { color: var(--good); }
.rbst-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.rbst-table th { background: var(--navy); color: #fff; text-align: left; padding: 8px 12px; }
.rbst-table td { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }

/* Topic page */
.rbst-crumbs { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.rbst-crumbs span { margin: 0 6px; }
.rbst-topic { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; }
.rbst-topic > h3 { font-size: 28px; }
.rbst-lead { font-size: 18px; color: var(--muted); }
.rbst-fig { margin: 18px 0 22px; text-align: center; }
.rbst-zoom { border: 1px solid var(--line); border-radius: 10px; padding: 0; background: #fff; cursor: zoom-in; display: inline-block; max-width: 100%; overflow: hidden; }
.rbst-zoom img { display: block; max-width: 100%; height: auto; max-height: 620px; }
.rbst-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.rbst-related { margin-top: 18px; }
.rbst-topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rbst-topic-link { display: block; background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink) !important; text-decoration: none !important; }
.rbst-topic-link:hover { border-color: var(--blue); background: #fff; }
.rbst-topic-link strong { display: block; color: var(--navy); }
.rbst-topic-link span { display: block; font-size: 14px; color: var(--muted); }
.rbst-stage-title { display: flex; align-items: center; gap: 12px; font-size: 26px !important; }
.rbst-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.rbst-page { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; max-width: 48%; }
.rbst-page:last-child { text-align: right; margin-left: auto; }
.rbst-page small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* FAQ and glossary */
.rbst-faq { border-bottom: 1px solid var(--line); padding: 10px 0; }
.rbst-faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.rbst-faq p { margin: 8px 0 6px; }
.rbst-gloss { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; margin: 0; }
.rbst-gloss dt { font-weight: 700; color: var(--navy); }
.rbst-gloss dd { margin: 0; font-size: 15px; color: var(--muted); }
.rbst-foot { font-size: 13px; color: var(--muted); text-align: center; }

/* Lightbox */
.rbst-lightbox { position: fixed; inset: 0; background: rgba(9, 30, 44, .88); z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.rbst-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }
.rbst-close { position: absolute; top: 12px; right: 16px; background: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 26px; line-height: 1; cursor: pointer; color: #0d3b56; }

/* PIN gate */
.rbst-gate { display: flex; justify-content: center; padding: 40px 0; }
.rbst-gate-card { background: #fff; border: 1px solid #d8e1e8; border-radius: 16px; padding: 28px; max-width: 420px; width: 100%; }
.rbst-gate-card h2 { color: #0d3b56; margin: 0 0 8px; }
.rbst-gate-card label { display: block; font-weight: 600; margin: 8px 0 6px; }
.rbst-gate-card input { width: 100%; border: 1px solid #c4d0da; border-radius: 10px; padding: 11px 14px; font-size: 18px; letter-spacing: .2em; }
.rbst-gate-card button { margin-top: 14px; width: 100%; background: #006fae; color: #fff; border: 0; border-radius: 999px; padding: 12px; font-weight: 600; font-size: 16px; cursor: pointer; }
.rbst-gate-error { background: #fdecec; color: #8a1c1c; border-radius: 8px; padding: 8px 12px; }

/* Phones and tablets */
@media (max-width: 900px) {
  .rbst-map { grid-template-columns: 1fr; gap: 26px; }
  .rbst-arrow, .rbst-map > li:nth-child(3n) .rbst-arrow { display: none; }
  .rbst-two, .rbst-topic-grid { grid-template-columns: 1fr; }
  .rbst-gloss { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .rbst { font-size: 15px; }
  .rbst-title { font-size: 26px; }
  .rbst-ask-row { flex-direction: column; }
  .rbst-section, .rbst-topic { padding: 16px; }
  .rbst-gloss { grid-template-columns: 1fr; }
  .rbst-page { max-width: 100%; }
  .rbst-pager { flex-direction: column; }
}
@media print {
  .rbst-ask, .rbst-pager, .rbst-head .rbst-btn { display: none; }
}

/* 1.1: chooser, notice, header buttons */
.rbst-head-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rbst-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 12px; }
.rbst-module { display: block; background: var(--canvas); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; color: var(--ink) !important; text-decoration: none !important; }
.rbst-module:hover { border-color: var(--blue); background: var(--tint); }
.rbst-module > strong { display: block; font-size: 22px; color: var(--navy); margin-bottom: 4px; }
.rbst-module > span { display: block; color: var(--muted); margin-bottom: 10px; }
.rbst-module ol { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 4px; }
.rbst-module li { margin: 0; padding-left: 12px; border-left: 4px solid var(--c); font-size: 14px; }
.rbst-module small { color: var(--muted); font-size: 13px; }
.rbst-tag { display: inline-block; font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 700; margin-bottom: 2px; }
.rbst-notice { background: #fff7e6; border: 1px solid #f0c36d; border-left: 5px solid #e0a020; border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; }

/* 1.2: the training as its own page, in the website's look */
html:has(body.rbst-full) { scroll-padding-top: 24px; }
body.rbst-full { margin: 0; background: #fff; color: #183c50; font: 18px/1.55 'RBST Futura', 'RBST Jost', 'Trebuchet MS', sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.rbst-full * { box-sizing: border-box; }
body.rbst-full a { color: #0078bd; text-decoration: none; }
.rbst-shell { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.rbst-skip { position: absolute; left: -9999px; }
.rbst-skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.rbst-bar { background: #fff; border-top: 6px solid #103c54; }
.rbst-bar-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 96px; }
.rbst-brand img { display: block; width: 176px; height: auto; }
.rbst-bar-label { font-size: 12px; letter-spacing: 2px; font-weight: 600; text-transform: uppercase; color: #0078bd; }
.rbst-page-foot { border-top: 1px solid #d7e5ed; margin-top: 30px; }
.rbst-page-foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 20px; font-size: 13px; color: #526d7d; }

/* No breakout needed: the page is already full width. */
body.rbst-full div.rbst.rbst:not(.rbst-gate) { width: auto !important; left: auto; transform: none; }
.rbst-full .rbst { font-size: 17px; padding: 0 0 30px; }
.rbst-full .rbst h2, .rbst-full .rbst h3, .rbst-full .rbst h4 { font-weight: 600; letter-spacing: -.4px; color: #183c50; }
.rbst-full .rbst-eyebrow { font-size: 12px; letter-spacing: 2px; }

/* The navy band, edge to edge, with the website's rounded corner. */
.rbst-full .rbst-hero { background: #103c54; color: #fff; margin: 0 calc(50% - 50vw) 30px; padding: 54px calc(50vw - 50%) 46px; border-radius: 0 0 60px 0; }
.rbst-full .rbst-hero .rbst-eyebrow { color: #b5e0ee; margin-bottom: 14px !important; }
.rbst-full .rbst-hero .rbst-title { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -1.6px; color: #fff; font-weight: 600; }
.rbst-full .rbst-hero .rbst-title a { color: #fff; }
.rbst-full .rbst-hero .rbst-title em { font-style: normal; color: #a6dbee; }
.rbst-full .rbst-hero .rbst-sub { color: #d4e5ef; font-size: 19px; max-width: 760px; margin-top: 14px; }
.rbst-full .rbst-head { align-items: flex-end; margin-bottom: 28px; }
.rbst-full .rbst-head-btns .rbst-btn-ghost { background: #fff; color: #103c54 !important; border-color: #fff; min-height: 47px; padding: 11px 21px; }
.rbst-full .rbst-head-btns .rbst-btn-ghost:hover { background: #d9f0fa; }
.rbst-full .rbst-ask { background: rgba(255,255,255,.07); border: 1px solid #2f5a72; border-radius: 22px; padding: 20px 22px; margin: 0; }
.rbst-full .rbst-ask label { font-size: 17px; }
.rbst-full .rbst-ask input { padding: 14px 22px; font-size: 17px; }
.rbst-full .rbst-ask .rbst-btn { justify-content: center; background: #0078bd; color: #fff !important; border-color: #0078bd; padding: 12px 24px; }
.rbst-full .rbst-ask .rbst-btn:hover { background: #00649d; }
.rbst-full .rbst-answer { color: #183c50; border-radius: 16px; }
.rbst-full .rbst-hero .rbst-answer .rbst-eyebrow { color: #0078bd; margin-bottom: 6px !important; }
.rbst-full .rbst-hero .rbst-none { background: #fff7e6; }
.rbst-full .rbst-btn { font-weight: 600; }

/* Cards like the website's */
.rbst-full .rbst-section { border-color: #d7e5ed; border-radius: 20px; padding: 28px 30px; }
.rbst-full .rbst-section > h3 { font-size: 30px; }
.rbst-full .rbst-stage { background: #f0f7fb; border-radius: 18px; }
.rbst-full .rbst-module { background: #f0f7fb; border-color: #dcebf2; border-radius: 20px; padding: 24px 26px; }
.rbst-full .rbst-module > strong { font-size: 28px; letter-spacing: -.4px; font-weight: 600; }
.rbst-full .rbst-topic { border-radius: 20px; padding: 32px 36px; }
.rbst-full .rbst-topic > h3 { font-size: 36px; letter-spacing: -1px; }
.rbst-full .rbst-topic-link, .rbst-full .rbst-page { border-radius: 16px; }
.rbst-full .rbst-crumbs { font-size: 15px; }
.rbst-full .rbst-table th { background: #103c54; }
.rbst-full .rbst-foot { margin-top: 10px; }

/* The PIN card on the navy band */
.rbst-full .rbst.rbst-gate { background: #103c54; margin: 0 calc(50% - 50vw); padding: 70px 20px 90px; border-radius: 0 0 60px 0; }
.rbst-full .rbst-gate-card { border: 0; border-radius: 22px; padding: 34px; max-width: 460px; box-shadow: 12px 12px 0 rgba(255,255,255,.05); }
.rbst-full .rbst-gate-card h2 { font-size: 36px; letter-spacing: -1px; color: #183c50; font-weight: 600; }
.rbst-full .rbst-gate-card button { background: #0078bd; min-height: 50px; font-size: 17px; font-family: inherit; }
.rbst-full .rbst-gate-card input { font-family: inherit; }

@media (max-width: 850px) {
  .rbst-shell { width: calc(100% - 40px); }
  .rbst-bar-in { min-height: 80px; }
  .rbst-brand img { width: 148px; }
  .rbst-full .rbst-hero { padding-top: 38px; border-radius: 0 0 35px 0; }
  .rbst-full .rbst-hero .rbst-sub { font-size: 17px; }
}
@media (max-width: 560px) {
  .rbst-bar-label { font-size: 10px; letter-spacing: 1.5px; }
  .rbst-full .rbst-hero .rbst-title { font-size: 40px; letter-spacing: -1px; }
  .rbst-full .rbst-ask { padding: 16px; }
  .rbst-full .rbst-section, .rbst-full .rbst-topic { padding: 20px 18px; }
  .rbst-full .rbst-topic > h3 { font-size: 28px; }
}
@media print {
  .rbst-bar, .rbst-page-foot { display: none; }
  .rbst-full .rbst-hero { background: none; color: #183c50; padding: 0; margin: 0 0 12px; }
  .rbst-full .rbst-hero .rbst-title, .rbst-full .rbst-hero .rbst-title a { color: #183c50; }
}

/* 1.3: parts the office usually does */
.rbst-office { display: inline-block; background: #efeaf7; color: #5a4a87; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px !important; }
.rbst-office-tag { display: inline-block; font-style: normal; background: #efeaf7; color: #5a4a87; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; vertical-align: 1px; margin-left: 4px; }
.rbst-topic-link .rbst-office-tag { margin: 2px 0 2px; }
