/* Bonus layout adapted from fast-sell/offer. */
.chapter.timed-bonus {
  --bonus-yellow: #f5cf5b;
  --bonus-rule: #eadfbe;
  padding-top: 0;
  padding-bottom: 0;
  scroll-margin-top: 24px;
}
.timed-bonus-shell { max-width: 1120px; margin: 0 auto; border: 1px solid var(--bonus-yellow); border-radius: 6px; overflow: hidden; }
.bonus-window { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 26px; border-top: 4px solid var(--bonus-yellow); background: var(--ink); color: #fff; }
.bonus-window h2 { margin: 0; color: #fff; font: 600 24px/1.38 'Uiru F08', sans-serif; letter-spacing: -.014em; text-wrap: pretty; }
.bonus-clock { display: block; flex: 0 0 auto; padding: 7px 12px 8px; border-radius: 4px; background: var(--bonus-yellow); color: var(--ink); font: 600 24px/1.15 'Uiru F10', monospace; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bonus-editorial { max-width: 936px; margin-inline: auto; padding: 0 31px 31px; }
.bonus-intro { max-width: 744px; margin: 30px 0 31px 76px; }
.bonus-editorial p { margin: 0; font-size: 18px; line-height: 1.65; }
.bonus-editorial p + p { margin-top: 15px; }
.bonus-editorial .bonus-lead { margin-top: 0; margin-bottom: 21px; font-size: 25px; line-height: 1.4; }
.bonus-unit { display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 22px; align-items: start; padding: 30px 0; border-top: 1px solid var(--bonus-rule); }
.bonus-unit-number { display: grid; place-items: center; width: 46px; height: 43px; margin-top: 1px; border-radius: 4px; background: var(--bonus-yellow); color: var(--ink); font: 600 17px/1 'Uiru F10', monospace; }
.bonus-unit-copy { min-width: 0; max-width: 744px; }
.bonus-unit h3 { margin: 0 0 18px; font-size: 22px; line-height: 1.42; font-weight: 600; color: var(--accent); letter-spacing: -.012em; text-wrap: pretty; }
.bonus-unit:last-child { padding-bottom: 0; }
.bonus-editorial .bonus-estimate { border-left: 3px solid var(--bonus-yellow); padding: 4px 0 4px 18px; margin-top: 21px; }
@media (min-width: 721px) and (max-width: 1100px) {
  .bonus-window h2 { font-size: 22px; }
}
@media (max-width: 720px) {
  .bonus-window { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; }
  .bonus-window h2 { font-size: 23px; }
  .bonus-clock { font-size: 26px; }
  .bonus-editorial { padding: 0 22px 26px; }
  .bonus-intro { margin: 26px 0; max-width: none; }
  .bonus-unit { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 26px 0; }
  .bonus-unit-number { width: 36px; height: 35px; font-size: 15px; }
  .bonus-unit h3 { font-size: 21px; }
}
@media (max-width: 540px) {
  .chapter.timed-bonus { padding: 0 14px; }
  .bonus-window { align-items: center; padding: 22px 20px 23px; text-align: center; gap: 18px; }
  .bonus-window h2 { font-size: 22px; line-height: 1.4; }
  .bonus-editorial { padding: 0 19px 24px; }
  .bonus-editorial p { font-size: 17px; line-height: 1.65; }
  .bonus-editorial p + p { margin-top: 14px; }
  .bonus-editorial .bonus-lead { margin-bottom: 18px; font-size: 23px; }
  .bonus-unit { display: block; padding: 25px 0; }
  .bonus-unit-number { width: 37px; height: 33px; margin: 0 0 15px; font-size: 15px; }
  .bonus-unit h3 { font-size: 21px; line-height: 1.42; margin-bottom: 15px; }
}
/* A compact shortcut to the bonus; it uses the same countdown as the section. */
.bonus-float {
  position: fixed;
  left: env(safe-area-inset-left, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  z-index: 50;
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(23, 35, 56, .12);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 4px 0 0;
  background: #f5cf5b;
  color: #172338;
  box-shadow: 0 -1px 5px rgba(23, 35, 56, .08);
  font-synthesis: none;
}
.bonus-float[hidden] { display: none; }
.bonus-float-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 26px;
  padding: 0 7px;
  color: inherit;
  text-decoration: none;
}
.bonus-float-time { font: 600 13px/1 'Uiru F10', monospace; font-variant-numeric: tabular-nums; letter-spacing: -.045em; white-space: nowrap; }
.bonus-float-close {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(23, 35, 56, .12);
  border-radius: 0 3px 0 0;
  background: transparent;
  color: #536175;
  cursor: pointer;
}
/* Keep the visible tab small; extend the two hit areas without overlapping them. */
.bonus-float-link::before, .bonus-float-close::before { content: ''; position: absolute; inset: -18px 0 0; }
.bonus-float-close::before { right: -12px; }
.bonus-float-close svg { width: 10px; height: 10px; }
.bonus-float-link:focus-visible, .bonus-float-close:focus-visible { outline: 2px solid #204cbd; outline-offset: -2px; }
@media (hover: hover) {
  .bonus-float-link:hover, .bonus-float-close:hover { background: rgba(255, 255, 255, .18); color: #172338; }
}
@media (prefers-reduced-motion: reduce) {
  html:root { scroll-behavior: auto; }
}
@media print {
  .bonus-float { display: none; }
  .bonus-window { border: 1px solid var(--ink); color: var(--ink); background: #fff; }
  .bonus-window h2 { color: var(--ink); }
}
