/* ==========================================================================
   Cookie policy — "bailrbet-cookie-policy" (1440) / "bailrbet-cookie-policy-mobile" (390)
   ========================================================================== */

/* Intro ------------------------------------------------------------------ */
.ck-intro { background: var(--navy); }
.ck-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 16px; background: var(--navy-2); border-bottom: 1px solid var(--line); }
.ck-badge { display: inline-flex; padding: 4px 8px; border-radius: 3px; background: var(--blue); color: var(--white); font-size: 10px; line-height: 13px; font-weight: 800; }
.ck-title { font-family: var(--font-display); font-weight: 900; font-size: 38px; line-height: 36px; color: var(--white); }
.ck-lead { font-size: 14px; line-height: 21px; color: var(--ink-4); }
.ck-index { display: flex; flex-direction: column; gap: 16px; margin: 16px 16px 0; padding: 15px; background: var(--navy-2); border: 1px solid var(--line); border-radius: 6px; }
.ck-index__title { font-family: var(--font-display); font-weight: 900; font-size: 20px; line-height: 24px; color: var(--yellow); }
.ck-index__list { display: flex; flex-direction: column; gap: 8px; }
.ck-index__item { position: relative; padding-left: 12px; }
.ck-index__item::before { content: ''; position: absolute; left: 0; top: 6.5px; width: 4px; height: 4px; border-radius: 2px; background: var(--blue); }
.ck-index__link { display: block; font-size: 13px; line-height: 17px; font-weight: 500; color: var(--ink-4); transition: color var(--t); }
.ck-index__link:hover { color: var(--white); }
@media (min-width: 1024px) {
  .ck-intro { background: var(--navy-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
  .ck-intro__inner { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: flex-start; gap: 48px; }
  .ck-hero { flex: 1 1 0; min-width: 0; padding: 0; background: transparent; border: 0; }
  .ck-badge { padding: 4px 10px; font-size: 11px; line-height: 14px; }
  .ck-title { font-size: 64px; line-height: 60px; }
  .ck-lead { font-size: 15px; line-height: 22px; }
  .ck-index { flex: 0 0 500px; margin: 0; padding: 23px; background: var(--navy); }
  .ck-index__title { font-weight: 800; }
  .ck-index__link { font-weight: 400; }
}

/* Workspace ------------------------------------------------------------- */
.ck-work { background: var(--cream); color: var(--ink); }
.ck-work__inner { display: flex; flex-direction: column; }
.ck-nav { display: none; }
.ck-doc { display: flex; flex-direction: column; gap: 20px; padding: 24px 16px 32px; }
.ck-rail { order: -1; background: var(--navy); padding: 16px; }
.ck-rail__sticky { display: flex; flex-direction: column; gap: 16px; }
.ck-resources { display: flex; flex-direction: column; gap: 12px; padding: 15px; background: var(--navy-2); border: 1px solid var(--line); border-radius: 6px; }
.ck-resources__title { font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 22px; color: var(--white); }
.ck-resources__list { display: flex; flex-direction: column; gap: 8px; }
.ck-resources__item { position: relative; padding-left: 10px; }
.ck-resources__item::before { content: ''; position: absolute; left: 0; top: 6.5px; width: 4px; height: 4px; border-radius: 2px; background: var(--yellow); }
.ck-resources__link { font-size: 13px; line-height: 17px; font-weight: 700; color: var(--blue); }
.ck-resources__link:hover { text-decoration: underline; }
.ck-safe { display: flex; flex-direction: column; gap: 8px; padding: 15px; background: var(--navy-2); border: 1px solid var(--line); border-radius: 6px; }
.ck-safe__title { font-family: var(--font-display); font-weight: 900; font-size: 16px; line-height: 19px; color: var(--yellow); }
.ck-safe__text { font-size: 12px; line-height: 18px; color: var(--ink-4); }
@media (min-width: 1024px) {
  .ck-work__inner { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; flex-direction: row; align-items: flex-start; gap: 32px; padding: 64px 0; }
  .ck-nav { display: block; flex: 0 0 280px; min-width: 0; }
  .ck-nav__sticky { display: flex; flex-direction: column; gap: 12px; }
  .ck-nav__title { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 24px; color: var(--navy); }
  .ck-nav__list { display: flex; flex-direction: column; gap: 2px; border-radius: 6px; overflow: hidden; }
  .ck-nav__link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 41px; padding: 12px 16px; background: var(--white); color: var(--ink); }
  .ck-nav__inner { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .ck-nav__num { font-size: 12px; line-height: 16px; font-weight: 800; color: var(--ink-2); }
  .ck-nav__label { font-size: 13px; line-height: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ck-nav__icon { color: var(--blue); }
  .ck-nav__link:hover { background: var(--grey); }
  .ck-nav__link.is-active { background: var(--blue); color: var(--white); }
  .ck-nav__link.is-active .ck-nav__num, .ck-nav__link.is-active .ck-nav__icon { color: var(--yellow); }
  .ck-doc { flex: 1 1 0; min-width: 0; gap: 40px; padding: 0; }
  .ck-rail { order: 0; flex: 0 0 240px; padding: 0; background: transparent; }
  .ck-rail__sticky { gap: 24px; }
  .ck-resources { gap: 16px; padding: 19px; background: var(--white); border-color: var(--line-light); }
  .ck-resources__title { font-weight: 800; color: var(--navy); }
  .ck-resources__list { gap: 12px; }
  .ck-resources__item { padding-left: 12px; }
  .ck-resources__item::before { background: var(--blue); }
  .ck-resources__link { font-weight: 600; }
  .ck-safe { gap: 12px; padding: 20px; background: var(--navy-3); border: 0; }
  .ck-safe__title { font-weight: 800; }
}

/* Sections ---------------------------------------------------------------- */
.ck-section { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 19px; background: var(--white); border: 1px solid var(--line-light); border-radius: 6px; }
.ck-section--03, .ck-section--04 { gap: 16px; }
.ck-section--05 { gap: 14px; }
.ck-section > * { align-self: stretch; }
.ck-section__header { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 900; }
.ck-section__num { font-size: 28px; line-height: 34px; color: var(--blue); }
.ck-section__title { font-size: 22px; line-height: 26px; color: var(--navy); }
.ck-p { font-size: 14px; line-height: 21px; }
.ck-bullets { display: flex; flex-direction: column; gap: 6px; }
.ck-bullets__item { font-size: 14px; line-height: 21px; }
.ck-bullets__item::before { content: '• '; }
.ck-matrix { display: flex; flex-direction: column; gap: 12px; }
.ck-matrix__row { display: flex; flex-direction: column; gap: 6px; }
.ck-matrix__row + .ck-matrix__row { padding-top: 12px; border-top: 1px solid var(--line-light); }
.ck-matrix__cell { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ck-matrix__title { font-size: 15px; line-height: 20px; font-weight: 700; color: var(--navy); }
.ck-matrix__badge { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 3px; color: var(--white); font-size: 9px; line-height: 12px; font-weight: 900; white-space: nowrap; }
.ck-matrix__badge--green { background: var(--green); }
.ck-matrix__badge--blue { background: var(--blue); }
.ck-matrix__text { font-size: 13px; line-height: 19.5px; }
.ck-flow { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--cream); border-radius: 4px; }
.ck-flow__title { font-size: 10px; line-height: 13px; font-weight: 800; color: var(--blue); }
.ck-flow__steps { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ck-flow__step { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; align-self: stretch; padding: 8px; border-radius: 4px; text-align: center; color: var(--white); }
.ck-flow__step--dark { background: var(--navy); }
.ck-flow__step--blue { background: var(--blue); }
.ck-flow__step--green { background: var(--green); }
.ck-flow__label { font-size: 11px; line-height: 14px; font-weight: 700; }
.ck-flow__label br { display: none; }
.ck-flow__step--blue .ck-flow__label { font-weight: 800; color: var(--yellow); }
.ck-flow__sub { font-size: 9px; line-height: 12px; }
.ck-flow__arrow { width: 2px; height: 10px; background: var(--blue); }
.ck-routes { display: flex; flex-direction: column; gap: 10px; }
.ck-route { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; background: var(--cream); border-radius: 4px; }
.ck-route__title { font-size: 13px; line-height: 17px; font-weight: 800; color: var(--blue); }
a.ck-route__title:hover { text-decoration: underline; }
.ck-route__text { font-size: 12px; line-height: 16.8px; }
.ck-link { display: inline-block; align-self: flex-start; font-size: 14px; line-height: 18px; font-weight: 700; color: var(--blue); transition: transform var(--t); }
.ck-link:hover { transform: translateX(2px); text-decoration: underline; }
@media (min-width: 1024px) {
  .ck-section, .ck-section--03, .ck-section--04, .ck-section--05 { gap: var(--sec-gap, 16px); padding: 31px; }
  .ck-section__header { gap: 12px; }
  .ck-section__title { font-size: 28px; line-height: 34px; }
  .ck-p { font-size: 15px; line-height: 24px; }
  .ck-bullets { gap: 8px; padding-left: 16px; }
  .ck-bullets__item { font-size: 14px; line-height: 18px; }
  .ck-matrix { gap: 1px; background: var(--line-light); border-radius: 4px; overflow: hidden; }
  .ck-matrix__row { flex-direction: row; gap: 16px; padding: 16px; background: var(--white); }
  .ck-matrix__row + .ck-matrix__row { padding-top: 16px; border-top: 0; }
  .ck-matrix__cell { flex: 0 0 200px; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; }
  .ck-matrix__badge { font-size: 10px; line-height: 13px; font-weight: 800; }
  .ck-matrix__text { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 20px; }
  .ck-flow { gap: 12px; padding: 20px; }
  .ck-flow__title { font-size: 11px; line-height: 14px; }
  .ck-flow__steps { flex-direction: row; gap: 8px; }
  .ck-flow__step { flex: 1 1 auto; align-self: auto; padding: 12px; }
  .ck-flow__step--blue { gap: 4px; padding: 8px; }
  .ck-flow__step--green { flex: none; }
  .ck-flow__label { font-size: 12px; line-height: 16px; }
  .ck-flow__label br { display: inline; }
  .ck-flow__step--blue .ck-flow__label { font-size: 11px; line-height: 14px; }
  .ck-flow__step--green .ck-flow__label { font-size: 11px; line-height: 14px; }
  .ck-flow__sub { font-size: 10px; line-height: 13px; }
  .ck-flow__arrow { width: auto; height: auto; background: none; font-size: 14px; line-height: 18px; font-weight: 800; color: var(--blue); }
  .ck-flow__arrow::before { content: '→'; }
  .ck-routes { flex-direction: row; gap: 16px; }
  .ck-route { flex: 1 1 0; gap: 8px; padding: 16px; }
  .ck-route__title { font-size: 14px; line-height: 18px; }
  .ck-route__text { font-size: 13px; line-height: 17px; }
  .ck-link { font-size: 15px; line-height: 20px; }
}

/* Narrow desktop (1024–1279px): index card, 280 / doc / 240 columns and 200px matrix labels only fit at 1280+. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .ck-intro__inner { gap: 32px; }
  .ck-index { flex-basis: 380px; }
  .ck-work__inner { flex-wrap: wrap; }
  .ck-nav { flex-basis: 220px; }
  .ck-rail { flex: 1 1 100%; order: 3; }
  .ck-rail__sticky { position: static; flex-direction: row; align-items: stretch; }
  .ck-rail__sticky > * { flex: 1 1 0; min-width: 0; }
  .ck-matrix__row { flex-direction: column; gap: 8px; }
  .ck-matrix__cell { flex: none; flex-direction: row; align-items: center; justify-content: space-between; }
}
