/* ==========================================================================
   APKBlade round two layout (2026-10-21, second pass)
   Loaded after apkblade-ui.css. Re-points the tokens (palette, type, radius)
   and lays out the new templates: search hero, ranked trending, shelves,
   app page hero + section bar, download card, dense list pages, phone
   bottom navigation and search sheet.

   One bold device: the "blade cut", a clipped top right corner, used only on
   the download buttons and the two cards that hold them (app hero, download
   card). Everything else stays quiet: hairlines, flat surfaces.
   ========================================================================== */

:root {
  --ab-font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ab-canvas: #edf0f4;
  --ab-surface: #ffffff;
  --ab-surface-2: #f3f5f8;
  --ab-ink: #161a22;
  --ab-ink-2: #474f5d;
  --ab-ink-3: #5d6472;
  --ab-line: rgba(22, 26, 34, 0.1);
  --ab-line-2: rgba(22, 26, 34, 0.18);
  --ab-trust: #0a7446;
  --ab-trust-tint: #e5f3eb;
  --ab-mod-tint: #fdeef1;
  --ab-cut: 16px;
  --ab-r-sm: 8px;
  --ab-r-md: 10px;
  --ab-r-lg: 14px;
  --ab-tabs-h: 46px;
  --ab-bnav-h: 60px;
  --ab-display: 82%;
}
.dark-theme {
  --ab-canvas: #0c0f14;
  --ab-surface: #151a21;
  --ab-surface-2: #1c222b;
  --ab-ink: #eef1f5;
  --ab-ink-2: #b4bcc8;
  --ab-ink-3: #939cab;
  --ab-line: rgba(255, 255, 255, 0.09);
  --ab-line-2: rgba(255, 255, 255, 0.17);
  --ab-trust: #4cc98b;
  --ab-trust-tint: rgba(76, 201, 139, 0.12);
  --ab-mod-tint: rgba(255, 61, 90, 0.14);
}
html.dark-theme body.ab2 {
  background-color: var(--ab-canvas);
}

/* display type: Archivo narrowed, heavy, tight */
body.ab2 h1,
body.ab2 h2,
body.ab2 .ab2-hero__title,
body.ab2 .ab2-sec__title,
body.ab2 .ab2-card__title {
  font-stretch: var(--ab-display);
  letter-spacing: -0.005em;
}
body.ab2 .ab2-wrap {
  width: 100%;
  max-width: var(--ab-max);
  margin: 0 auto;
  padding: 0 var(--ab-gutter);
}
body.ab2 .ab2-wrap .ab2-wrap {
  padding: 0;
}

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */
body.ab2 .ab2-sec {
  margin: 0 0 28px;
}
body.ab2 .ab2-sec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
body.ab2 .ab2-sec__title,
body.ab2 h2.ab2-sec__title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  color: var(--ab-ink);
}
body.ab2 .ab2-sec__desc {
  margin: -4px 0 12px;
  color: var(--ab-ink-2);
  font-size: 14px;
}
body.ab2 .ab2-more,
body.ab2 a.ab2-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 40px;
  padding: 0 4px 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ab-brand-ink);
  white-space: nowrap;
}
body.ab2 .ab2-more:hover {
  background: var(--ab-brand-tint);
  color: var(--ab-brand-ink);
}
body.ab2 .ab2-more svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.ab2 .ab2-card {
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-r-lg);
  padding: 18px 16px;
  margin: 0 0 16px;
}
body.ab2 .ab2-card__title,
body.ab2 h2.ab2-card__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
}
body.ab2 .ab2-card__sub {
  font-size: 16px;
  margin: 22px 0 8px;
}
body.ab2 .ab2-note {
  margin: 12px 0 0;
  font-size: 14px;
}
body.ab2 .ab2-note a {
  font-weight: 700;
}
body.ab2 .ab2-linkbtn,
body.ab2 a.ab2-linkbtn,
body.ab2 button.ab2-linkbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--ab-line-2);
  background: var(--ab-surface);
  color: var(--ab-ink);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}
body.ab2 .ab2-linkbtn:hover,
body.ab2 button.ab2-linkbtn:hover {
  background: var(--ab-surface-2);
  color: var(--ab-ink);
}
body.ab2 .ab2-linkbtn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
@media (min-width: 768px) {
  body.ab2 .ab2-card {
    padding: 24px;
    margin-bottom: 20px;
  }
  body.ab2 .ab2-sec__title,
  body.ab2 h2.ab2-sec__title {
    font-size: 24px;
  }
  body.ab2 .ab2-card__title,
  body.ab2 h2.ab2-card__title {
    font-size: 22px;
  }
}

/* badges */
body.ab2 .ab2-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  margin-left: 2px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: 0.02em;
  line-height: 1;
  vertical-align: 0.28em;
  background: var(--ab-surface-2);
  color: var(--ab-ink-2);
  box-shadow: inset 0 0 0 1px var(--ab-line-2);
}
body.ab2 .ab2-badge--mod {
  background: var(--ab-btn);
  color: #fff;
  box-shadow: none;
}

/* chips */
body.ab2 .ab2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.ab2 .ab2-chip,
body.ab2 a.ab2-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ab-line-2);
  background: var(--ab-surface);
  color: var(--ab-ink);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  line-height: 1;
}
body.ab2 a.ab2-chip:hover {
  border-color: var(--ab-ink-3);
  color: var(--ab-ink);
}
body.ab2 a.ab2-chip.is-on {
  background: var(--ab-ink);
  border-color: var(--ab-ink);
  color: var(--ab-surface);
}
body.ab2 .ab2-chip--all,
body.ab2 a.ab2-chip--all {
  color: var(--ab-brand-ink);
  border-style: dashed;
}
body.ab2 .ab2-chip__icon,
body.ab2 .ab2-chip__icon i {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: var(--ab-ink-2);
  font-size: 16px;
}
body.ab2 .ab2-chip__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
body.ab2 .ab2-chips--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--ab-gutter) * -1) 12px;
  padding: 2px var(--ab-gutter) 4px;
  scroll-padding-inline: var(--ab-gutter);
}
body.ab2 .ab2-chips--scroll::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  body.ab2 .ab2-chips--scroll {
    flex-wrap: wrap;
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* meta line under app names: version, rating, size, MOD */
body.ab2 .ab2-row__meta,
body.ab2 .ab-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ab-ink-3);
  white-space: normal;
  overflow: visible;
}
body.ab2 .ab2-m {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
body.ab2 .ab2-m--rate {
  color: var(--ab-ink-2);
}
body.ab2 .ab2-m--rate svg {
  width: 12px;
  height: 12px;
  fill: var(--ab-star);
}
body.ab2 .ab2-m--mod {
  color: var(--ab-brand-ink);
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Search field (hero, header, sheet, search page)
   -------------------------------------------------------------------------- */
body.ab2 .ab2-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  margin: 0;
  background: var(--ab-surface);
  border: 1.5px solid var(--ab-line-2);
  border-radius: 12px;
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}
body.ab2 .ab2-search:focus-within {
  border-color: var(--ab-ink);
  box-shadow: 0 0 0 3px rgba(246, 36, 67, 0.22);
}
body.ab2 .ab2-search__glass {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ab-ink-3);
  stroke-width: 2.2;
  stroke-linecap: round;
  pointer-events: none;
}
body.ab2 .ab2-search input[type="search"],
body.ab2 .ab2-search input[type="search"]:focus {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 8px 0 44px;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: transparent;
  color: var(--ab-ink);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
body.ab2 .ab2-search input::placeholder {
  color: var(--ab-ink-3);
  opacity: 1;
}
body.ab2 .ab2-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
body.ab2 button.ab2-search__go {
  flex: 0 0 auto;
  height: calc(100% - 8px);
  margin: 0 4px 0 0;
  padding: 0 18px;
  border-radius: 9px;
  background: var(--ab-btn);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
body.ab2 button.ab2-search__go:hover {
  background: var(--ab-btn-deep);
}
body.ab2 button.ab2-search__go:focus-visible {
  outline: 2px solid var(--ab-ink);
  outline-offset: 2px;
}

/* header search field (desktop only) */
body.ab2 .ab2-hsearch {
  display: none;
}
@media (min-width: 992px) {
  body.ab2 header.site-header .inside-header {
    gap: 8px;
  }
  body.ab2 .site-logo {
    margin-right: 0;
  }
  body.ab2 .ab2-hsearch {
    display: block;
    order: 2;
    flex: 1 1 auto;
    max-width: 520px;
    margin: 0 auto 0 28px;
  }
  body.ab2.home .ab2-hsearch {
    visibility: hidden;
  }
  body.ab2 .ab2-search--header {
    height: 42px;
    border-width: 1px;
    border-radius: 999px;
    background: var(--ab-surface-2);
  }
  body.ab2 .ab2-search--header input[type="search"] {
    font-size: 15px;
    padding-left: 42px;
  }
  body.ab2 .ab2-search--header button.ab2-search__go {
    display: none;
  }
  body.ab2 #site-navigation {
    order: 3;
  }
  body.ab2 #site-navigation .menu-bar-items {
    display: none;
  }
  body.ab2 #apk_web_mode {
    order: 4;
  }
}

/* --------------------------------------------------------------------------
   Homepage
   -------------------------------------------------------------------------- */
body.ab2 .ab2-hero {
  padding: 22px 0 22px;
  margin: 0 0 22px;
  background: var(--ab-surface);
  border-bottom: 1px solid var(--ab-line);
}
body.ab2 .ab2-hero__title {
  font-size: clamp(28px, 7.6vw, 46px);
  line-height: 1.02;
  font-weight: 800;
  color: var(--ab-ink);
  margin: 0 0 16px;
  max-width: 15ch;
  text-wrap: balance;
}
body.ab2 .ab2-search--hero {
  height: 56px;
  border-width: 2px;
  border-color: var(--ab-ink);
}
body.ab2 .ab2-search--hero button.ab2-search__go {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  border-radius: 8px 0 8px 8px;
}
body.ab2 .ab2-popular {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 14px;
  margin: 10px calc(var(--ab-gutter) * -1) 12px;
  padding: 0 var(--ab-gutter);
  font-size: 14px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
body.ab2 .ab2-popular::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  body.ab2 .ab2-popular {
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    white-space: normal;
  }
}
body.ab2 .ab2-popular__label {
  color: var(--ab-ink-3);
  font-weight: 600;
}
body.ab2 .ab2-popular a {
  color: var(--ab-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--ab-line-2);
  text-underline-offset: 3px;
  padding: 4px 0;
}
body.ab2 .ab2-popular a:hover {
  color: var(--ab-brand-ink);
  text-decoration-color: currentColor;
}
body.ab2 .ab2-chips--hero {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--ab-gutter) * -1);
  padding: 2px var(--ab-gutter);
}
body.ab2 .ab2-chips--hero::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  body.ab2 .ab2-hero {
    padding: 40px 0 32px;
  }
  body.ab2 .ab2-hero .ab2-wrap > * {
    max-width: 760px;
  }
  body.ab2 .ab2-chips--hero {
    flex-wrap: wrap;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
}

/* home grid: trending + shelves, sidebar on desktop */
body.ab2 .ab2-homegrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "trend" "main";
  column-gap: 32px;
}
body.ab2 .ab2-trend {
  grid-area: trend;
}
body.ab2 .ab2-homemain {
  grid-area: main;
  min-width: 0;
}
body.ab2 .ab2-catindex {
  display: none;
}
@media (min-width: 1100px) {
  body.ab2 .ab2-homegrid {
    grid-template-columns: minmax(0, 1fr) 330px;
    grid-template-rows: auto 1fr;
    grid-template-areas: "main trend" "main cats";
  }
  body.ab2 .ab2-catindex {
    display: block;
    grid-area: cats;
    align-self: start;
    position: sticky;
    top: calc(var(--ab-header-h) + 16px);
  }
}

/* ranked trending list */
body.ab2 ol.ab2-ranked {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-r-lg);
  counter-reset: none;
}
body.ab2 ol.ab2-ranked > li {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.ab2 ol.ab2-ranked > li + li .ab2-row {
  border-top: 1px solid var(--ab-line);
}
@media (max-width: 767px) {
  body.ab2 ol.ab2-ranked > li:nth-child(n + 6) {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1099px) {
  body.ab2 ol.ab2-ranked {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: column;
    grid-template-rows: repeat(5, auto);
    column-gap: 0;
  }
  body.ab2 ol.ab2-ranked > li:nth-child(6) .ab2-row {
    border-top: 0;
  }
  body.ab2 ol.ab2-ranked > li:nth-child(n + 6) {
    border-left: 1px solid var(--ab-line);
  }
}

/* --------------------------------------------------------------------------
   App rows (lists, trending, similar apps)
   -------------------------------------------------------------------------- */
body.ab2 a.ab2-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--ab-ink);
  min-height: 80px;
  transition: background-color 120ms ease-out;
}
body.ab2 a.ab2-row:hover {
  background: var(--ab-surface-2);
  color: var(--ab-ink);
}
body.ab2 a.ab2-row:hover .ab2-row__name {
  color: var(--ab-brand-ink);
}
body.ab2 .ab2-row__rank {
  flex: 0 0 22px;
  font-size: 19px;
  font-weight: 800;
  font-stretch: 75%;
  color: var(--ab-ink-3);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
body.ab2 li:nth-child(-n + 3) > .ab2-row .ab2-row__rank {
  color: var(--ab-brand-ink);
}
body.ab2 img.ab2-row__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 22%;
  object-fit: cover;
  background: var(--ab-surface-2);
  box-shadow: inset 0 0 0 1px var(--ab-line);
}
body.ab2 img.ab2-row__icon--post {
  border-radius: var(--ab-r-md);
  flex-basis: 72px;
  width: 72px;
}
body.ab2 .ab2-row__body {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
}
body.ab2 .ab2-row__name {
  display: block;
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.25;
  color: var(--ab-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.ab2 .ab2-row__desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ab-ink-2);
}
body.ab2 .ab2-rows {
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-r-lg);
  overflow: hidden;
}
body.ab2 .ab2-rows > .ab2-row + .ab2-row {
  border-top: 1px solid var(--ab-line);
}
@media (min-width: 900px) {
  body.ab2 .ab2-rows--list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  body.ab2 .ab2-rows--list > .ab2-row {
    border-top: 1px solid var(--ab-line);
  }
  body.ab2 .ab2-rows--list > .ab2-row:nth-child(-n + 2) {
    border-top: 0;
  }
  body.ab2 .ab2-rows--list > .ab2-row:nth-child(even) {
    border-left: 1px solid var(--ab-line);
  }
  body.ab2 .ab2-rows--list .ab2-row__desc {
    -webkit-line-clamp: 2;
  }
}

/* --------------------------------------------------------------------------
   App tiles (.ab-card from bemyway_display_app_block) inside the new grids
   -------------------------------------------------------------------------- */
body.ab2 .ab2-grid {
  display: grid;
  margin: 0;
  padding: 0;
}
body.ab2 .ab2-grid .app-container,
body.ab2 .ab2-grid .app-container.recommended-app-blocks {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  height: auto;
  color: var(--ab-ink);
}
body.ab2 .ab2-grid .app-container .right-content {
  padding: 8px 2px 0;
}
body.ab2 .ab2-grid .app-name-homepage {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
}
body.ab2 .ab2-grid .ab-card__meta {
  font-size: 12px;
  gap: 1px 8px;
}

/* shelves: phone = 4 roomy rows, tablet and up = tile grid */
@media (max-width: 767px) {
  body.ab2 .ab2-grid--shelf {
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-r-lg);
    overflow: hidden;
  }
  body.ab2 .ab2-grid--shelf .app-container {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
  }
  body.ab2 .ab2-grid--shelf .app-container + .app-container {
    border-top: 1px solid var(--ab-line);
  }
  body.ab2 .ab2-grid--shelf .app-container:nth-child(n + 5) {
    display: none;
  }
  body.ab2 .ab2-grid--shelf .app-container .left-icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }
  body.ab2 .ab2-grid--shelf .app-container .right-content {
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
  }
  body.ab2 .ab2-grid--shelf .app-name-homepage {
    font-size: 16px;
    -webkit-line-clamp: 1;
  }
  body.ab2 .ab2-grid--shelf .ab-card__meta {
    font-size: 13px;
    margin-top: 5px;
  }
  @media (hover: hover) {
    body.ab2 .ab2-grid--shelf .app-container:hover .left-icon {
      transform: none;
    }
  }
}
@media (min-width: 768px) {
  body.ab2 .ab2-grid--shelf {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 20px 14px;
  }
}
@media (min-width: 768px) and (max-width: 1099px) {
  body.ab2 .ab2-grid--shelf .app-container:nth-child(n + 15) {
    display: none;
  }
}

/* editor's picks: big swipe tiles on phones, grid on desktop */
body.ab2 .ab2-grid--picks,
body.ab2 .ab2-grid--scroll {
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  margin: 0 calc(var(--ab-gutter) * -1);
  padding: 2px var(--ab-gutter) 6px;
  scroll-padding-inline: var(--ab-gutter);
}
body.ab2 .ab2-grid--picks::-webkit-scrollbar,
body.ab2 .ab2-grid--scroll::-webkit-scrollbar {
  display: none;
}
body.ab2 .ab2-grid--picks .app-container,
body.ab2 .ab2-grid--scroll .app-container {
  scroll-snap-align: start;
}
body.ab2 .ab2-grid--picks {
  grid-template-rows: auto auto;
  grid-auto-columns: 124px;
}
@media (min-width: 768px) {
  body.ab2 .ab2-grid--picks {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 20px 14px;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  body.ab2 .ab2-grid--scroll {
    grid-auto-columns: 128px;
    gap: 16px;
  }
}
@media (min-width: 1100px) {
  body.ab2 .ab2-grid--scroll {
    grid-auto-flow: row;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  body.ab2 .ab2-dl .ab2-grid--scroll {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  body.ab2 .ab2-dl .ab2-grid--scroll .app-container:nth-child(n + 7) {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Category index (home sidebar)
   -------------------------------------------------------------------------- */
body.ab2 ul.ab2-catlist {
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-r-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
body.ab2 ul.ab2-catlist li {
  margin: 0;
  list-style: none;
}
body.ab2 ul.ab2-catlist a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: var(--ab-r-sm);
  color: var(--ab-ink);
  font-size: 14px;
  font-weight: 650;
}
body.ab2 ul.ab2-catlist a > span:not(.ab2-chip__icon):not(.ab2-catlist__n) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.ab2 ul.ab2-catlist a:hover {
  background: var(--ab-surface-2);
  color: var(--ab-brand-ink);
}
body.ab2 .ab2-catlist__n {
  font-size: 12px;
  color: var(--ab-ink-3);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Breadcrumbs (one line, scrolls sideways when long)
   -------------------------------------------------------------------------- */
body.ab2 .ab2-crumbs {
  padding: 12px 0 10px;
  margin: 0;
  font-size: 13px;
  color: var(--ab-ink-3);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
body.ab2 .ab2-crumbs::-webkit-scrollbar {
  display: none;
}
body.ab2 .ab2-crumbs p,
body.ab2 .ab2-crumbs #breadcrumbs {
  margin: 0;
  font-size: 13px;
  color: var(--ab-ink-3);
  white-space: nowrap;
}
body.ab2 .ab2-crumbs a {
  color: var(--ab-ink-2);
  font-weight: 600;
}
body.ab2 .ab2-crumbs a:hover {
  color: var(--ab-brand-ink);
}
body.ab2 .ab2-crumbs ul.breadcrumb-box {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.ab2 .ab2-crumbs .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-size: 13px;
}
body.ab2 .ab2-crumbs .breadcrumb-item + .breadcrumb-item::before {
  content: "\203A";
  margin: 0 7px;
  color: var(--ab-ink-3);
}
body.ab2 .ab2-crumbs .breadcrumb-item a,
body.ab2 .ab2-crumbs .breadcrumb-item span {
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   App page
   -------------------------------------------------------------------------- */
body.ab2 .ab2-apphero {
  position: relative;
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-r-lg);
  padding: 16px;
  margin: 0 0 16px;
  clip-path: polygon(0 0, calc(100% - var(--ab-cut)) 0, 100% var(--ab-cut), 100% 100%, 0 100%);
}
body.ab2 .ab2-apphero__id {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
body.ab2 img.ab2-apphero__icon {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 22%;
  object-fit: cover;
  background: var(--ab-surface-2);
  box-shadow: inset 0 0 0 1px var(--ab-line), 0 6px 16px -10px rgba(22, 26, 34, 0.5);
}
body.ab2 .ab2-apphero__text {
  min-width: 0;
  flex: 1 1 auto;
  padding-right: 6px;
}
body.ab2 h1.ab2-apphero__name {
  font-size: 25px;
  line-height: 1.08;
  font-weight: 800;
  margin: 2px 0 4px;
  overflow-wrap: anywhere;
}
body.ab2 .ab2-apphero__modf {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--ab-ink-2);
}
body.ab2 p.ab2-apphero__dev {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ab-ink-3);
}
body.ab2 p.ab2-apphero__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-size: 14px;
}
body.ab2 p.ab2-apphero__rating .ab-stars {
  display: inline-flex;
  gap: 1px;
}
body.ab2 p.ab2-apphero__rating .ab-stars svg {
  width: 15px;
  height: 15px;
  fill: var(--ab-line-2);
}
body.ab2 p.ab2-apphero__rating .ab-stars svg.on {
  fill: var(--ab-star);
}
body.ab2 p.ab2-apphero__rating a {
  color: var(--ab-ink-3);
  font-weight: 600;
}

/* MOD features */
body.ab2 .ab2-modbox {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--ab-mod-tint);
  border-radius: var(--ab-r-md);
}
body.ab2 p.ab2-modbox__title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ab-brand-ink);
}
body.ab2 ul.ab2-modbox__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
body.ab2 ul.ab2-modbox__list li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ab-ink);
}
body.ab2 ul.ab2-modbox__list svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ab-brand-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* key facts */
body.ab2 dl.ab2-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0 0;
  padding: 10px 0;
  border-top: 1px solid var(--ab-line);
  border-bottom: 1px solid var(--ab-line);
}
body.ab2 dl.ab2-facts > div {
  min-width: 0;
  padding: 0 4px;
  text-align: center;
}
body.ab2 dl.ab2-facts > div + div {
  border-left: 1px solid var(--ab-line);
}
body.ab2 dl.ab2-facts dt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ab-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.ab2 dl.ab2-facts dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-stretch: 85%;
  font-weight: 800;
  color: var(--ab-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
body.ab2 dl.ab2-facts dd a {
  color: var(--ab-ink);
}
body.ab2 dl.ab2-facts dd a:hover {
  color: var(--ab-brand-ink);
}

/* the download CTA */
body.ab2 .ab2-apphero__cta {
  margin-top: 14px;
}
body.ab2 a.ab2-cta,
body.ab2 a.ab2-cta.download-btn,
body.ab2 a.ab2-cta.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 10px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--ab-btn);
  color: #fff;
  text-align: left;
  box-shadow: var(--ab-shadow-cta);
  clip-path: polygon(0 0, calc(100% - var(--ab-cut)) 0, 100% var(--ab-cut), 100% 100%, 0 100%);
  transition: background-color 140ms ease-out, transform 120ms ease-out;
  text-decoration: none;
}
body.ab2 a.ab2-cta.hidden {
  display: none;
}
body.ab2 a.ab2-cta:hover,
body.ab2 a.ab2-cta:focus {
  background: var(--ab-btn-deep);
  color: #fff;
}
body.ab2 a.ab2-cta:active {
  transform: translateY(1px);
}
body.ab2 a.ab2-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}
/* the legacy 1.5 s wait class keeps the button inert but no longer greys it out */
body.ab2 a.ab2-cta.faded-disabled-btn {
  opacity: 1;
  filter: none;
  background-color: var(--ab-btn) !important;
}
body.ab2 a.ab2-cta svg.icon-download {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 0;
  background: none;
  stroke: currentColor;
  fill: none;
  margin: 0;
}
body.ab2 a.ab2-cta::before {
  display: none;
}
body.ab2 a.ab2-cta svg.icon-download.hidden {
  display: none;
}
body.ab2 a.ab2-cta .spinner-wait {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
}
body.ab2 a.ab2-cta .spinner-wait.hidden {
  display: none;
}
body.ab2 a.ab2-cta .dld-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
body.ab2 a.ab2-cta .dld-btn-app-name {
  display: block;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  font-stretch: 88%;
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.005em;
}
body.ab2 a.ab2-cta .ab2-cta__sub {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.88);
}
body.ab2 a.ab2-cta--alt,
body.ab2 a.ab2-cta.ab2-cta--alt {
  background: var(--ab-ink);
  box-shadow: none;
}
body.ab2 a.ab2-cta--alt:hover {
  background: var(--ab-ink-2);
}
.dark-theme body.ab2 a.ab2-cta--alt .dld-btn-app-name,
.dark-theme body.ab2 a.ab2-cta--alt,
.dark-theme body.ab2 a.ab2-cta--alt .ab2-cta__sub {
  color: var(--ab-canvas);
}

/* trust chips */
body.ab2 ul.ab2-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin: 12px 0 0;
  padding: 0;
}
body.ab2 ul.ab2-trust li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ab-trust);
}
body.ab2 ul.ab2-trust svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.ab2 p.ab2-apphero__updated {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--ab-ink-3);
}

@media (min-width: 768px) {
  body.ab2 .ab2-apphero {
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas: "id cta" "mod cta" "facts cta";
    grid-template-rows: auto auto 1fr;
    column-gap: 28px;
    --ab-cut: 22px;
  }
  body.ab2 .ab2-apphero__id {
    grid-area: id;
  }
  body.ab2 .ab2-modbox {
    grid-area: mod;
  }
  body.ab2 dl.ab2-facts {
    grid-area: facts;
    align-self: end;
  }
  body.ab2 .ab2-apphero__cta {
    grid-area: cta;
    margin: 0;
    align-self: center;
    padding-left: 28px;
    border-left: 1px solid var(--ab-line);
  }
  body.ab2 img.ab2-apphero__icon {
    flex-basis: 112px;
    width: 112px;
    height: 112px;
  }
  body.ab2 h1.ab2-apphero__name {
    font-size: 34px;
  }
}

/* section bar */
body.ab2 .ab2-tabs {
  position: sticky;
  top: var(--ab-header-h);
  z-index: 40;
  margin: 0 calc(var(--ab-gutter) * -1) 16px;
  background: var(--ab-canvas);
  border-bottom: 1px solid var(--ab-line);
}
body.ab2.admin-bar .ab2-tabs {
  top: calc(var(--ab-header-h) + 32px);
}
body.ab2 .ab2-tabs__track {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--ab-gutter);
}
body.ab2 .ab2-tabs__track::-webkit-scrollbar {
  display: none;
}
body.ab2 .ab2-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--ab-tabs-h);
  padding: 0 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ab-ink-2);
  white-space: nowrap;
}
body.ab2 .ab2-tabs a:hover {
  color: var(--ab-ink);
}
body.ab2 .ab2-tabs a.is-on {
  color: var(--ab-brand-ink);
}
body.ab2 .ab2-tabs a.is-on::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--ab-brand);
}
body.ab2 .ab2-tabs.is-stuck {
  box-shadow: 0 8px 18px -16px rgba(22, 26, 34, 0.45);
}
body.ab2 .ab2-appbody [id^="ab2-"],
body.ab2 #ab2-similar {
  scroll-margin-top: calc(var(--ab-header-h) + var(--ab-tabs-h) + 12px);
}
@media (min-width: 768px) {
  body.ab2 .ab2-tabs {
    margin-left: 0;
    margin-right: 0;
  }
  body.ab2 .ab2-tabs__track {
    padding: 0;
  }
}

/* app body: main column + sticky rail on desktop */
body.ab2 .ab2-appbody {
  display: block;
}
body.ab2 .ab2-sidecta {
  display: none;
}
@media (min-width: 1100px) {
  body.ab2 .ab2-appbody {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
  }
  body.ab2 .ab2-appside {
    position: sticky;
    top: calc(var(--ab-header-h) + var(--ab-tabs-h) + 16px);
  }
  body.ab2 .ab2-sidecta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin: 0 0 16px;
    background: var(--ab-surface);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-r-lg);
  }
  body.ab2 .ab2-sidecta img {
    width: 48px;
    height: 48px;
    border-radius: 22%;
    flex: 0 0 48px;
  }
  body.ab2 .ab2-sidecta__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  body.ab2 .ab2-sidecta__name {
    font-weight: 800;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.ab2 .ab2-sidecta__meta {
    font-size: 12.5px;
    color: var(--ab-ink-3);
    display: flex;
    gap: 8px;
  }
  body.ab2 a.ab2-sidecta__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--ab-btn);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
  }
  body.ab2 a.ab2-sidecta__btn:hover {
    background: var(--ab-btn-deep);
    color: #fff;
  }
}
body.ab2 .ab2-similar .ab2-rows {
  border: 0;
  border-radius: 0;
  margin: 0 -16px -18px;
  background: transparent;
}
body.ab2 .ab2-similar .ab2-row {
  min-height: 72px;
  padding: 10px 16px;
}
@media (min-width: 768px) {
  body.ab2 .ab2-similar .ab2-rows {
    margin: 0 -24px -24px;
  }
  body.ab2 .ab2-similar .ab2-row {
    padding: 10px 24px;
  }
}
@media (min-width: 768px) and (max-width: 1099px) {
  body.ab2 .ab2-similar .ab2-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  body.ab2 .ab2-similar .ab2-rows > .ab2-row:nth-child(2) {
    border-top: 0;
  }
  body.ab2 .ab2-similar .ab2-rows > .ab2-row:nth-child(even) {
    border-left: 1px solid var(--ab-line);
  }
}

/* screenshots */
body.ab2 .ab2-shots {
  padding-right: 0;
}
body.ab2 .ab2-shots__track,
body.ab2 .ab2-shots .screenshots-wrapper {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0 16px 4px 0;
  margin: 0;
  flex-wrap: nowrap;
}
body.ab2 .ab2-shots__track::-webkit-scrollbar {
  display: none;
}
body.ab2 .ab2-shots a.screen-pswp {
  flex: 0 0 auto;
  display: block;
  scroll-snap-align: start;
  border-radius: var(--ab-r-md);
  overflow: hidden;
  background: var(--ab-surface-2);
  box-shadow: inset 0 0 0 1px var(--ab-line);
  margin: 0;
  width: auto;
  height: 220px;
}
body.ab2 .ab2-shots a.screen-pswp img {
  display: block;
  height: 220px;
  width: auto;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
}
@media (min-width: 768px) {
  body.ab2 .ab2-shots a.screen-pswp,
  body.ab2 .ab2-shots a.screen-pswp img {
    height: 250px;
  }
}

/* about: what's new, description, read more, info table */
body.ab2 .ab2-whatsnew {
  padding: 0 0 16px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--ab-line);
}
body.ab2 .ab2-whatsnew p {
  margin: 0;
  color: var(--ab-ink-2);
}
body.ab2 .ab2-whatsnew p + p {
  margin-top: 6px;
}
body.ab2 .ab2-whatsnew__mod strong {
  color: var(--ab-ink);
}
body.ab2 h2.ab2-desc__lead,
body.ab2 .ab2-desc .app-desc {
  font-size: 17px;
  font-weight: 600;
  font-stretch: 100%;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ab-ink);
  margin: 0 0 14px;
}
body.ab2 .ab2-desc .text-warning {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--ab-r-md);
  background: rgba(217, 122, 6, 0.1);
  color: var(--ab-ink);
  font-size: 14px;
}
body.ab2 .ab2-desc .text-warning svg {
  flex: 0 0 16px;
  margin-top: 3px;
  fill: var(--ab-warn);
}
body.ab2 .ab2-readmore {
  position: relative;
}
body.ab2 .ab2-readmore__body {
  max-height: 340px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
body.ab2 .ab2-readmore.is-open .ab2-readmore__body {
  max-height: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
body.ab2 .ab2-readmore__body > *:first-child {
  margin-top: 0;
}
body.ab2 .ab2-readmore__body h2 {
  font-size: 20px;
  margin: 22px 0 8px;
}
body.ab2 .ab2-readmore__body h3 {
  font-size: 17px;
  margin: 18px 0 6px;
}
body.ab2 .ab2-readmore__body p,
body.ab2 .ab2-readmore__body li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ab-ink);
}
body.ab2 .ab2-readmore__body img {
  border-radius: var(--ab-r-md);
}
body.ab2 button.ab2-readmore__btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 6px 0 0;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ab-line-2);
  background: var(--ab-surface);
  color: var(--ab-ink);
  font-size: 14px;
  font-weight: 800;
}
body.ab2 button.ab2-readmore__btn:hover {
  background: var(--ab-surface-2);
  color: var(--ab-ink);
}
body.ab2 table.ab2-info {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 14.5px;
}
body.ab2 table.ab2-info tr {
  border: 0;
  border-bottom: 1px solid var(--ab-line);
  background: none;
}
body.ab2 table.ab2-info tr:last-child {
  border-bottom: 0;
}
body.ab2 table.ab2-info th,
body.ab2 table.ab2-info td {
  padding: 10px 0;
  border: 0;
  background: none;
  text-align: left;
  vertical-align: top;
  font-size: 14.5px;
}
body.ab2 table.ab2-info th {
  width: 42%;
  font-weight: 600;
  color: var(--ab-ink-3);
  padding-right: 12px;
}
body.ab2 table.ab2-info td {
  font-weight: 700;
  color: var(--ab-ink);
  overflow-wrap: anywhere;
}
body.ab2 td.ab2-info__pkg {
  font-weight: 600;
  font-size: 13.5px;
}

/* install steps: a real sequence, so numbered */
body.ab2 ol.ab2-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ab2step;
}
body.ab2 ol.ab2-steps li {
  position: relative;
  counter-increment: ab2step;
  margin: 0;
  padding: 4px 0 14px 46px;
  min-height: 34px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ab-ink);
}
body.ab2 ol.ab2-steps li::before {
  content: counter(ab2step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ab-ink);
  color: var(--ab-surface);
  font-weight: 800;
  font-size: 15px;
}
body.ab2 ol.ab2-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 34px;
  bottom: 2px;
  width: 1px;
  background: var(--ab-line-2);
}

/* FAQ */
body.ab2 details.ab2-qa {
  border-top: 1px solid var(--ab-line);
  margin: 0;
}
body.ab2 details.ab2-qa:last-of-type {
  border-bottom: 1px solid var(--ab-line);
}
body.ab2 details.ab2-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 0;
  list-style: none;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ab-ink);
}
body.ab2 details.ab2-qa summary::-webkit-details-marker {
  display: none;
}
body.ab2 details.ab2-qa summary::after {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  color: var(--ab-ink-3);
  transition: transform 160ms ease-out;
}
body.ab2 details.ab2-qa[open] summary::after {
  transform: rotate(45deg);
}
body.ab2 .ab2-qa__a p {
  margin: 0 0 14px;
  color: var(--ab-ink-2);
  font-size: 15px;
}

/* versions */
body.ab2 ul.ab2-verlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.ab2 ul.ab2-verlist li {
  margin: 0;
  border-top: 1px solid var(--ab-line);
}
body.ab2 ul.ab2-verlist li:first-child {
  border-top: 0;
}
body.ab2 ul.ab2-verlist a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 0;
  color: var(--ab-ink);
}
body.ab2 ul.ab2-verlist a:hover .ab2-verlist__v {
  color: var(--ab-brand-ink);
}
body.ab2 .ab2-verlist__v {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.ab2 .ab2-verlist__m {
  display: inline-flex;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ab-ink-3);
  white-space: nowrap;
}
body.ab2 svg.ab2-verlist__dl {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: var(--ab-brand-tint);
  fill: none;
  stroke: var(--ab-brand-ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.ab2 ul.ab2-verlist--dl li.is-extra {
  display: none;
}
body.ab2 ul.ab2-verlist--dl.is-all li.is-extra {
  display: block;
}
body.ab2 .ab2-versions .ab2-linkbtn {
  margin-top: 12px;
}

/* shelves under the app and download pages */
body.ab2 .ab2-appshelf {
  margin-top: 8px;
}

/* share row sits flush in the column */
body.ab2 .ab2-appmain .social-share,
body.ab2 .ab2-appmain .share-section {
  margin: 0 0 16px;
}

/* reviews, comments, related articles keep their card look */
body.ab2 .ab2-reviews {
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Download page
   -------------------------------------------------------------------------- */
body.ab2 .ab2-dlcard {
  position: relative;
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
  border-radius: var(--ab-r-lg);
  padding: 16px;
  margin: 0 0 16px;
  clip-path: polygon(0 0, calc(100% - var(--ab-cut)) 0, 100% var(--ab-cut), 100% 100%, 0 100%);
}
body.ab2 .ab2-dlcard,
body.ab2 .ab2-dlcard__head {
  text-align: left;
}
body.ab2 .ab2-dlcard__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}
body.ab2 .ab2-dlcard__head > div {
  flex: 1 1 auto;
  min-width: 0;
}
body.ab2 img.ab2-dlcard__icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px var(--ab-line);
}
body.ab2 h1.ab2-dlcard__title {
  font-size: 21px;
  line-height: 1.12;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}
body.ab2 p.ab2-dlcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--ab-ink-3);
}
body.ab2 .ab2-dlstatus {
  margin: 16px 0 14px;
  padding: 14px;
  border-radius: var(--ab-r-md);
  background: var(--ab-surface-2);
}
body.ab2 #download-loading.ab2-dlstatus__wait {
  border: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  column-gap: 12px;
  text-align: left;
  margin: 0;
}
body.ab2 .ab2-ring {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.ab2 .ab2-ring svg {
  position: absolute;
  inset: 0;
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}
body.ab2 .ab2-ring__track {
  fill: none;
  stroke: var(--ab-line-2);
  stroke-width: 4;
}
body.ab2 .ab2-ring__bar {
  fill: none;
  stroke: var(--ab-brand);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 125.7;
  stroke-dashoffset: 125.7;
  animation: ab2-ring 4s linear forwards;
}
@keyframes ab2-ring {
  to {
    stroke-dashoffset: 0;
  }
}
body.ab2 .ab2-ring__n {
  position: relative;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ab-ink);
}
body.ab2 .ab2-dlstatus__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
body.ab2 .ab2-dlstatus__text strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--ab-ink);
}
body.ab2 .ab2-dlstatus__text span,
body.ab2 .ab2-dlstatus__text .has-inline-color {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ab-ink-2);
}
body.ab2 #download-loading .progress {
  grid-column: 1 / -1;
  height: 3px;
  margin: 12px 0 0;
  background: var(--ab-line);
  border-radius: 3px;
  overflow: hidden;
}
body.ab2 #download-loading .progress-bar {
  height: 100%;
  background: var(--ab-brand);
  border-radius: 3px;
}
body.ab2 #download-loading .progress-status {
  display: none;
}
body.ab2 .ab2-dlstatus__ready {
  display: none;
  grid-template-columns: 48px 1fr;
  align-items: center;
  column-gap: 12px;
}
body.ab2 .ab2-dlcard.is-ready .ab2-dlstatus__ready {
  display: grid;
}
body.ab2 .ab2-dlcard.is-ready .ab2-dlstatus {
  background: var(--ab-trust-tint);
}
body.ab2 .ab2-ready-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ab-trust);
}
body.ab2 .ab2-ready-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dark-theme body.ab2 .ab2-ready-mark svg {
  stroke: #08130d;
}
body.ab2 .ab2-dlbtns {
  display: grid;
  gap: 10px;
}
body.ab2 .ab2-dlbtns:empty {
  display: none;
}
body.ab2 .ab2-help ul.ab2-help__list {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}
body.ab2 .ab2-help ul.ab2-help__list li {
  position: relative;
  margin: 0;
  padding: 0 0 10px 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ab-ink);
}
body.ab2 .ab2-help ul.ab2-help__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ab-brand);
  transform: rotate(45deg);
}
body.ab2 .ab2-help .ab2-more {
  margin-left: -12px;
}
body.ab2 .ab2-xapk .ab2-card__title {
  font-size: 17px;
}
body.ab2 p.ab2-back {
  margin: 8px 0 24px;
}
@media (min-width: 768px) {
  body.ab2 .ab2-dlcard {
    padding: 24px;
    --ab-cut: 22px;
  }
  body.ab2 h1.ab2-dlcard__title {
    font-size: 28px;
  }
  body.ab2 img.ab2-dlcard__icon {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
  }
}
@media (min-width: 992px) {
  body.ab2 .ab2-dl .ab2-wrap {
    max-width: 860px;
  }
}

/* --------------------------------------------------------------------------
   List pages: search, category, archive
   -------------------------------------------------------------------------- */
body.ab2 .ab2-listhead {
  margin: 0 0 14px;
}
body.ab2 h1.ab2-listhead__title {
  font-size: 30px;
  line-height: 1.08;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}
body.ab2 p.ab2-listhead__count {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ab-ink-3);
}
body.ab2 .ab2-listhead .ab2-search {
  margin-top: 14px;
}
body.ab2 .ab2-sort {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--ab-gutter) * -1) 14px;
  padding: 0 var(--ab-gutter) 2px;
}
body.ab2 .ab2-sort::-webkit-scrollbar {
  display: none;
}
body.ab2 .ab2-sort .ab2-chip {
  min-height: 36px;
  font-size: 13.5px;
  padding: 0 13px;
  background: transparent;
}
body.ab2 .ab2-sort .ab2-chip.is-on {
  background: var(--ab-ink);
  color: var(--ab-surface);
}
body.ab2 .ab2-sort .ab2-chip--mod {
  margin-left: 6px;
  border-color: var(--ab-brand-ink);
  color: var(--ab-brand-ink);
}
body.ab2 .ab2-sort .ab2-chip--mod.is-on {
  background: var(--ab-btn);
  border-color: var(--ab-btn);
  color: #fff;
}
body.ab2 .ab2-list-title {
  margin: 6px 0 12px;
}
body.ab2 .ab2-termdesc {
  margin-top: 24px;
  color: var(--ab-ink-2);
}
body.ab2 .ab2-empty {
  padding: 24px 0;
}
body.ab2 .ab2-empty p {
  font-size: 16px;
  margin-bottom: 16px;
}
body.ab2 .ab2-list-page .paging-navigation,
body.ab2 .ab2-list-page .nav-links {
  margin-top: 20px;
}
@media (min-width: 768px) {
  body.ab2 h1.ab2-listhead__title {
    font-size: 38px;
  }
  body.ab2 .ab2-listhead .ab2-search {
    max-width: 560px;
  }
  body.ab2 .ab2-sort {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    flex-wrap: wrap;
  }
  body.ab2 .ab2-list-page {
    padding-top: 8px;
  }
}

/* --------------------------------------------------------------------------
   Phone bottom navigation + search sheet
   -------------------------------------------------------------------------- */
body.ab2 .ab2-bnav {
  display: none;
}
@media (max-width: 991px) {
  body.ab2:not(.ab2-appctx) {
    padding-bottom: calc(var(--ab-bnav-h) + env(safe-area-inset-bottom, 0px));
  }
  body.ab2 .ab2-bnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: calc(var(--ab-bnav-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    background: var(--ab-surface);
    border-top: 1px solid var(--ab-line);
    box-shadow: 0 -6px 18px -14px rgba(22, 26, 34, 0.4);
  }
  body.ab2.ab2-appctx .ab2-bnav {
    display: none;
  }
  body.ab2 .ab2-bnav__item,
  body.ab2 a.ab2-bnav__item,
  body.ab2 button.ab2-bnav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: var(--ab-bnav-h);
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ab-ink-3);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
  }
  body.ab2 button.ab2-bnav__item:hover,
  body.ab2 button.ab2-bnav__item:focus {
    background: transparent;
    color: var(--ab-ink);
  }
  body.ab2 .ab2-bnav__item svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body.ab2 .ab2-bnav__item.is-current {
    color: var(--ab-brand-ink);
  }
  body.ab2 .ab2-bnav__item.is-current svg {
    stroke-width: 2.3;
  }
  body.ab2 .generate-back-to-top {
    bottom: calc(var(--ab-bnav-h) + 16px + env(safe-area-inset-bottom, 0px));
  }
  body.ab2.ab2-appctx .generate-back-to-top {
    bottom: 88px;
  }
}
body.ab2 .ab2-sheet[hidden] {
  display: none;
}
body.ab2 .ab2-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.55);
}
body.ab2 .ab2-sheet__panel {
  background: var(--ab-surface);
  padding: 12px var(--ab-gutter) 20px;
  border-radius: 0 0 var(--ab-r-lg) var(--ab-r-lg);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.5);
  animation: ab2-drop 180ms ease-out;
}
@keyframes ab2-drop {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }
}
body.ab2 .ab2-sheet__top {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.ab2 button.ab2-sheet__close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--ab-surface-2);
  color: var(--ab-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.ab2 button.ab2-sheet__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
body.ab2 p.ab2-sheet__label {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ab-ink-3);
}
html.ab2-sheet-open {
  overflow: hidden;
}

/* sticky download bar sits where the bottom nav would be */
@media (max-width: 991px) {
  body.ab2.ab2-appctx.ab-has-stickybar .site-footer {
    padding-bottom: 72px;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.ab2 .ab2-ring__bar {
    animation: none;
    stroke-dashoffset: 0;
  }
  body.ab2 .ab2-sheet__panel {
    animation: none;
  }
  body.ab2 details.ab2-qa summary::after {
    transition: none;
  }
}
