/*!
 * DPOM USA - mobile reflow for .ladder-compare
 * The full feature table used to be display:none below 880px, which deleted
 * every feature from the page on a phone. That rule is gone. Below 880px the
 * same table reflows into stacked label/value rows with a tier switcher, so
 * no data is lost on mobile.
 */

/* Belt and braces: if any cached copy of the old rule survives, beat it. */
@media (max-width: 880px) {
  body .ladder-compare { display: block !important; }
}

.lc-switch { display: none; }

@media (max-width: 880px) {
  .ladder-compare .compare-toolbar { display: none !important; }

  /* the wide table becomes the data source, not the display */
  .ladder-compare .tbl-wrap { display: none; }

  .lc-switch {
    display: block;
    margin: 0 0 18px;
  }
  .lc-switch__lbl {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin: 0 0 9px;
  }
  /* the pill row scrolls sideways, so fade the right edge to show there is more */
  .lc-switch__scroll { position: relative; }
  .lc-switch__scroll::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 8px;
    width: 34px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(2, 19, 43, 0), rgba(2, 19, 43, .92));
  }
  .lc-switch__pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 34px 8px 2px;
    scrollbar-width: none;
  }
  .lc-switch__pills::-webkit-scrollbar { display: none; }
  .lc-pill {
    flex: 0 0 auto;
    cursor: pointer;
    font: 800 12.5px/1 'Montserrat', sans-serif;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .74);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(155, 179, 211, .22);
    border-radius: 999px;
    padding: 11px 16px;
    transition: background .16s, color .16s, border-color .16s;
  }
  .lc-pill:hover { color: #fff; border-color: rgba(255, 255, 255, .34); }
  .lc-pill.is-active {
    background: linear-gradient(135deg, #C22232, #e63946);
    border-color: #C22232;
    color: #fff;
    box-shadow: 0 6px 16px rgba(194, 34, 50, .3);
  }
  .lc-pill.is-active.lc-pill--prem {
    background: linear-gradient(135deg, #C9A84C, #F4C443);
    border-color: #C9A84C;
    color: #1a1a2e;
    box-shadow: 0 6px 16px rgba(201, 168, 76, .3);
  }

  .lc-stack { display: block; margin: 0; }
  .lc-stack__panel { display: none; }
  .lc-stack__panel.is-open { display: block; }

  .lc-stack__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 17px;
    color: #fff !important;
    margin: 0 0 12px;
  }

  .lc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(155, 179, 211, .16);
  }
  .lc-row:last-child { border-bottom: none; }
  .lc-row__k {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .62);
    flex: 1 1 58%;
    min-width: 0;
  }
  .lc-row__v {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    text-align: right;
    flex: 0 0 auto;
  }
  .lc-row__v .yes { color: #46d28a; font-weight: 800; }
  .lc-row__v .no { color: #ff7d86; font-weight: 800; opacity: .85; }
  .lc-row__note {
    flex: 1 1 100%;
    font-family: 'Raleway', sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .48);
    margin: 2px 0 0;
  }
}
