/* The content system's public pages (/learn/). The staff preview uses the same file, so a preview looks like the live page.
   Colors come from the .rd tokens (rd.css), which follow the visitor's light or dark choice. */
.cms { max-width: 1120px; margin: 0 auto; padding: 24px 24px 72px; box-sizing: border-box; }
.cms * { box-sizing: border-box; }
.cms-article { max-width: 880px; margin: 0 auto; }
.cms-layout-full_width .cms-article { max-width: none; }
.cms-vh { position: absolute; left: -9999px; }

/* menus */
.cms-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cms-menu li { position: relative; }
.cms-menu li ul { display: none; position: absolute; top: 100%; left: 0; z-index: 5; min-width: 200px; flex-direction: column; gap: 0; padding: 8px; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 12px; }
.cms-menu li:hover > ul, .cms-menu li:focus-within > ul { display: flex; }
.cms-menu a { display: inline-block; padding: 8px 4px; color: var(--rd-ink); font-weight: 600; text-decoration: none; min-height: 40px; }
.cms-menu a[aria-current="page"] { color: var(--rd-blue); }
.cms-menu { margin-bottom: 18px; }
.cms-foot { margin: 48px auto 0; max-width: 880px; padding-top: 18px; border-top: 1px solid var(--rd-line); }
.cms-landing-head { padding: 16px 24px; border-bottom: 1px solid var(--rd-line); }
.cms-landing-head a { font-weight: 800; color: inherit; text-decoration: none; }
.cms-preview-bar { margin: 0 auto 18px; max-width: 880px; padding: 12px 16px; border-radius: 14px; background: var(--rd-lb); color: var(--rd-ink); border: 1px solid var(--rd-line); }
.cms-preview-bar.cms-warn { background: #fbf1e1; color: #3a2a00; }
.cms-preview-bar a { font-weight: 700; margin-left: 8px; }

/* head */
.cms-crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .9rem; color: var(--rd-muted); }
.cms-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rd-muted); }
.cms-crumbs a { color: var(--rd-blue); }
.cms-eyebrow { display: block; font: 700 .78rem/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--rd-blue); margin-bottom: 12px; }
.cms-head h1 { font: 800 clamp(1.9rem, 4.2vw, 2.9rem)/1.1 Manrope, Inter, sans-serif; letter-spacing: -.02em; margin: 0 0 14px; overflow-wrap: anywhere; }
.cms-lead { font-size: 1.2rem; color: var(--rd-muted); margin: 0 0 14px; }
.cms-byline { color: var(--rd-muted); font-size: .92rem; margin: 0 0 18px; }
.cms-hero { margin: 0 0 24px; }
.cms-hero img { display: block; width: 100%; height: auto; border-radius: 20px; }
.cms-search { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.cms-search input { flex: 1 1 240px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rd-line); background: var(--rd-surface); color: var(--rd-ink); font: inherit; }
.cms-toc { margin: 0 0 28px; padding: 18px 22px; border: 1px solid var(--rd-line); border-radius: 16px; background: var(--rd-soft); }
.cms-toc ol { margin: 8px 0 0; padding-left: 20px; }
.cms-toc-3 { margin-left: 16px; }
.cms-toc-4 { margin-left: 32px; }

/* columns */
.cms-cols { display: block; }
.cms-has-side { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; align-items: start; }
.cms-side { position: sticky; top: 16px; padding: 18px; border: 1px solid var(--rd-line); border-radius: 16px; background: var(--rd-soft); }
.cms-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cms-side ul ul { margin: 6px 0 0 14px; }
.cms-side a { color: var(--rd-ink); text-decoration: none; font-weight: 600; }
.cms-side a[aria-current="page"] { color: var(--rd-blue); }

/* the body: text, headings, lists, quotes */
.cms-body { font-size: 1.08rem; line-height: 1.7; min-width: 0; overflow-wrap: anywhere; }
.cms-body h2, .cms-body h3, .cms-body h4 { font-family: Manrope, Inter, sans-serif; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin: 1.8em 0 .6em; scroll-margin-top: 80px; }
.cms-body h2 { font-size: 1.7rem; } .cms-body h3 { font-size: 1.3rem; } .cms-body h4 { font-size: 1.1rem; }
.cms-body p { margin: 0 0 1.1em; }
.cms-body a { color: var(--rd-blue); }
.cms-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--rd-lime); color: var(--rd-muted); }
.cms-body blockquote footer { font-size: .9rem; }
.cms-body hr { border: 0; border-top: 1px solid var(--rd-line); margin: 2em 0; }

/* images: alignment, wrapping, width. A wrapped image floats; a centered or no-wrap one has its own row. On a phone it stacks. */
.cms-img { margin: 1.2em auto; max-width: 100%; }
.cms-img img { display: block; width: 100%; height: auto; border-radius: 14px; }
.cms-img figcaption { font-size: .88rem; color: var(--rd-muted); margin-top: 6px; text-align: center; }
.cms-w25 { width: 25%; } .cms-w50 { width: 50%; } .cms-w75 { width: 75%; } .cms-w100 { width: 100%; }
.cms-align-center { margin-left: auto; margin-right: auto; clear: both; }
.cms-align-left:not(.cms-wrap) { margin-left: 0; margin-right: auto; clear: both; }
.cms-align-right:not(.cms-wrap) { margin-left: auto; margin-right: 0; clear: both; }
.cms-align-left.cms-wrap { float: left; margin: .3em 1.4em .8em 0; }
.cms-align-right.cms-wrap { float: right; margin: .3em 0 .8em 1.4em; }
.cms-clear { clear: both; }
@media (max-width: 700px) {
  .cms { padding: 16px 16px 56px; }
  .cms-img, .cms-img.cms-wrap { float: none !important; width: 100% !important; margin: 1.2em 0 !important; }
  .cms-has-side { grid-template-columns: minmax(0, 1fr); }
  .cms-side { position: static; }
}

/* tables and embeds never break a phone layout */
.cms-table { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
.cms-table table { border-collapse: collapse; min-width: 100%; }
.cms-table th, .cms-table td { border: 1px solid var(--rd-line); padding: 10px 14px; text-align: left; vertical-align: top; }
.cms-table th { background: var(--rd-soft); }
.cms-table caption { text-align: left; color: var(--rd-muted); padding-bottom: 6px; }
.cms-embed { position: relative; aspect-ratio: 16 / 9; margin: 1.4em 0; border-radius: 16px; overflow: hidden; background: #000; }
.cms-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* buttons, cards, steps, faq */
.cms-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font: 600 1rem/1 Inter, sans-serif; text-decoration: none !important; border: 2px solid transparent; }
.cms-btn-primary { background: var(--rd-blue); color: var(--rd-on-blue) !important; }
.cms-btn-primary:hover { background: var(--rd-blue-h); }
.cms-btn-secondary { background: var(--rd-surface); color: var(--rd-ink) !important; border-color: var(--rd-line); }
.cms-btn-secondary:hover { border-color: var(--rd-blue); }
html[data-bs-theme="dark"] .cms-btn-primary { background: #c8f250; color: #0b1626 !important; }
.cms-btn:focus-visible, .cms-card:focus-visible, .cms a:focus-visible { outline: 3px solid var(--rd-blue); outline-offset: 2px; }
.cms-cta, .cms-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0; }
.cms-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 1em 0; }
.cms-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--rd-line); border-radius: 20px; background: var(--rd-surface); color: var(--rd-ink) !important; text-decoration: none !important; }
.cms-card:hover { border-color: var(--rd-blue); }
.cms-card img { width: 100%; height: auto; border-radius: 12px; }
.cms-card span { color: var(--rd-muted); font-size: .95rem; }
.cms-card .cms-card-type { font: 700 .72rem/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-blue); }
.cms-steps ol { padding-left: 1.2em; } .cms-steps li { margin-bottom: 1em; }
.cms-faq details { border: 1px solid var(--rd-line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; background: var(--rd-surface); }
.cms-faq summary { cursor: pointer; font-weight: 700; min-height: 24px; }
.cms-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.cms-chips a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rd-line); color: var(--rd-ink); text-decoration: none; font-weight: 600; background: var(--rd-surface); }
.cms-chips a:hover { border-color: var(--rd-blue); }
.cms-meta { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rd-line); color: var(--rd-muted); }
.cms-tags span { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 999px; background: var(--rd-soft); }
.cms-pager { display: flex; gap: 18px; align-items: center; margin-top: 24px; }
.cms-empty { padding: 36px; text-align: center; color: var(--rd-muted); border: 1px dashed var(--rd-line); border-radius: 20px; }

/* the site's own styles remove the space around headings and the bullets: give the written content its own back */
.rd.cms .cms-body h2, .rd.cms .cms-body h3, .rd.cms .cms-body h4 { margin: 1.8em 0 .6em; }
.rd.cms .cms-body p { margin: 0 0 1.1em; }
.rd.cms .cms-body ul { list-style: disc; margin: 0 0 1.1em; padding-left: 1.4em; }
.rd.cms .cms-body ol { list-style: decimal; margin: 0 0 1.1em; padding-left: 1.4em; }
.rd.cms .cms-body li { margin: 0 0 .4em; }
.rd.cms .cms-head .cms-lead { margin-bottom: 10px; }
.rd.cms .cms-toc { margin: 18px 0 24px; }
.rd.cms .cms-body th, .rd.cms .cms-body td { overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* Cards or list: the visitor chooses; cards are what a page shows without scripts. */
.cms-view { display: flex; justify-content: flex-end; margin: 6px 0 14px; }
.cms-view[hidden] { display: none; }
.cms-view button { padding: 8px 16px; border: 1px solid var(--rd-line); background: transparent; color: inherit; font-weight: 700; cursor: pointer; }
.cms-view button:first-child { border-radius: 10px 0 0 10px; }
.cms-view button:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.cms-view button[aria-pressed="true"] { background: #5aa9f2; border-color: #5aa9f2; color: #08111f; }
.rd.cms .cms-cards.as-list { display: block; }
.rd.cms .cms-cards.as-list a.cms-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: center; min-height: 0; margin: 0 0 8px; padding: 12px 18px; }
.rd.cms .cms-cards.as-list a.cms-card > img, .rd.cms .cms-cards.as-list .cms-card-type { display: none; }
.rd.cms .cms-cards.as-list a.cms-card > strong, .rd.cms .cms-cards.as-list a.cms-card > span:not(.cms-card-type) { grid-column: 1; margin: 0; }
.rd.cms .cms-cards.as-list a.cms-card > span:not(.cms-card-type) { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd.cms .cms-cards.as-list a.cms-card::after { content: "\2192"; grid-column: 2; grid-row: 1 / span 2; font-size: 1.25rem; opacity: .7; }

/* Long titles in a content menu wrap instead of stretching it. */
.cms-menu a { overflow-wrap: anywhere; }
.cms-menu li { max-width: 280px; }
