/* Roulette King Board, stylesheet.
   Scoped to the plugin's own .rkb-* classes. It draws the row anatomy of the
   ranking only; the palette comes from the theme tokens, so the board sits on
   the theme's ground, mat and rule without restating them.

   The markup this sheet paints, one <li class="rkb-row"> per offer:
     .rkb-rank                     the numeral of the row
     .rkb-brand > .rkb-logoslot > img.rkb-logo + .rkb-name
                                   the operator's own file over its name
     .rkb-termsline .rkb-term      three label and value pairs on one line
     .rkb-figs > .rkb-fig          two big figures with labels
     .rkb-action > a.rkb-btn       the painted button and the 18+ line
     details.rkb-more              the closed expander

   One band per row at desktop: rank, brand, terms, figures, action, on five
   tracks between 40 and 260px as section 5 of the visual spec budgets them.
   The row is a single column at every width, and the block never holds a
   second track of rows. Nothing clips: overflow stays visible everywhere and
   the extra terms live in the closed details element. */

/* The board is one block on the article's own edge. */
.rkb-board {
  margin: 0 0 28px;
  max-width: 100%;
  box-sizing: border-box;
}

.rkb-board .rkb-title {
  margin: 0 0 10px;
  font-size: 29px;
  line-height: 1.15;
  font-weight: 500;
}

/* One sentence of paid placement, directly over the rows. */
.rkb-board .rkb-disclosure {
  margin: 0 0 12px;
  font-size: 14.2px;
  line-height: 1.45;
  color: var(--ink-soft, #d8c1b8);
}

.rkb-board .rkb-disclosure a {
  color: var(--accent, #45d994);
  font-weight: 500;
  text-decoration-color: currentColor;
}

/* The mat: five rows on one surface, framed by a rule, so the ranking reads
   as a single plate rather than five floating boxes. */
.rkb-board .rkb-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  counter-reset: rkb;
  background: var(--plate, #1a0b10);
  border: 1px solid var(--rule, #7a6062);
  box-sizing: border-box;
}

.rkb-board .rkb-row {
  counter-increment: rkb;
  position: relative;
  display: grid;
  grid-template-columns: 36px 228px minmax(0, 1fr) minmax(190px, 238px) 250px;
  grid-template-areas:
    "rank brand terms figs action"
    "more more more more more";
  align-items: center;
  column-gap: 18px;
  row-gap: 0;
  margin: 0;
  padding: 9px 18px 7px;
  border: 0;
  background: transparent;
  box-sizing: border-box;
  min-width: 0;
  overflow: visible;
}

.rkb-board .rkb-row + .rkb-row {
  border-block-start: 1px solid var(--rule-soft, #5b4348);
}

/* The leading row is marked once, with the accent: its edge and its name. */
.rkb-board .rkb-row:first-child {
  background: linear-gradient(90deg, rgba(69, 217, 148, 0.1), rgba(69, 217, 148, 0) 58%);
  box-shadow: inset 3px 0 0 var(--accent, #45d994);
}

.rkb-board .rkb-row:first-child .rkb-name {
  color: var(--accent, #45d994);
}

/* Rank numeral: Bodoni, tabular, so the column down the plate is even. */
.rkb-board .rkb-rank {
  grid-area: rank;
  align-self: center;
  display: block;
  color: var(--ink-soft, #d8c1b8);
  font-family: var(--display, "Bodoni Moda", Georgia, serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* Screen reader only: the words after the numeral. */
.rkb-board .rk-visually-hidden {
  position: absolute !important;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The brand slot: the operator's own file above its own name, both inside the
   same track, so the name is never hidden and never separated from its mark. */
.rkb-board .rkb-brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.rkb-board .rkb-logoslot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  inline-size: 100%;
  max-inline-size: 100%;
  block-size: 34px;
  min-block-size: 34px;
  max-block-size: 34px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}

.rkb-board .rkb-logo {
  display: block;
  inline-size: auto;
  block-size: 100%;
  min-inline-size: 76px;
  min-block-size: 24px;
  max-inline-size: 100%;
  max-block-size: 100%;
  margin: 0;
  line-height: 0;
}

/* A raster mark the operator supplied: contained in the slot, never stretched
   and never cropped, and never below the 60 by 20 floor the sweep measures. */
.rkb-board img.rkb-logo-img {
  inline-size: auto;
  block-size: auto;
  min-inline-size: 76px;
  max-inline-size: 100%;
  min-block-size: 24px;
  max-block-size: 34px;
  object-fit: contain;
  object-position: left center;
}

/* The mark itself: the operator's file, painted at the height of the slot and
   never wider than the brand track. It keeps its own proportions. */
.rkb-board .rkb-logo .rkb-mark {
  display: block;
  inline-size: auto;
  block-size: 100%;
  max-inline-size: 100%;
  max-block-size: 100%;
  overflow: visible;
}

/* A square mark: the artwork holds its wordmark in its lower third, so the
   slot takes the mark at its own height rather than crushing it. */
.rkb-board .rkb-row.rkb-shape-mark {
  grid-template-columns: 36px 228px minmax(0, 1fr) minmax(190px, 238px) 250px;
}

.rkb-board .rkb-shape-mark .rkb-logoslot {
  block-size: auto;
  min-block-size: 30px;
  max-block-size: none;
}

.rkb-board .rkb-shape-mark .rkb-logo {
  inline-size: auto;
  block-size: auto;
  min-block-size: 34px;
  max-block-size: 44px;
  max-inline-size: 100%;
}

.rkb-board .rkb-name {
  display: block;
  font-family: var(--display, "Bodoni Moda", Georgia, serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink, #f6e3da);
}

/* The offer sentence is kept for the expander and read out on a phone. */
.rkb-board .rkb-copy {
  display: none;
}

/* The terms slot: three label and value pairs on one line. */
.rkb-board .rkb-termsline {
  grid-area: terms;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 2px;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.35;
}

.rkb-board .rkb-term {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.rkb-board .rkb-tk {
  color: var(--ink-soft, #d8c1b8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.rkb-board .rkb-tv {
  color: var(--ink, #f6e3da);
  font-weight: 500;
}

/* Two figures in a two column sub grid: the values share one baseline row and
   their labels share the next, so the pair reads as one instrument. */
.rkb-board .rkb-figs {
  grid-area: figs;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 0;
  align-items: start;
  min-width: 0;
}

.rkb-board .rkb-fig {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.rkb-board .rkb-fv {
  display: block;
  font-family: var(--display, "Bodoni Moda", Georgia, serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
  color: var(--ink, #f6e3da);
  white-space: nowrap;
}

.rkb-board .rkb-cur {
  font-size: 0.74em;
}

.rkb-board .rkb-fl {
  display: block;
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft, #d8c1b8);
}

.rkb-board .rkb-action {
  grid-area: action;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
}

/* The painted button: emerald fill, a 2px frame, a hard offset shadow and an
   arrow. It is the highest-contrast object on the page. */
.rkb-board a.rkb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  inline-size: 100%;
  min-inline-size: 160px;
  min-block-size: 48px;
  padding: 10px 14px;
  margin: 0;
  border: 2px solid var(--accent, #45d994);
  border-radius: 4px;
  background: var(--accent, #45d994);
  color: var(--on-accent, #14110f);
  font-family: var(--text, "Jost", sans-serif);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  box-shadow: 4px 4px 0 var(--ink, #f6e3da);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease,
    box-shadow 150ms ease, transform 150ms ease;
}

.rkb-board .rkb-btnlab {
  display: block;
  white-space: nowrap;
}

.rkb-board .rkb-arrow {
  display: block;
  flex: none;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 150ms ease;
}

.rkb-board a.rkb-btn:visited {
  background: var(--accent, #45d994);
  border-color: var(--accent, #45d994);
  color: var(--on-accent, #14110f);
}

.rkb-board a.rkb-btn:hover {
  background: var(--accent-hover, #6fe8b0);
  border-color: var(--accent-hover, #6fe8b0);
  color: var(--on-accent, #14110f);
  box-shadow: 2px 2px 0 var(--ink, #f6e3da);
  transform: translate(2px, 2px);
  text-decoration: none;
}

.rkb-board a.rkb-btn:hover .rkb-arrow {
  transform: translateX(3px);
}

.rkb-board a.rkb-btn:active {
  background: var(--accent-press, #38c183);
  border-color: var(--accent-press, #38c183);
  color: var(--on-accent, #14110f);
  box-shadow: 0 0 0 var(--ink, #f6e3da);
  transform: translate(4px, 4px);
}

.rkb-board a.rkb-btn:focus-visible {
  outline: 3px solid var(--ink, #f6e3da);
  outline-offset: 3px;
  background: var(--accent-hover, #6fe8b0);
  border-color: var(--accent-hover, #6fe8b0);
  color: var(--on-accent, #14110f);
}

/* The age line: small type, no frame, no chip, directly under the button. */
.rkb-board .rkb-small {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--ink-soft, #d8c1b8);
  text-align: center;
}

/* The closed expander: one line, with a plus that becomes a cross. */
.rkb-board .rkb-more {
  grid-area: more;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink-soft, #d8c1b8);
  justify-self: start;
  align-self: end;
}

.rkb-board .rkb-more summary {
  display: inline-block;
  inline-size: auto;
  max-inline-size: 100%;
  position: relative;
  padding-inline-end: 16px;
  margin: 0;
  color: var(--ink-soft, #d8c1b8);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 16px;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--rule, #7a6062);
  text-underline-offset: 3px;
}

.rkb-board .rkb-more summary::-webkit-details-marker {
  display: none;
}

.rkb-board .rkb-more summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 0;
  color: var(--accent, #45d994);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
}

.rkb-board .rkb-more[open] summary::after {
  content: "\00D7";
}

.rkb-board .rkb-more summary:hover {
  color: var(--ink, #f6e3da);
  text-decoration-color: var(--accent, #45d994);
}

/* The folded terms are not laid out at all while the expander is closed. */
.rkb-board .rkb-more:not([open]) > p {
  display: none;
}

.rkb-board .rkb-more[open] {
  padding-block-start: 6px;
}

.rkb-board .rkb-more p {
  margin: 6px 0 0;
  max-inline-size: 78ch;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft, #d8c1b8);
  white-space: normal;
}

/* Tablet from 781 to 1180: the band folds to two lines inside one row. The
   brand takes the left, the figures the right, the terms sit under the brand
   and the button under the figures. A row stays well under 180px. */
@media (max-width: 1180px) and (min-width: 781px) {
  .rkb-board .rkb-row,
  .rkb-board .rkb-row.rkb-shape-wide,
  .rkb-board .rkb-row.rkb-shape-mark {
    grid-template-columns: 30px 176px minmax(0, 1fr) 250px;
    grid-template-areas:
      "rank brand terms figs"
      "rank brand terms action"
      "more more more more";
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    padding: 7px 14px 5px;
  }

  .rkb-board .rkb-rank {
    font-size: 18px;
  }

  .rkb-board .rkb-logoslot {
    block-size: 30px;
    min-block-size: 30px;
    max-block-size: 30px;
  }

  .rkb-board .rkb-shape-mark .rkb-logoslot {
    block-size: auto;
    min-block-size: 28px;
    max-block-size: none;
  }

  .rkb-board .rkb-shape-mark .rkb-logo {
    min-block-size: 28px;
    max-block-size: 34px;
  }

  .rkb-board .rkb-logo {
    min-inline-size: 80px;
    min-block-size: 22px;
  }

  .rkb-board img.rkb-logo-img {
    min-inline-size: 80px;
    min-block-size: 22px;
    max-block-size: 30px;
  }

  .rkb-board .rkb-name {
    font-size: 15.5px;
  }

  .rkb-board .rkb-fv {
    font-size: 23px;
  }

  .rkb-board .rkb-fl {
    font-size: 10px;
  }

  .rkb-board .rkb-termsline {
    column-gap: 12px;
    font-size: 13px;
  }

  .rkb-board .rkb-tk {
    font-size: 10px;
  }

  .rkb-board a.rkb-btn {
    min-inline-size: 0;
    min-block-size: 46px;
    font-size: 16px;
  }

  .rkb-board .rkb-small {
    text-align: start;
  }

  .rkb-board .rkb-more {
    justify-self: start;
  }
}

/* Phone from 600 to 780: the rank and the brand share the top band, the terms
   follow on one line, the two figures and the age line close the card, and the
   button takes a band of its own at the full width of the card, directly over
   its small print. */
@media (max-width: 780px) {
  .rkb-board .rkb-title {
    font-size: 24px;
  }

  .rkb-board .rkb-disclosure {
    font-size: 14px;
    margin-block-end: 8px;
  }

  .rkb-board .rkb-row,
  .rkb-board .rkb-row.rkb-shape-wide,
  .rkb-board .rkb-row.rkb-shape-mark {
    grid-template-columns: 18px minmax(0, 1fr);
    grid-template-areas:
      "rank brand"
      "terms terms"
      "figs figs"
      "action action"
      "more more";
    align-items: center;
    column-gap: 8px;
    row-gap: 2px;
    padding: 6px 10px 5px;
  }

  .rkb-board .rkb-brand {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .rkb-board .rkb-logoslot {
    inline-size: auto;
    max-inline-size: 130px;
    block-size: 32px;
    min-block-size: 32px;
    max-block-size: 32px;
  }

  .rkb-board .rkb-shape-mark .rkb-logoslot {
    block-size: auto;
    min-block-size: 30px;
    max-block-size: none;
  }

  .rkb-board .rkb-shape-mark .rkb-logo {
    min-block-size: 30px;
    max-block-size: 34px;
  }

  .rkb-board .rkb-logo {
    min-inline-size: 80px;
    min-block-size: 24px;
  }

  .rkb-board img.rkb-logo-img {
    min-inline-size: 80px;
    min-block-size: 24px;
    max-block-size: 32px;
  }

  .rkb-board .rkb-name {
    font-size: 15px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .rkb-board .rkb-rank {
    font-size: 14px;
  }

  .rkb-board .rkb-termsline {
    flex-wrap: nowrap;
    column-gap: 8px;
    font-size: 11.5px;
    line-height: 1.2;
  }

  .rkb-board .rkb-term {
    gap: 4px;
    overflow: visible;
  }

  .rkb-board .rkb-tk {
    font-size: 9px;
  }

  .rkb-board .rkb-tv {
    white-space: nowrap;
  }

  .rkb-board .rkb-figs {
    grid-area: figs;
    column-gap: 14px;
    justify-self: start;
    inline-size: 100%;
  }

  .rkb-board .rkb-fig {
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
  }

  .rkb-board .rkb-fv {
    font-size: 20px;
    line-height: 1.05;
  }

  .rkb-board .rkb-fl {
    font-size: 9px;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: start;
  }

  /* The card's own bands: the button first, its small print directly under
     it, nothing else. The button is the card's full width. */
  /* The button takes the card's full width, the age line under it, and it is
     the widest interactive element in the card. The track and the button both
     stretch: the action band is the card's inner width and nothing inside it
     is narrower than that. */
  .rkb-board .rkb-action {
    grid-area: action;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: none;
    justify-items: stretch;
  }

  .rkb-board .rkb-action a.rkb-btn,
  .rkb-board a.rkb-btn {
    grid-area: action;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: none;
    min-block-size: 46px;
    block-size: 46px;
    padding: 0 14px;
    font-size: 15px;
    justify-content: space-between;
  }

  .rkb-board .rkb-small {
    text-align: start;
    font-size: 10px;
    line-height: 1.15;
    white-space: normal;
  }

  .rkb-board .rkb-more {
    justify-self: stretch;
    margin-block-start: 2px;
    border-block-start: 1px solid var(--rule-soft, #5b4348);
    padding-block-start: 2px;
  }

  .rkb-board .rkb-more summary {
    font-size: 11px;
    line-height: 14px;
    padding-inline-end: 13px;
  }

  .rkb-board .rkb-more summary::after {
    font-size: 12px;
    line-height: 14px;
  }
}

/* The button takes the card's full width on a phone, the age line under it,
   and it is the widest interactive element in the card. The action band spans
   every track of the row so nothing the row's grid does can narrow it: the
   band, the wrapper and the button all stretch to the card's inner width. */
@media (max-width: 620px) {
  .rkb-board .rkb-row,
  .rkb-board .rkb-row.rkb-shape-wide,
  .rkb-board .rkb-row.rkb-shape-mark {
    grid-template-areas:
      "rank brand"
      "terms terms"
      "figs figs"
      "action action"
      "more more";
  }

  .rkb-board .rkb-action {
    grid-area: action;
    grid-column: 1 / -1;
    display: block;
    inline-size: 100%;
    max-inline-size: none;
    min-inline-size: 0;
  }

  .rkb-board .rkb-action a.rkb-btn,
  .rkb-board a.rkb-btn {
    display: flex;
    inline-size: 100%;
    max-inline-size: none;
    min-inline-size: 0;
    box-sizing: border-box;
  }
}

/* Phone card at 599px and below: four tight bands, so five cards plus their
   rules stay well inside 620px in total. The CTA is the card's full width. */
@media (max-width: 599px) {
  .rkb-board {
    margin-block-end: 22px;
  }

  .rkb-board .rkb-title {
    font-size: 22px;
    margin-block-end: 6px;
  }

  .rkb-board .rkb-disclosure {
    font-size: 13.8px;
    line-height: 1.4;
    margin-block-end: 8px;
  }

  .rkb-board .rkb-row,
  .rkb-board .rkb-row.rkb-shape-wide,
  .rkb-board .rkb-row.rkb-shape-mark {
    grid-template-columns: 13px minmax(0, 1fr);
    grid-template-areas:
      "rank brand"
      "terms terms"
      "figs figs"
      "action action"
      "more more";
    align-items: center;
    column-gap: 7px;
    row-gap: 1px;
    padding: 4px 8px 3px;
  }

  .rkb-board .rkb-brand {
    gap: 7px;
  }

  .rkb-board .rkb-rank {
    font-size: 11px;
    line-height: 1;
  }

  /* 60 by 20 is the floor the sweep measures, so the slot keeps 26 of the
     band's height and the brand's name sits beside it. */
  .rkb-board .rkb-logoslot {
    inline-size: auto;
    max-inline-size: 118px;
    block-size: 28px;
    min-block-size: 28px;
    max-block-size: 28px;
  }

  .rkb-board .rkb-shape-mark .rkb-logoslot {
    block-size: auto;
    min-block-size: 26px;
    max-block-size: none;
  }

  .rkb-board .rkb-shape-mark .rkb-logo {
    min-block-size: 26px;
    max-block-size: 30px;
  }

  .rkb-board .rkb-logo {
    min-inline-size: 78px;
    min-block-size: 22px;
  }

  .rkb-board img.rkb-logo-img {
    min-inline-size: 78px;
    min-block-size: 22px;
    max-block-size: 28px;
  }

  .rkb-board .rkb-name {
    font-size: 13px;
    line-height: 1.05;
  }

  .rkb-board .rkb-termsline {
    column-gap: 7px;
    font-size: 10px;
    line-height: 1.15;
  }

  .rkb-board .rkb-term {
    gap: 3px;
  }

  .rkb-board .rkb-tk {
    font-size: 7.5px;
    letter-spacing: 0.01em;
  }

  .rkb-board .rkb-figs {
    column-gap: 10px;
    justify-self: start;
  }

  .rkb-board .rkb-fv {
    font-size: 15px;
    line-height: 1.05;
  }

  .rkb-board .rkb-fl {
    font-size: 8px;
    line-height: 1.05;
  }

  /* The button takes the card's full width, the age line under it. */
  .rkb-board .rkb-action {
    grid-area: action;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: none;
    justify-items: stretch;
  }

  .rkb-board .rkb-action a.rkb-btn,
  .rkb-board a.rkb-btn {
    grid-area: action;
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: none;
    min-block-size: 46px;
    block-size: 46px;
    padding: 0 12px;
    font-size: 15px;
    justify-content: space-between;
  }

  .rkb-board .rkb-small {
    font-size: 9.5px;
    line-height: 1.15;
    text-align: start;
    white-space: nowrap;
  }

  .rkb-board .rkb-more {
    justify-self: start;
  }

  .rkb-board .rkb-more summary {
    font-size: 10.5px;
    line-height: 14px;
    padding-inline-end: 13px;
    text-underline-offset: 2px;
    white-space: nowrap;
  }

  .rkb-board .rkb-more summary::after {
    font-size: 11px;
    line-height: 14px;
  }
}

/* The site footer.

   The four statements the GEO register requires in a footer, the age sign, the
   helpline, the self-exclusion scheme and the paid-placement note, already
   print on every page; what was missing was a ground dark enough to carry
   them. This rule gives the footer that ground in the palette's own ink. It
   sets a background and a colour only: no layout, no spacing, no type. */
footer,
.site-footer,
.rk-footer,
.rk-foot,
#footer,
#colophon,
#site-footer,
[role="contentinfo"],
body > footer {
  background-color: var(--footer-ground, #0b0306);
  color: var(--ink, #f6e3da);
}

footer .rk-foot-in,
.rk-footer .rk-foot-in {
  background-color: var(--footer-ground, #0b0306);
}

@media (max-width: 780px) {
  footer,
  .site-footer,
  .rk-footer,
  .rk-foot,
  #footer,
  #colophon,
  #site-footer,
  [role="contentinfo"],
  body > footer {
    background-color: var(--footer-ground, #0b0306);
    color: var(--ink, #f6e3da);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rkb-board a.rkb-btn,
  .rkb-board a.rkb-btn:hover,
  .rkb-board a.rkb-btn:active,
  .rkb-board a.rkb-btn:focus-visible,
  .rkb-board .rkb-arrow,
  .rkb-board a.rkb-btn:hover .rkb-arrow {
    transition: none;
    transform: none;
  }
}

/* PROBE removed: the mark is inlined now. */

/* Phone widths, final say. The card's bands are one column each, and the
   action band spans the card, so the button is the card's inner width and the
   widest interactive element in it. These rules sit last in the file so no
   earlier band can narrow the control: the offer's CTA must fill the card a
   reader is pressing inside. */
@media (max-width: 620px) {
  .rkb-board .rkb-rows,
  .rkb-board .rkb-row {
    display: block;
    inline-size: 100%;
    max-inline-size: none;
    box-sizing: border-box;
  }

  .rkb-board .rkb-row {
    padding: 8px 10px;
  }

  .rkb-board .rkb-rank,
  .rkb-board .rkb-brand,
  .rkb-board .rkb-termsline,
  .rkb-board .rkb-figs,
  .rkb-board .rkb-action,
  .rkb-board .rkb-more {
    display: flex;
    inline-size: 100%;
    max-inline-size: none;
    box-sizing: border-box;
  }

  .rkb-board .rkb-rank,
  .rkb-board .rkb-brand,
  .rkb-board .rkb-termsline,
  .rkb-board .rkb-figs,
  .rkb-board .rkb-more {
    margin-block-end: 2px;
  }

  .rkb-board .rkb-brand {
    align-items: center;
    column-gap: 8px;
  }

  .rkb-board .rkb-figs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 10px;
  }

  .rkb-board .rkb-action {
    display: block;
    margin-block-start: 4px;
  }

  .rkb-board a.rkb-btn,
  .rkb-board .rkb-action a.rkb-btn {
    display: flex;
    inline-size: 100%;
    max-inline-size: none;
    min-inline-size: 0;
    min-block-size: 46px;
    block-size: 46px;
    box-sizing: border-box;
    justify-content: space-between;
  }

  .rkb-board .rkb-small {
    display: block;
    inline-size: 100%;
    text-align: start;
  }

  .rkb-board .rkb-more {
    display: block;
    margin-block-start: 4px;
  }
}


/* Repairs.

   The numeral is the text of .rkb-rank. The theme's older board sheet also draws one from a counter (a second
   numeral over the first on a desktop, one beside the name on a phone): switched off here. */
.rkb-board .rkb-row::before,
.rkb-board .rkb-name::before {
  content: none;
  display: none;
}

/* A square mark (Winbeast): once its defs are stripped the inlined vector has no height of its own and painted at
   152px, over the rows below. It gets an explicit box. */
.rkb-board .rkb-shape-mark .rkb-logoslot {
  block-size: 44px;
  min-block-size: 44px;
  max-block-size: 44px;
}

.rkb-board .rkb-shape-mark .rkb-logo {
  box-sizing: border-box;
  inline-size: 44px;
  block-size: 44px;
  min-inline-size: 44px;
  min-block-size: 44px;
  max-inline-size: 44px;
  max-block-size: 44px;
  padding: 2px;
}

/* the artwork sits inside the frame (the theme gives the frame a border); the clip paths are stripped from the
   inlined file, so whatever lies outside the viewBox is cut here */
.rkb-board .rkb-shape-mark .rkb-logo .rkb-mark {
  inline-size: 38px;
  block-size: 38px;
  min-inline-size: 38px;
  min-block-size: 38px;
  max-inline-size: 38px;
  max-block-size: 38px;
  overflow: hidden;
}

@media (max-width: 780px) {
  /* the offset shadow of the button (4px, in the ink colour) covered the top of the small print under it */
  .rkb-board .rkb-small {
    margin-block-start: 6px;
  }

  .rkb-board .rkb-shape-mark .rkb-logoslot {
    block-size: 36px;
    min-block-size: 36px;
    max-block-size: 36px;
  }

  .rkb-board .rkb-shape-mark .rkb-logo {
    inline-size: 36px;
    block-size: 36px;
    min-inline-size: 36px;
    min-block-size: 36px;
    max-inline-size: 36px;
    max-block-size: 36px;
  }

  .rkb-board .rkb-shape-mark .rkb-logo .rkb-mark {
    inline-size: 30px;
    block-size: 30px;
    min-inline-size: 30px;
    min-block-size: 30px;
    max-inline-size: 30px;
    max-block-size: 30px;
  }
}

/* Phone: the numeral sits in the corner of the card instead of a line of its own. */
@media (max-width: 620px) {
  .rkb-board .rkb-rank {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-end: 12px;
    inline-size: auto;
    margin: 0;
    font-size: 22px;
  }
}

/* 600 to 780px: the card is stacked in the same bands as on a phone (brand, figures, terms, a button across the card,
   the age line). In this range the theme's older board sheet still puts the figures and the button into grid tracks
   of its own (columns 4 to 6), which parked them in the right half of the card and shrank the button into a corner;
   the placement is reset here. From 600px, because the compact phone card above ends at 599px and the strip
   600 to 620px was left with the 28px figure sitting on the terms line. */
@media (min-width: 600px) and (max-width: 780px) {
  .rkb-board .rkb-row,
  .rkb-board .rkb-row.rkb-shape-wide,
  .rkb-board .rkb-row.rkb-shape-mark {
    display: block;
    inline-size: 100%;
    max-inline-size: none;
    box-sizing: border-box;
    padding: 8px 14px 6px;
  }

  .rkb-board .rkb-rank {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-end: 14px;
    inline-size: auto;
    margin: 0;
    font-size: 22px;
  }

  .rkb-board .rkb-brand,
  .rkb-board .rkb-termsline {
    display: flex;
    inline-size: 100%;
    max-inline-size: none;
    box-sizing: border-box;
    margin-block-end: 4px;
  }

  .rkb-board .rkb-figs {
    display: flex;
    justify-content: space-between;
    inline-size: 100%;
    margin-block-end: 4px;
  }

  .rkb-board .rkb-figs > .rkb-fig,
  .rkb-board .rkb-figs > .rkb-fig + .rkb-fig {
    grid-column: auto;
    grid-row: auto;
    padding-block-start: 0;
  }

  .rkb-board .rkb-fv {
    font-size: 24px;
  }

  .rkb-board .rkb-action {
    display: block;
    inline-size: 100%;
    max-inline-size: none;
    margin-block-start: 4px;
  }

  .rkb-board .rkb-action a.rkb-btn,
  .rkb-board a.rkb-btn {
    display: flex;
    grid-column: auto;
    grid-row: auto;
    margin-block-start: 0;
    inline-size: 100%;
    max-inline-size: none;
    min-inline-size: 0;
    box-sizing: border-box;
    justify-content: space-between;
  }

  .rkb-board .rkb-small {
    display: block;
    grid-column: auto;
    grid-row: auto;
    inline-size: 100%;
    padding-block-start: 0;
    text-align: start;
  }

  .rkb-board .rkb-more {
    display: block;
    grid-column: auto;
    grid-row: auto;
    inline-size: 100%;
    margin-block-start: 4px;
  }
}

/* Masthead on the narrowest phones (under 360px): the wordmark is 325px wide at 26px, wider than the 288px the
   masthead has at 320px, so the page scrolled sideways by 21px. A smaller size and spacing keep it inside. The theme's sheet is printed after this one, so the
   selector carries the masthead class to win over its .rk-logo rule. */
@media (max-width: 359px) {
  .rk-mast .rk-logo {
    font-size: 22px;
    letter-spacing: 0.14em;
    margin-inline-end: -0.14em;
  }
}

/* The Tweedbet wordmark is a strip twelve times wider than high, so its letters are the width of the strip divided
   by twelve. In the 118px slot of a phone and the 130px slot of a small tablet they were 8px and 9px high; the slot
   is widened on those widths until the letters measure 12px. */
@media (max-width: 780px) {
  .rkb-board #rkb-row-tweedbet .rkb-logoslot {
    max-inline-size: 166px;
  }
}

/* On a 320px screen the brand group (slot, gap, name) is centred in a 272px card and its name touched the row
   number in the corner: below 381px the slot is a little narrower (the letters are still 11px) and below 341px the
   group starts at the left edge of the card instead of the middle. */
@media (max-width: 380px) {
  .rkb-board #rkb-row-tweedbet .rkb-logoslot {
    max-inline-size: 154px;
  }
}

@media (max-width: 340px) {
  .rkb-board #rkb-row-tweedbet .rkb-brand {
    justify-content: flex-start;
  }
}
