/* Downloads directory: /downloads, /downloads/<category>, /downloads/<app>.
   Same palette, Inter body and Pixemon display face as the review hubs
   (category-hub.css), so the directory reads as part of the same site. */

@font-face {
    font-family: 'Pixemon';
    src: url('../../fonts/pixemon_2/Pixemon.otf') format('opentype');
    font-display: swap;
}

.dl-page { overflow-x: clip; }

.dl,
.dl-sticky,
.dl-modal {
    --rd: #be123c;
    --rd-dark: #9f1239;
    --rd-soft: #fff1f3;
    --ink: #14181f;
    --body: #3f4753;
    --muted: #6b7280;
    --line: #e4e7ec;
    --hair: #f0f2f5;
    --soft: #f8f9fb;
    --hi: #15803d;
    --mid: #b45309;
    --lo: #c2410c;
    --stick: 150px;
}

.dl {
    background: #fff;
    color: var(--body);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    padding-bottom: 72px;
}

/* layout.css gives every <section> a max-width, margins and padding, and the
   header loads it again after this file. "main section" is just specific enough
   to win that, while .dl-sec and friends can still set their own spacing. */
main section { max-width: none; margin: 0; padding: 0; }

.dl-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.dl .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dl a { color: inherit; }
.dl [hidden] { display: none !important; }

/* ---------- shared bits ---------- */

.dl-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 20px 0 0;
    font-size: .8rem;
    color: var(--muted);
}
.dl-crumb a { color: var(--muted); text-decoration: none; }
.dl-crumb a:hover { color: var(--rd); text-decoration: underline; }
.dl-crumb [aria-current] { color: var(--ink); font-weight: 600; }

.dl-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--rd);
}
.dl-kicker span { width: 32px; height: 2px; background: var(--rd); }

.dl-h1 {
    max-width: 780px;
    font-family: 'Pixemon', 'Inter', sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -0.035em;
    color: var(--ink);
}

.dl-lede {
    max-width: 64ch;
    margin-top: 22px;
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.65;
    color: var(--body);
}

.dl-h2 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-family: 'Inter', sans-serif;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--ink);
}

.dl-sec { margin-bottom: 52px; }

.dl-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.dl-sec-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--ink);
}
.dl-sec-head h2 i { font-size: 1.25rem; color: var(--rd); }
.dl-sec-head a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: .88rem;
    font-weight: 600;
    color: var(--rd-dark);
    text-decoration: none;
}
.dl-sec-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dl-sec-head a i { transition: transform .2s ease; }
.dl-sec-head a:hover i { transform: translateX(3px); }

.dl-note { margin-top: 12px; font-size: .84rem; color: var(--muted); }
.dl-note a { color: var(--rd-dark); font-weight: 600; text-underline-offset: 3px; }

.dl-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--body);
    white-space: nowrap;
}

.dl-logo {
    display: block;
    flex: 0 0 auto;
    object-fit: cover;
    border: 1px solid rgba(20, 24, 31, .08);
    background: #fff;
}
.dl-logo-xs { width: 28px; height: 28px; border-radius: 7px; }
.dl-logo-sm { width: 40px; height: 40px; border-radius: 10px; }
.dl-logo-md { width: 52px; height: 52px; border-radius: 12px; }
.dl-logo-lg { width: 64px; height: 64px; border-radius: 15px; }
.dl-logo-xl { width: 112px; height: 112px; border-radius: 25px; }

.dl-plats {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 1.02rem;
}
.dl-plats-more { font-size: .74rem; font-weight: 600; }

/* Buttons share the review hubs’ crimson button. */
.dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 0;
    border-radius: 5px;
    background: var(--rd);
    box-shadow: 0 2px 0 var(--rd-dark);
    color: #fff !important;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}
.dl-btn:hover { background: var(--rd-dark); transform: translateY(-1px); }
.dl-btn:active { transform: translateY(1px); box-shadow: none; }
.dl-btn:focus-visible { outline: 3px solid var(--rd); outline-offset: 3px; }
.dl-btn i { font-size: 1.1em; }

.dl-btn-xl { padding: 15px 28px; font-size: 1rem; }

.dl-btn-ghost {
    background: #fff;
    box-shadow: none;
    border: 1px solid var(--rd);
    color: var(--rd-dark) !important;
}
.dl-btn-ghost:hover { background: var(--rd-soft); }

/* Score colours */
.dl-band-hi  { --band: var(--hi); }
.dl-band-mid { --band: var(--mid); }
.dl-band-lo  { --band: var(--lo); }

.dl-ring {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}
.dl-ring svg { display: block; width: 100%; height: 100%; }
.dl-ring-track { stroke: var(--hair); }
.dl-ring-fill { stroke: var(--band); }
.dl-ring-num {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.dl-ring-sm { width: 40px; height: 40px; }
.dl-ring-sm .dl-ring-num { font-size: .82rem; }
.dl-ring-md { width: 58px; height: 58px; }
.dl-ring-md .dl-ring-num { font-size: 1.12rem; }
.dl-ring-lg { width: 88px; height: 88px; }
.dl-ring-lg .dl-ring-num { font-size: 1.75rem; }

.dl-mini-score {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    padding: 3px 6px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--band) 11%, #fff);
    color: var(--band);
    font-size: .82rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* ---------- masthead, search, category chips ---------- */

.dl-mast {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: clamp(36px, 7vw, 110px);
    align-items: start;
    padding: 30px 0 34px;
}
.dl-mast-copy { min-width: 0; }

.dl-find {
    display: flex;
    max-width: 680px;
    margin-top: 30px;
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.dl-find:focus-within { border-color: var(--rd); box-shadow: 0 0 0 3px rgba(190, 18, 60, .12); }

.dl-find-cat {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    border-right: 1px solid var(--line);
}
.dl-find-cat select {
    appearance: none;
    height: 54px;
    padding: 0 38px 0 16px;
    border: 0;
    border-radius: 8px 0 0 8px;
    background: var(--soft);
    font: 600 .9rem 'Inter', sans-serif;
    color: var(--ink);
    cursor: pointer;
}
.dl-find-cat select:focus-visible { outline: 2px solid var(--rd); outline-offset: -2px; }
.dl-find-cat i {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--muted);
}

.dl-find-q { position: relative; display: flex; flex: 1 1 auto; min-width: 0; }
.dl-find-q i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: var(--muted);
    pointer-events: none;
}
.dl-find-q input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 46px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: transparent;
    font: 500 .98rem 'Inter', sans-serif;
    color: var(--ink);
    outline: none;
}
.dl-find-q input::placeholder { color: #8a929e; }

.dl-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 18px;
    list-style: none;
    font-size: .86rem;
    color: var(--muted);
}
.dl-facts li { display: inline-flex; align-items: center; gap: 6px; }
.dl-facts strong { color: var(--ink); }
.dl-facts i { color: var(--hi); font-size: 1.05rem; }

/* Top-scores box in the hub masthead */
.dl-podium {
    border: 1px solid #e4dfe1;
    border-top: 3px solid var(--rd);
    background: #fcf9fa;
    padding: 20px 20px 10px;
}
.dl-podium h2 {
    margin: 0 0 6px;
    font-family: 'Inter', sans-serif;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rd-dark);
}
.dl-podium ol { list-style: none; }
.dl-podium li + li { border-top: 1px solid #ece5e8; }
.dl-podium a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    text-decoration: none;
}
.dl-podium-n { width: 16px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-podium-id { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.dl-podium-name { font-weight: 700; color: var(--ink); line-height: 1.3; }
.dl-podium-cat { font-size: .78rem; color: var(--muted); }
.dl-podium a:hover .dl-podium-name { color: var(--rd); }

/* Category masthead: the #1 app */
.dl-pick { padding-bottom: 20px; }
.dl-pick-id { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.dl-pick-id > div { flex: 1 1 auto; min-width: 0; }
.dl-pick-name { font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.dl-pick-name a { color: var(--ink); text-decoration: none; }
.dl-pick-name a:hover { color: var(--rd); }
.dl-pick-dev { font-size: .82rem; color: var(--muted); }
.dl-pick-text { margin: 14px 0 16px; font-size: .9rem; line-height: 1.55; color: var(--body); }
.dl-pick .dl-btn { width: 100%; white-space: normal; }

.dl-cats {
    position: relative;
    margin: 0 0 34px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.dl-cats ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 0;
    list-style: none;
}
.dl-cats a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--body);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.dl-cats a i { font-size: 1.08rem; color: var(--muted); }
.dl-cats a:hover { background: var(--soft); color: var(--ink); }
.dl-cats a[aria-current] { border-color: #f3c3cf; background: var(--rd-soft); color: var(--rd-dark); }
.dl-cats a[aria-current] i { color: var(--rd); }
.dl-cats-n {
    padding: 0 6px;
    border-radius: 999px;
    background: var(--hair);
    font-size: .72rem;
    color: var(--muted);
}

/* ---------- page layout ---------- */

.dl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}
.dl-main { min-width: 0; }

.dl-side {
    position: sticky;
    top: var(--stick);
    display: grid;
    gap: 20px;
}

.dl-box {
    padding: 18px 18px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.dl-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}
.dl-box-title i { color: var(--hi); }
.dl-box p { font-size: .88rem; line-height: 1.6; color: var(--body); }
.dl-box-note { margin-top: 10px; font-size: .76rem !important; color: var(--muted) !important; }
.dl-box-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: .86rem;
    font-weight: 700;
    color: var(--rd-dark) !important;
    text-decoration: none;
}
.dl-box-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.dl-mini { list-style: none; }
.dl-mini li + li { border-top: 1px solid var(--hair); }
.dl-mini a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 6px;
    margin: 0 -6px;
    border-radius: 6px;
    text-decoration: none;
}
.dl-mini a:hover { background: var(--soft); }
.dl-mini .is-current a { background: var(--rd-soft); }
.dl-mini-n { width: 14px; font-size: .8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-mini-id { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.dl-mini-name { font-size: .9rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.dl-mini-sub { font-size: .76rem; color: var(--muted); }

.dl-listed { background: var(--soft); border-color: #e2e5ea; }
.dl-listed-kicker {
    margin-bottom: 6px;
    font-size: .7rem !important;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rd-dark) !important;
}
.dl-listed .dl-btn { margin-top: 14px; width: 100%; white-space: normal; }

.dl-catlist { list-style: none; }
.dl-catlist a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--body);
    text-decoration: none;
}
.dl-catlist a i { color: var(--muted); font-size: 1.05rem; }
.dl-catlist a span { margin-left: auto; font-size: .78rem; color: var(--muted); }
.dl-catlist a:hover { color: var(--rd); }
.dl-catlist li + li { border-top: 1px solid var(--hair); }

/* ---------- cards (hub, alternatives) ---------- */

.dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}
.dl-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .dl-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .dl-grid-4 { grid-template-columns: minmax(0, 1fr); } }

.dl-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.dl-card:hover { border-color: #cdd2da; box-shadow: 0 6px 18px -10px rgba(20, 24, 31, .22); }
.dl-card:focus-visible { outline: 3px solid var(--rd); outline-offset: 2px; }
.dl-card-top { display: flex; align-items: center; gap: 12px; }
.dl-card-id { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.dl-card-name { font-weight: 700; color: var(--ink); line-height: 1.3; }
.dl-card:hover .dl-card-name { color: var(--rd); }
.dl-card-dev { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .86rem;
    line-height: 1.55;
    color: var(--body);
}
.dl-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--hair);
}
.dl-card-foot .dl-plats { font-size: .95rem; gap: 6px; flex-wrap: nowrap; }

.dl-noresult {
    padding: 18px 20px;
    margin-bottom: 30px;
    border: 1px dashed #cfd4dc;
    border-radius: 8px;
    color: var(--body);
}

/* ---------- hub: how we score ---------- */

.dl-prose p { margin-bottom: 14px; font-size: 1rem; line-height: 1.75; color: var(--body); }

.dl-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 6px 0 18px;
    list-style: none;
}
.dl-criteria li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.dl-criteria strong { color: var(--ink); }
.dl-criteria span { font-size: .84rem; line-height: 1.5; color: var(--muted); }

.dl-bands { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; font-size: .86rem; }
.dl-bands span { display: inline-flex; align-items: center; gap: 8px; }
.dl-bands span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--band); }
.dl-bands b { color: var(--ink); }

/* ---------- category: ranked rows ---------- */

.dl-rank { list-style: none; margin-bottom: 52px; }

.dl-row {
    display: grid;
    grid-template-columns: 28px 64px minmax(0, 1fr) auto auto;
    gap: 20px;
    align-items: center;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line);
}
.dl-row:first-child { border-top: 1px solid var(--line); }
.dl-row-n { font-size: 1.4rem; font-weight: 800; color: #b9bfc8; font-variant-numeric: tabular-nums; }
.dl-row-body { min-width: 0; }
.dl-row-name { margin: 0; font-family: 'Inter', sans-serif; font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.dl-row-name a { color: var(--ink); text-decoration: none; }
.dl-row-name a:hover { color: var(--rd); }
.dl-row-dev { margin-top: 2px; font-size: .82rem; color: var(--muted); }
.dl-row-text { margin-top: 8px; font-size: .92rem; line-height: 1.55; color: var(--body); }
.dl-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.dl-row-score { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 76px; }
.dl-row-label { font-size: .74rem; font-weight: 700; color: var(--muted); }
.dl-row-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dl-row-review { font-size: .8rem; font-weight: 600; color: var(--rd-dark) !important; text-underline-offset: 3px; }

.dl-look {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
}
.dl-look li { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.dl-look i { flex: 0 0 auto; margin-top: 2px; font-size: 1.2rem; color: var(--hi); }
.dl-look strong { display: block; color: var(--ink); line-height: 1.4; }
.dl-look span { display: block; margin-top: 4px; font-size: .88rem; line-height: 1.55; color: var(--body); }

/* position: relative keeps the hidden screen-reader labels inside the scroll box;
   without it they escape and widen the whole page on phones. */
.dl-tablewrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.dl-tablewrap:focus-visible { outline: 3px solid var(--rd); outline-offset: 2px; }
.dl-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .88rem; }
.dl-table th, .dl-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.dl-table thead th { background: var(--soft); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.dl-table tbody tr:last-child > * { border-bottom: 0; }
.dl-table tbody th a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.dl-table tbody th a:hover { color: var(--rd); }
.dl-table .dl-plats { font-size: .95rem; flex-wrap: nowrap; }

/* ---------- app page ---------- */

.dl-apphead {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 30px 0 26px;
}
.dl-apphead-copy { min-width: 0; }
.dl-appname {
    font-family: 'Pixemon', 'Inter', sans-serif;
    font-size: clamp(2.4rem, 4.6vw, 3.9rem);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -0.03em;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.dl-appby { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: .95rem; color: var(--muted); }
.dl-appby strong { color: var(--ink); }
.dl-appby a { color: var(--rd-dark); font-weight: 600; text-decoration: none; }
.dl-appby a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dl-apptag { max-width: 62ch; margin: 10px 0 12px; font-size: 1.05rem; line-height: 1.55; color: var(--body); }
.dl-apphead .dl-plats { font-size: 1.15rem; gap: 10px; }

.dl-scorecard {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px 18px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    transition: border-color .18s ease;
}
.dl-scorecard:hover { border-color: #cdd2da; }
.dl-scorecard-copy { display: flex; flex-direction: column; gap: 2px; }
.dl-scorecard-k { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dl-scorecard-v { font-size: 1.2rem; font-weight: 800; color: var(--band); }
.dl-scorecard-l { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--rd-dark); }

.dl-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.dl-stats > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.dl-stats > div:last-child { border-right: 0; }
.dl-stats dt { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.dl-stats dt i { font-size: 1rem; }
.dl-stats dd { margin: 4px 0 0; }
.dl-stat-v { display: inline-flex; align-items: center; gap: 4px; font-size: 1.2rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.dl-stat-v .ti-star-filled { font-size: .95rem; color: #d97706; }
.dl-stat-sub { display: block; font-size: .76rem; color: var(--muted); }

/* Download box */
.dl-get {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    margin-bottom: 52px;
    border: 1px solid #e4dfe1;
    border-top: 3px solid var(--rd);
    border-radius: 0 0 8px 8px;
    background: #fcf9fa;
    scroll-margin-top: var(--stick);
}
.dl-get-main { padding: 24px 26px; }
.dl-get-h { margin: 0 0 14px; font-family: 'Inter', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.dl-get-row { display: flex; flex-wrap: wrap; gap: 10px; }

.dl-get-pick { position: relative; display: flex; }
.dl-get-pick select {
    appearance: none;
    height: 52px;
    min-width: 170px;
    padding: 0 40px 0 16px;
    border: 1px solid #cfd4dc;
    border-radius: 5px;
    background: #fff;
    font: 600 .95rem 'Inter', sans-serif;
    color: var(--ink);
    cursor: pointer;
}
.dl-get-pick select:focus-visible { outline: 3px solid var(--rd); outline-offset: 2px; }
.dl-get-pick select:disabled { cursor: default; opacity: 1; }
.dl-get-pick i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.dl-get-pick select:disabled + i { display: none; }
.dl-get .dl-btn-xl { flex: 1 1 240px; min-height: 52px; }

.dl-get-note { display: flex; gap: 8px; margin-top: 14px; font-size: .84rem; line-height: 1.5; color: var(--body); }
.dl-get-note i { flex: 0 0 auto; margin-top: 2px; font-size: 1.05rem; color: var(--hi); }
.dl-get-note strong { color: var(--ink); }
.dl-get-partner { margin-top: 8px; font-size: .78rem; line-height: 1.5; color: var(--muted); }

.dl-get-all { padding: 24px 26px; border-left: 1px solid #ece5e8; }
.dl-get-all h3 { margin: 0 0 8px; font-family: 'Inter', sans-serif; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rd-dark); }
.dl-get-all ul { list-style: none; columns: 2; column-gap: 18px; }
.dl-get-all li { break-inside: avoid; }
.dl-get-all a {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 8px;
    padding: 7px 0;
    text-decoration: none;
}
.dl-get-all a i { grid-row: span 2; font-size: 1.1rem; color: var(--body); }
.dl-get-all a span { font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.dl-get-all .dl-get-dest { font-size: .74rem; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-get-all a:hover span:not(.dl-get-dest) { color: var(--rd); text-decoration: underline; text-underline-offset: 3px; }

.dl-bestfor { padding: 14px 16px; border-left: 3px solid var(--rd); background: var(--soft); border-radius: 0 6px 6px 0; }
.dl-bestfor strong { color: var(--ink); }

.dl-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    list-style: none;
}
.dl-features li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--hair); position: relative; }
.dl-features li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 21px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--rd);
    border-bottom: 2px solid var(--rd);
    transform: rotate(-45deg);
}
.dl-features strong { display: block; color: var(--ink); line-height: 1.4; }
.dl-features span { display: block; margin-top: 3px; font-size: .9rem; line-height: 1.55; color: var(--body); }

.dl-pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl-pc-col { padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; }
.dl-pc-col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; color: var(--ink); }
.dl-pc-pro h3 i { color: var(--hi); }
.dl-pc-con h3 i { color: var(--lo); }
.dl-pc ul { list-style: none; }
.dl-pc li { position: relative; padding: 6px 0 6px 18px; font-size: .93rem; line-height: 1.5; color: var(--body); }
.dl-pc li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; border-radius: 50%; }
.dl-pc-pro li::before { background: var(--hi); }
.dl-pc-con li::before { background: var(--lo); }

.dl-verdict { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.dl-verdict-k { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dl-verdict-t { margin-top: 4px; font-size: 1.08rem; font-weight: 600; line-height: 1.5; color: var(--ink); }

.dl-bars { list-style: none; }
.dl-bars li {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 36px;
    column-gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--hair);
}
.dl-bars-label { font-weight: 700; color: var(--ink); font-size: .92rem; }
.dl-bar { display: block; width: 100%; height: 8px; }
.dl-bar-track { fill: var(--hair); }
.dl-bar-fill { fill: var(--band); }
.dl-bars-v { font-weight: 800; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.dl-bars-d { grid-column: 2 / 4; margin-top: 4px; font-size: .8rem; color: var(--muted); }

.dl-reviewlink {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: -20px 0 52px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color .18s ease;
}
.dl-reviewlink:hover { border-color: var(--rd); }
.dl-reviewlink > i:first-child { font-size: 1.6rem; color: var(--rd); }
.dl-reviewlink > span { display: flex; flex-direction: column; flex: 1 1 auto; }
.dl-reviewlink strong { color: var(--ink); }
.dl-reviewlink span span { font-size: .86rem; color: var(--muted); }
.dl-reviewlink > i:last-child { color: var(--rd); transition: transform .2s ease; }
.dl-reviewlink:hover > i:last-child { transform: translateX(4px); }

.dl-facts-list { border-top: 1px solid var(--hair); }
.dl-facts-list > div {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hair);
}
.dl-facts-list dt { font-size: .88rem; font-weight: 600; color: var(--muted); }
.dl-facts-list dd { margin: 0; font-size: .93rem; color: var(--ink); line-height: 1.55; }

.dl-spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dl-spec th, .dl-spec td { padding: 12px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.dl-spec th { width: 190px; padding-right: 16px; font-weight: 600; color: var(--muted); }
.dl-spec td { color: var(--ink); }
.dl-spec a { display: inline-flex; align-items: center; gap: 5px; color: var(--rd-dark); font-weight: 600; text-underline-offset: 3px; }

.dl-faq { border-top: 1px solid var(--hair); }
.dl-q { border-bottom: 1px solid var(--hair); }
.dl-q summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 2px;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
}
.dl-q summary::-webkit-details-marker { display: none; }
.dl-q summary:hover { color: var(--rd); }
.dl-q summary i { flex: 0 0 auto; color: var(--rd); transition: transform .25s ease; }
.dl-q[open] summary i { transform: rotate(180deg); }
.dl-q p { padding: 0 2px 18px; font-size: .95rem; line-height: 1.7; color: var(--body); }

.dl-app .dl-cats { margin-bottom: 0; }

.dl-tm {
    max-width: 90ch;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: .76rem;
    line-height: 1.6;
    color: var(--muted);
}

/* Sticky download bar: sits at the bottom, since the site header owns the top. */
.dl-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 24px -16px rgba(20, 24, 31, .35);
    transform: translateY(110%);
    transition: transform .25s ease;
    font-family: 'Inter', system-ui, sans-serif;
}
.dl-sticky.is-on { transform: none; }
.dl-sticky-in {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
}
.dl-sticky-id { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.dl-sticky-name { font-weight: 700; color: #14181f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-sticky-score { font-size: .78rem; font-weight: 700; color: var(--band); }
@media (prefers-reduced-motion: reduce) {
    .dl-sticky, .dl-btn, .dl-card { transition: none; }
}

/* Download window: shown before the official site opens. */
html.dl-modal-open { overflow: hidden; }

.dl-modal {
    width: min(640px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: var(--body);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.55;
    box-shadow: 0 24px 60px -12px rgba(20, 24, 31, .45);
    overflow: auto;
    overscroll-behavior: contain;
}
.dl-modal::backdrop { background: rgba(20, 24, 31, .58); }
.dl-modal[open] { animation: dl-modal-in .2s ease-out; }
@keyframes dl-modal-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.dl-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px 9px 20px;
    background: var(--ink);
    color: #fff;
}
.dl-modal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.dl-modal-kicker i { font-size: 1rem; color: #fda4af; }
.dl-modal-x {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}
.dl-modal-x:hover { background: rgba(255, 255, 255, .12); }
.dl-modal-x:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

.dl-modal-body { padding: 26px 34px 24px; text-align: center; }

.dl-modal-id { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: left; }
.dl-modal-idtext { display: flex; flex-direction: column; min-width: 0; }
.dl-modal-name {
    font-family: 'Pixemon', 'Inter', sans-serif;
    font-size: clamp(2rem, 6vw, 2.6rem);
    font-weight: 400;
    line-height: 1;
    color: var(--ink);
}
.dl-modal-dev { margin-top: 4px; font-size: .84rem; color: var(--muted); }
.dl-modal-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}
.dl-modal-score-l { font-size: .84rem; font-weight: 700; color: var(--band); }
.dl-modal-tag { max-width: 46ch; margin: 12px auto 0; font-size: .95rem; color: var(--body); }

.dl-modal-feats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 26px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--hair);
    list-style: none;
}
.dl-modal-feats li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dl-modal-feats i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--rd-soft);
    color: var(--rd);
    font-size: 1.05rem;
}
.dl-modal-feats strong { font-size: .9rem; line-height: 1.35; color: var(--ink); }
.dl-modal-feats span { font-size: .82rem; line-height: 1.5; color: var(--muted); }

.dl-modal-cost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--soft);
    font-size: .8rem;
    font-weight: 600;
    color: var(--body);
}
.dl-modal-cost i { color: var(--muted); }

.dl-modal-go { display: flex; width: fit-content; min-width: 280px; margin: 16px auto 0; }

.dl-modal-note {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: .8rem;
    color: var(--body);
}
.dl-modal-note i { flex: 0 0 auto; margin-top: 2px; color: var(--hi); }
.dl-modal-note strong { color: var(--ink); }
.dl-modal-partner { margin-top: 4px; font-size: .74rem; color: var(--muted); }

.dl-modal-skip {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--soft);
    color: var(--muted);
    font: inherit;
    font-size: .86rem;
    cursor: pointer;
}
.dl-modal-skip:hover { color: var(--ink); text-decoration: underline; }
.dl-modal-skip:focus-visible { outline: 2px solid var(--rd); outline-offset: -2px; }

@media (max-width: 560px) {
    .dl-modal { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
    .dl-modal-body { padding: 22px 18px 20px; }
    .dl-modal-id { flex-wrap: wrap; gap: 12px; }
    .dl-modal-score { margin-left: 0; padding-left: 0; border-left: 0; }
    .dl-modal-tag { font-size: .9rem; }
    .dl-modal-feats { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; padding-top: 16px; text-align: left; }
    .dl-modal-feats li { flex-direction: row; gap: 10px; }
    .dl-modal-feats i { width: 26px; height: 26px; margin: 0; font-size: .9rem; }
    .dl-modal-feats span { display: none; } /* titles only, so the button stays in view */
    .dl-modal-cost { margin-top: 16px; }
    .dl-modal-go { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .dl-modal[open] { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
    .dl-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .dl-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 40px; }
    .dl-mast { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .dl-podium { max-width: 560px; }
}

@media (max-width: 860px) {
    .dl-apphead { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: start; }
    .dl-logo-xl { width: 84px; height: 84px; border-radius: 19px; }
    .dl-scorecard { grid-column: 1 / -1; }
    .dl-get { grid-template-columns: minmax(0, 1fr); }
    .dl-get-all { border-left: 0; border-top: 1px solid #ece5e8; }

    .dl-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px 16px; padding: 18px 0; align-items: start; }
    .dl-row-score, .dl-row-cta { align-self: center; }
    .dl-row-n { display: none; }
    .dl-row-logo { grid-row: 1; }
    .dl-row-body { grid-column: 2 / 4; grid-row: 1; }
    .dl-row-score { grid-column: 1 / 3; grid-row: 2; flex-direction: row; justify-content: flex-start; gap: 10px; min-width: 0; }
    .dl-row-cta { grid-column: 3; grid-row: 2; flex-direction: row; gap: 12px; }
}

@media (max-width: 640px) {
    .dl-wrap { padding: 0 16px; }
    .dl-h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
    .dl-find { flex-direction: column; }
    .dl-find-cat { border-right: 0; border-bottom: 1px solid var(--line); }
    .dl-find-cat select { width: 100%; height: 48px; border-radius: 8px 8px 0 0; }
    .dl-find-q input { height: 50px; border-radius: 0 0 8px 8px; }

    /* One swipeable row on phones instead of four wrapped ones. */
    .dl-cats ul { flex-wrap: nowrap; margin: 0 -16px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; }
    .dl-cats ul::-webkit-scrollbar { display: none; }

    .dl-apphead { grid-template-columns: 64px minmax(0, 1fr); }
    .dl-logo-xl { width: 64px; height: 64px; border-radius: 15px; }
    .dl-appname { font-size: clamp(2rem, 10vw, 2.6rem); }
    .dl-apptag { font-size: .98rem; }
    .dl-apphead-copy .dl-plats { display: none; }
    .dl-scorecard { padding: 14px; }
    .dl-scorecard .dl-ring-lg { width: 64px; height: 64px; }
    .dl-scorecard .dl-ring-lg .dl-ring-num { font-size: 1.3rem; }

    .dl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dl-stats > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .dl-stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
    .dl-stats > div:nth-last-child(-n+2):nth-child(odd),
    .dl-stats > div:last-child { border-bottom: 0; }
    .dl-stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }

    .dl-get-main, .dl-get-all { padding: 18px; }
    .dl-get-row { flex-direction: column; }
    .dl-get-pick select { width: 100%; }
    .dl-get .dl-btn-xl { flex: 0 0 auto; width: 100%; white-space: normal; }
    .dl-get-all ul { column-gap: 12px; }

    .dl-features, .dl-pc, .dl-look { grid-template-columns: minmax(0, 1fr); }
    .dl-bars li { grid-template-columns: 96px minmax(0, 1fr) 30px; column-gap: 10px; }
    .dl-bars-d { grid-column: 1 / -1; }
    .dl-facts-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .dl-spec th { width: 120px; }
    .dl-verdict { align-items: flex-start; }
    .dl-verdict .dl-ring-lg { width: 64px; height: 64px; }
    .dl-verdict .dl-ring-lg .dl-ring-num { font-size: 1.3rem; }

    .dl-row { grid-template-columns: 52px minmax(0, 1fr); }
    .dl-row .dl-logo-lg { width: 52px; height: 52px; border-radius: 12px; }
    .dl-row-body { grid-column: 2; }
    .dl-row-score { grid-column: 1 / 2; }
    .dl-row-cta { grid-column: 2; justify-content: flex-end; }
    .dl-row-score .dl-row-label { display: none; }

    .dl-sticky-in { gap: 10px; padding-left: 16px; padding-right: 16px; }
    .dl-sticky .dl-logo-sm { width: 34px; height: 34px; border-radius: 8px; }
    .dl-sticky .dl-btn { padding: 10px 14px; font-size: .84rem; }
    .dl-sticky [data-dl-go-text] { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 340px) {
    .dl-get-all ul { columns: 1; }
}
