/**
 * Storefront styles. One file, no build step.
 *
 *   1. Tokens                  6. Lists and cards
 *   2. Base elements           7. Product page
 *   3. Layout helpers          8. Documents, forms, errors
 *   4. Header and footer       9. Picture viewer
 *   5. Shared components      10. Small screens, motion, print
 *
 * Conventions
 *   - Logical properties only (margin-inline, inset-inline-start...), so right-to-left
 *     languages need no overrides.
 *   - Colours only through the tokens below, so dark mode is one block.
 *   - Flat class names that say what a thing is (".card", ".download"), not how it looks.
 *   - A product page sets --accent (and --on-accent) on <body>; nothing else is per product.
 */

/* ---------------------------------------------------------------- 1. Tokens */

:root {
    color-scheme: light dark;

    --bg: #ffffff;
    --surface: #f5f5f7;
    --surface-strong: #e8e8ed;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --line: #d9d9de;
    --link: #0066cc;
    --accent: #0071e3;
    --on-accent: #ffffff;
    --good: #14804a;
    --warn: #9a5b00;
    --bad: #c2362b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .08);

    --radius: 18px;
    --radius-small: 12px;
    --header-height: 52px;
    --wrap: 1080px;
    --gutter: clamp(16px, 4vw, 32px);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --surface: #1c1c1e;
        --surface-strong: #2c2c2e;
        --text: #f5f5f7;
        --muted: #a1a1a6;
        --line: #38383a;
        --link: #4aa3ff;
        --good: #4cc38a;
        --warn: #f2b84b;
        --bad: #ff8a80;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    }
}

/* Each script gets the system typeface made for it; a page can mix languages. */
:lang(zh-Hant) { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
:lang(ja)      { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", Meiryo, "Noto Sans JP", sans-serif; }
:lang(ko)      { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
:lang(ar),
:lang(ur)      { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Geeza Pro", "Noto Naskh Arabic", Tahoma, sans-serif; }
:lang(he)      { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew", Arial, sans-serif; }
:lang(th)      { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Thonburi, "Leelawadee UI", "Noto Sans Thai", sans-serif; }
:lang(hi),
:lang(bn)      { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Kohinoor Devanagari", "Kohinoor Bangla", "Nirmala UI", "Noto Sans", sans-serif; }

/* --------------------------------------------------------- 2. Base elements */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 60px);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 1rem/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

[lang] {
    font-family: var(--font);
}

main {
    flex: 1;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, pre {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -.015em;
    text-wrap: balance;
}

/* A heading or a paragraph that stands in a grid or a flex box gives way to its column.
   Left to itself such a box is at least as wide as its longest word, and a long word in a
   large type ("конфиденциальности", "Datenschutzerklärung") made the column wider than a
   narrow screen: now the word is broken where the column ends (overflow-wrap, above). */
:where(h1, h2, h3, p) {
    min-width: 0;
}

h1 { font-size: clamp(1.75rem, 1.15rem + 2.8vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.375rem, 1.2rem + .9vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.0625rem; font-weight: 600; }

/* Tight tracking suits Latin headings only. */
:lang(zh) :is(h1, h2, h3),
:lang(ja) :is(h1, h2, h3),
:lang(ko) :is(h1, h2, h3),
:is(h1, h2, h3):lang(zh),
:is(h1, h2, h3):lang(ja),
:is(h1, h2, h3):lang(ko) {
    letter-spacing: 0;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

img, video, svg {
    display: block;
    max-width: 100%;
}

img, video {
    height: auto;
}

code {
    font-family: var(--mono);
}

:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
    border-radius: 4px;
}

/* A browser paints the hint inside a field in a grey of its own, which is too faint to read
   on the dark page. It gets the colour of secondary text, which is chosen for both. Some
   browsers thin the hint as well, hence the opacity. */
::placeholder {
    color: var(--muted);
    opacity: 1;
}

[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* -------------------------------------------------------- 3. Layout helpers */

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.wrap-narrow {
    max-width: calc(760px + 2 * var(--gutter));
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    inset-inline-start: 12px;
    top: -64px;
    z-index: 30;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--text);
    color: var(--bg);
}

.skip-link:focus {
    top: 12px;
}

/* ----------------------------------------------------- 4. Header and footer */

/* The header is a bar across the screen, and the one rule of the page that runs from edge
   to edge is under it, a faint one. Everything below parts its regions with room and with
   panels, not with rules (see "Panels" under the shared components). */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    border-bottom-color: color-mix(in srgb, var(--line) 60%, transparent);
    background: var(--bg);
}

@supports (backdrop-filter: blur(1px)) and (background: color-mix(in srgb, red 50%, blue)) {
    .site-header,
    .section-nav {
        background: color-mix(in srgb, var(--bg) 82%, transparent);
        backdrop-filter: saturate(180%) blur(14px);
    }
}

.site-header-row {
    display: flex;
    align-items: center;
    gap: 8px 16px;
    height: var(--header-height);
}

/* The name of the store stands beside the mark while the row has room for it and for the
   whole menu. Where it has not (a narrow phone in a language of long words, or a store whose
   owner gave it a long name), the name is what gives way, and gives way whole: it moves to a
   second line of the link, which is as tall as one line and shows nothing of the second. The
   mark alone then stands for the store; half a name or half an entry of the menu would look
   broken. The shrink factor makes the link give up its room long before the menu does. The
   height is that of the mark or of a line of the name, whichever is taller, so a reader who
   set larger letters gets a taller link and not a clipped one. */
.brand {
    display: inline-flex;
    flex: 0 1000 auto;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center;
    gap: 10px;
    min-width: 28px;
    height: 28px;
    height: max(28px, 1.6em);
    overflow: hidden;
    color: var(--text);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: -.01em;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    flex: none;
    width: 28px;
    height: 28px;
}

.brand-name {
    white-space: nowrap;
}

/* The menu is as wide as its entries and takes what the row has left. When even the mark
   alone leaves it too little, its links scroll sideways rather than widen the page. The
   padding, taken back by the margin, leaves room for focus rings, which a scrolling box
   would cut off. */
.site-nav {
    display: flex;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
    margin: -5px;
    margin-inline-start: 3px;
    padding: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a,
.section-nav a {
    display: block;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: .9375rem;
    font-weight: 500;
    white-space: nowrap;
}

.site-nav a:hover,
.section-nav a:hover,
.site-nav a[aria-current],
.section-nav a[aria-current] {
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.language-menu {
    position: relative;
}

.language-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding-inline: 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: .875rem;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.language-menu summary::-webkit-details-marker {
    display: none;
}

.language-menu summary:hover,
.language-menu[open] summary {
    background: var(--surface);
    color: var(--text);
}

.icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.language-list {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
    gap: 2px;
    width: min(430px, calc(100vw - 2 * var(--gutter)));
    max-height: min(70vh, 480px);
    padding: 8px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow);
}

.language-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: .875rem;
}

.language-list a:hover {
    background: var(--surface);
    text-decoration: none;
}

.language-list a[aria-current] {
    background: var(--surface);
    font-weight: 600;
}

.site-footer {
    margin-top: clamp(40px, 8vw, 96px);
    padding-block: 40px 28px;
    background: var(--surface);
    color: var(--muted);
    font-size: .875rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(0, 2.4fr);
    gap: 32px;
}

.footer-column h2 {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-column ul {
    display: grid;
    gap: 6px;
}

.footer-products ul {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    column-gap: 16px;
}

.footer-column a {
    color: var(--text);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 24px;
    margin-top: 36px;
}

.footer-legal a {
    color: inherit;
}

.dev-bar {
    position: fixed;
    inset-inline-start: 12px;
    bottom: 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #14161a;
    color: #ffffff;
    font: 12px/1.4 var(--mono);
    opacity: .85;
}

.dev-bar a {
    color: #9ec1ff;
}

.dev-bar a[aria-current] {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
}

/* Keeps the bar off the last lines of the footer. */
body:has(.dev-bar) .site-footer {
    padding-bottom: 64px;
}

/* ----------------------------------------------------- 5. Shared components */

/* Buttons are pills without an outline. The plain one is a quiet fill that carries the
   colour of a link, so a row of them reads as a row of things to do without shouting; the
   one thing a page is for gets the accent. */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--link);
    font: inherit;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, filter .15s, transform .15s;
}

.button:hover {
    background: color-mix(in srgb, var(--surface-strong) 90%, var(--text));
    text-decoration: none;
}

.button:active {
    transform: scale(.98);
}

.button-primary,
.button-primary:hover {
    background: var(--accent);
    color: var(--on-accent);
}

.button-primary:hover {
    filter: brightness(1.08);
}

.button-disabled,
.button-disabled:hover,
.button-disabled:active {
    background: var(--surface);
    color: var(--muted);
    cursor: default;
    transform: none;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.chip {
    padding: 6px 15px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: .875rem;
    white-space: nowrap;
}

.chip:hover {
    background: var(--surface-strong);
    text-decoration: none;
}

.chip[aria-current],
.chip[aria-current]:hover {
    background: var(--text);
    color: var(--bg);
}

.eyebrow {
    color: var(--muted);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.lead {
    max-width: 62ch;
    color: var(--muted);
    font-size: clamp(1rem, .95rem + .4vw, 1.1875rem);
}

.notice {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--surface);
    font-size: .9375rem;
}

.notice-good {
    border-color: var(--good);
    color: var(--good);
}

.notice-warning {
    border-color: var(--warn);
    color: var(--warn);
}

.notice-bad {
    border-color: var(--bad);
    color: var(--bad);
}

/* Text written by people: paragraphs and lists made by Core\Text. */
.prose > * + * {
    margin-top: .75em;
}

.prose ul {
    display: grid;
    gap: .35em;
    padding-inline-start: 1.25em;
    list-style: disc;
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.prose-small {
    color: var(--muted);
    font-size: .875rem;
}

/* ------------------------------------------------------- 6. Lists and cards */

.page-intro {
    padding-block: clamp(32px, 7vw, 80px) clamp(16px, 3vw, 28px);
}

/* The title of a list of the store is the largest type of the whole site: the page has
   nothing else to open with, no picture and no colour. */
.page-intro h1 {
    max-width: 22ch;
    font-size: clamp(2rem, 1.3rem + 3.6vw, 3.5rem);
}

.page-intro .lead {
    margin-top: 12px;
}

.search {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin-top: 24px;
}

/* The hint is a sentence, and on a narrow phone longer than the field in most languages:
   it ends in an ellipsis there, not in the middle of a letter. */
.search input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    text-overflow: ellipsis;
}

.search input:focus-visible {
    border-color: var(--link);
    border-radius: 999px;
    background: var(--bg);
    outline-offset: 0;
}

.listing {
    padding-top: 16px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.listing-note,
.listing-empty {
    margin-bottom: 16px;
    color: var(--muted);
}

.group-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    margin-block: clamp(36px, 6vw, 56px) 16px;
}

.group-heading h2 a {
    color: inherit;
}

.group-heading p {
    color: var(--muted);
    font-size: .9375rem;
}

/* A product in a list is one tile: its icon, its name, a line about it, where it runs, and
   at the end the way in. The tiles are all of one size and stand in a grid, one abreast on
   a phone and two from a tablet on. Until 2026-12-02 a product was a row over a rule, two
   columns of them side by side: the rules of the two columns ended in the middle of the
   page, and an odd product left half a rule under itself. A tile has no rule to end. */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 12px;
}

/* A tile is as tall as a name, two lines about the product and a line of platforms, also
   where the line about the product is a short one: the tiles of a list are of one height,
   and what a tile holds stands in the middle of it. */
.card {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    min-height: 7.5rem;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    transition: box-shadow .2s;
}

/* Under a pointer a tile lifts off the page. Its ground stays as it is: the lines in small
   grey type on it are chosen for that grey and no darker one. */
.card:hover {
    box-shadow: var(--shadow);
    text-decoration: none;
}

.card:hover .card-name {
    color: var(--link);
}

/* The place of an icon is the colour of the page on the grey of a tile. */
.card .card-icon {
    background: var(--bg);
}

/* The way in is drawn as a button and is none: the whole tile is the link. On the grey of
   the tile it is the colour of the page. */
.card-action {
    flex: none;
    margin-inline-start: auto;
    padding: 5px 16px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--link);
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

/* App icons share one shape everywhere: a rounded square with a hairline edge. */
.card-icon,
.featured-icon,
.product-icon,
.back-link img {
    flex: none;
    border-radius: 22.5%;
    background: var(--surface);
    outline: 1px solid rgba(128, 128, 128, .2);
    outline-offset: -1px;
}

.card-icon {
    width: 64px;
    height: 64px;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.card-name {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color .15s;
}

.card-tagline {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: .9375rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.card .badges {
    padding-top: 4px;
}

.card .badge {
    padding: 0;
    background: none;
    font-weight: 400;
}

/* Platform names in a tile are words with a point between them, not chips. The point
   follows its word, so a line that breaks ends with a point and the next begins with a word. */
.card .badge:not(:last-child)::after {
    content: "\00B7";
    margin-inline: 6px 2px;
}

.featured {
    padding-block: 8px 16px;
}

.featured-card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 24px;
    padding: clamp(20px, 4vw, 48px);
    overflow: hidden;
    border-radius: 28px;
    background: var(--surface);
    color: var(--text);
}

.featured-card:hover {
    text-decoration: none;
}

.featured-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.featured-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.featured-icon {
    width: 64px;
    height: 64px;
}

.featured-name {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.015em;
}

.featured-tagline {
    font-size: 1.0625rem;
    font-weight: 500;
}

.featured-summary {
    display: -webkit-box;
    max-width: 52ch;
    overflow: hidden;
    color: var(--muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.featured-text .button {
    margin-top: 6px;
}

/* On the grey of the tile a chip is the colour of the page. */
.featured .badge {
    background: var(--bg);
}

.featured-pictures {
    display: flex;
    justify-content: center;
    gap: 12px;
    min-width: 0;
}

.featured-pictures img {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

/* Upright screenshots share the width of their column: all of them are in sight beside the
   words, and none lies over a word. (They had a height and whatever width came of it: on a
   computer three of them were wider than their column and covered the end of the summary.)
   One or two keep the size they would have among three. */
.featured-pictures-upright img {
    flex: 0 1 calc((100% - 24px) / 3);
    width: calc((100% - 24px) / 3);
    min-width: 0;
    height: auto;
}

.featured-pictures-wide img {
    width: 100%;
    height: auto;
}

/* ---------------------------------------------------------- 7. Product page */

/* The header is the product's own words and nothing else: its icon, its name in the largest
   type of the page, what it is, who makes it, and the one button. No tint, no band: the
   icon and the screenshots under it bring the colour. */
.product-header {
    padding-block: clamp(24px, 5vw, 64px) clamp(16px, 2.4vw, 28px);
}

.product-header .notice {
    margin-bottom: 20px;
}

.product-header-row {
    display: flex;
    align-items: flex-start;
    gap: clamp(16px, 3.2vw, 40px);
}

.product-icon {
    width: clamp(96px, 17vw, 176px);
    height: auto;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
}

.product-heading {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.product-tagline {
    max-width: 44ch;
    color: var(--muted);
    font-size: clamp(1.0625rem, .98rem + .7vw, 1.4375rem);
    line-height: 1.35;
}

.product-publisher {
    font-size: .9375rem;
}

.product-heading .badges {
    margin-top: 6px;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 14px;
}

.product-actions .button {
    min-width: 108px;
}

.product-price {
    color: var(--muted);
    font-size: .875rem;
}

/* The product at a glance: one panel of cells, each a name in small type, a figure or a word
   in large type and a few words under it. Every product has the same row
   (Web\ProductPresenter::glance). The cells share the width when there is room; on a narrow
   screen the row is as wide as its cells and scrolls sideways inside the panel, which keeps
   each cell readable in every language instead of squeezing six into 320 pixels. The room
   between two cells parts them; there is no rule between them. */
.glance {
    display: flex;
    margin-top: clamp(24px, 4vw, 44px);
    padding-inline: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.glance::-webkit-scrollbar {
    display: none;
}

.glance-cell {
    display: grid;
    flex: 1 0 auto;
    align-content: start;
    justify-items: center;
    gap: 4px;
    min-width: 104px;
    padding: 18px 14px 20px;
    text-align: center;
}

.glance dt {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

.glance dd {
    display: grid;
    justify-items: center;
    gap: 2px;
}

.glance-value {
    font-size: 1.375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    white-space: nowrap;
}

.glance-caption {
    color: var(--muted);
    font-size: .8125rem;
    line-height: 1.4;
    white-space: nowrap;
}

/* Short selling points lead the description. */
.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.facts li {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface);
    font-size: .875rem;
}

.about {
    max-width: 72ch;
    font-size: 1.0625rem;
}

/* The ways to the sections of the page: a row of pills that stays under the header while
   the page scrolls. It has no rule above or below it; what scrolls under it shows through
   it blurred, as under the header. */
.section-nav {
    position: sticky;
    top: calc(var(--header-height) + 1px);
    z-index: 10;
    background: var(--bg);
}

.section-nav ul {
    display: flex;
    gap: 2px;
    margin-inline: -12px;
    padding-block: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.section-nav ul::-webkit-scrollbar {
    display: none;
}

.section-nav a {
    font-size: .875rem;
}

/* Two sections are parted by the room between them and by the heading of the second: there
   is no rule between sections. */
.section {
    padding-block: clamp(26px, 4.4vw, 52px);
}

.section-preview {
    padding-block: clamp(12px, 2vw, 20px) clamp(20px, 3vw, 32px);
}

.section-heading {
    display: grid;
    gap: 6px;
    max-width: 68ch;
    margin-bottom: clamp(16px, 3vw, 28px);
}

.section-heading p {
    color: var(--muted);
}

.section-note {
    max-width: 68ch;
    margin-top: 16px;
    color: var(--muted);
    font-size: .875rem;
}

/* Preview: one strip of videos and screenshots per device, switched without scripts by
   the radio buttons that precede the strips. */
.gallery {
    --shot-height: clamp(340px, 62vh, 560px);
}

.gallery-switch {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* The names of the devices are as long as their language makes them ("Компьютер",
   "スマートフォン"). A name is never broken, and the row never grows wider than the page: on
   a narrow screen the tabs stand closer (see the small screens below), and a tab that still
   has no room moves to a second row as a whole. The corners are half the height of one row,
   so one row is a capsule and two rows are a rounded box. */
.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    margin-bottom: 16px;
    padding: 3px;
    border-radius: 20px;
    background: var(--surface);
}

.gallery-tabs label {
    padding: 6px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

#gallery-switch-phone:checked ~ .gallery-tabs label[for="gallery-switch-phone"],
#gallery-switch-tablet:checked ~ .gallery-tabs label[for="gallery-switch-tablet"],
#gallery-switch-desktop:checked ~ .gallery-tabs label[for="gallery-switch-desktop"] {
    background: var(--bg);
    color: var(--text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .14);
}

#gallery-switch-phone:focus-visible ~ .gallery-tabs label[for="gallery-switch-phone"],
#gallery-switch-tablet:focus-visible ~ .gallery-tabs label[for="gallery-switch-tablet"],
#gallery-switch-desktop:focus-visible ~ .gallery-tabs label[for="gallery-switch-desktop"] {
    outline: 2px solid var(--link);
    outline-offset: 2px;
}

.gallery-strip {
    display: none;
    gap: 16px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x proximity;
}

.gallery-single .gallery-strip,
#gallery-switch-phone:checked ~ .gallery-group-phone,
#gallery-switch-tablet:checked ~ .gallery-group-tablet,
#gallery-switch-desktop:checked ~ .gallery-group-desktop {
    display: flex;
}

.gallery-item {
    display: grid;
    flex: none;
    align-content: start;
    gap: 8px;
    scroll-snap-align: start;
}

/* A strip that does not fill its row stands in the middle of it, under the tabs: one upright
   video on a wide screen would otherwise sit at one edge of an empty row. The margins take
   the room that is left over and nothing when there is none, so a strip longer than the row
   still begins at its beginning and scrolls. */
.gallery-item:first-child {
    margin-inline-start: auto;
}

.gallery-item:last-child {
    margin-inline-end: auto;
}

.gallery-item img,
.gallery-item video {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.gallery-item-portrait img,
.gallery-item-portrait video {
    width: auto;
    max-width: none;
    height: var(--shot-height);
}

.gallery-item-landscape img,
.gallery-item-landscape video {
    width: min(84vw, 680px);
    height: auto;
}

/* A caption never makes its picture's column wider. */
.gallery-caption {
    width: 0;
    min-width: 100%;
    color: var(--muted);
    font-size: .8125rem;
}

/* Cards of highlights and steps. The page sets --columns to the number of columns that spreads
   the cards over rows of even length (Web\ProductPresenter::balancedColumns). A narrower screen
   gets fewer columns, never narrower than --card. The half pixel keeps rounding from dropping
   a column. */
.feature-grid,
.steps {
    --card: 260px;
    --columns: 3;
    --gap: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--card), (100% - (var(--columns) - 1) * var(--gap)) / var(--columns) - .5px)), 1fr));
    gap: var(--gap);
}

.feature {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface);
}

.feature-text {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.feature .prose,
.showcase-item .prose,
.step .prose {
    color: var(--muted);
    font-size: .9375rem;
}

/* The picture of a highlight opens in the viewer. */
.feature-picture {
    display: block;
    border-radius: var(--radius-small);
    cursor: zoom-in;
}

.feature-picture img {
    width: 100%;
    border-radius: var(--radius-small);
}

/* Upright pictures (phone screenshots) stand beside their text instead of pushing it a
   screen further down. */
.feature-grid-side {
    --card: 400px;
}

.feature-grid-side .feature-pictured {
    grid-template-columns: clamp(96px, 30%, 148px) minmax(0, 1fr);
    align-items: start;
    column-gap: 18px;
}

/* The room between two steps is wider than between two cards, and the sum above has to
   know it: with the cards' 16 pixels in it, four steps were given columns a little too wide
   for four of them to fit, and the fourth stood alone in a second row. */
.steps {
    --card: 220px;
    --gap: 24px;
    row-gap: 28px;
    counter-reset: step;
}

/* A step is its number, its name and a few words, with nothing around them: the numbers in
   their circles are what holds the row together. */
.step {
    display: grid;
    align-content: start;
    gap: 8px;
    counter-increment: step;
}

.step::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    font-size: .875rem;
    font-weight: 700;
}

.showcase + .showcase {
    margin-top: clamp(28px, 5vw, 48px);
}

/* Card groups come in three layouts, chosen by their pictures (Web\ProductPresenter::showcases):
   text only ("plain"), small pictures beside the text ("icons"), larger pictures above it
   ("cards"). On narrow screens "cards" turn into a shelf, see the end of this file. */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px 24px;
}

.showcase-item {
    display: grid;
    align-content: start;
    gap: 10px;
}

.showcase-text {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
}

.showcase-image {
    border-radius: 12px;
    background: var(--surface);
}

.showcase-cards {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 20px 16px;
}

.showcase-cards .showcase-image {
    width: 100%;
}

.showcase-icons .showcase-item {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    column-gap: 14px;
}

.showcase-icons .showcase-image {
    width: 72px;
}

.showcase-icons .showcase-text {
    grid-column: 2;
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 16px;
    margin-top: 20px;
}

.plan {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface);
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.plan-note {
    color: var(--muted);
    font-size: .875rem;
}

.plan-features {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    font-size: .9375rem;
}

.plan-features li {
    position: relative;
    padding-inline-start: 24px;
}

.plan-features li::before {
    content: "";
    position: absolute;
    inset-inline-start: 3px;
    top: .45em;
    width: 11px;
    height: 6px;
    border-bottom: 2px solid var(--good);
    border-left: 2px solid var(--good);
    transform: rotate(-45deg);
}

.plans + .prose,
.prose + .plans {
    margin-top: 20px;
}

/* Panels. What belongs together stands on one tile of the quiet grey, with round corners and
   no edge: the cells of the glance row, the ways to get the product, the questions, what is
   known about the product (and, each a tile of its own, a product in a list, a highlight, a
   plan). A page parts its regions with room and a panel with its ground. Rules are left
   only inside a panel, between the rows of one list, where they are all of one length and
   one inset. Every panel is as wide as the column of the page: the edges of a page are two
   lines down its sides, and nothing between them ends at a width of its own.

   Until 2026-12-02 these were lists under rules, each list with rules of its own length
   (the page had rules of five lengths, and the owner called it ragged). */
.glance,
.download-list,
.release-notes,
.questions,
.product .information {
    border-radius: var(--radius);
    background: var(--surface);
}

.download-list,
.release-notes,
.questions {
    --panel-inset: clamp(16px, 2.6vw, 24px);
    padding-inline: var(--panel-inset);
}

/* The ways to get the product are one list in one panel: a row each, the name on one side
   and the button on the other, a rule between rows. */
.download-list {
    display: grid;
}

.download {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 20px;
    padding-block: 18px;
    scroll-margin-top: calc(var(--header-height) + 64px);
}

.download + .download,
.question + .question {
    border-top: 1px solid var(--line);
}

/* On the grey of a panel a button is the colour of the page, also the one that leads
   nowhere yet: its grey words tell it from the others. */
.download .button,
.download .button-disabled:hover {
    background: var(--bg);
}

.download .button:not(.button-disabled):hover {
    background: color-mix(in srgb, var(--bg) 92%, var(--text));
}

/* The way a link pointed at stands out by its ground: the colour of the page, in a block
   with round corners that keeps a little off the sides of the panel. The rules above and
   below it would run into that block and are taken away, and its button takes the grey
   the block gave up. */
.download:target {
    margin-inline: calc(8px - var(--panel-inset));
    padding-inline: calc(var(--panel-inset) - 8px);
    border-top-color: transparent;
    border-radius: var(--radius-small);
    background: var(--bg);
}

.download:target + .download {
    border-top-color: transparent;
}

.download:target .button:not(.button-primary) {
    background: var(--surface);
}

.download h3 {
    font-size: 1.0625rem;
}

.download-main {
    display: grid;
    gap: 2px;
}

.download-platforms,
.download-details {
    color: var(--muted);
    font-size: .875rem;
}

.download-extra {
    display: grid;
    grid-column: 1 / -1;
    gap: 10px;
}

.download-code img {
    width: 160px;
    height: auto;
    border-radius: 8px;
    background: #ffffff;
}

.download-code figcaption {
    margin-top: 6px;
    color: var(--muted);
    font-size: .875rem;
}

.checksum summary {
    color: var(--muted);
    font-size: .8125rem;
    cursor: pointer;
}

.checksum code {
    display: block;
    margin-top: 6px;
    font-size: .8125rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    user-select: all;
}

/* The releases are one list in one panel as well: a release to a row, its version at the
   beginning of the row and its date at the end, what it brought under them in lines no
   longer than a line is read at ease. The older releases wait in the last row. */
.release {
    padding-block: 18px;
}

.release + .release,
.releases-older,
.releases-older > .releases {
    border-top: 1px solid var(--line);
}

.release .prose {
    max-width: 72ch;
}

.releases-older summary {
    padding-block: 16px;
    color: var(--link);
    font-size: .9375rem;
    font-weight: 500;
    cursor: pointer;
}

.release-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 6px;
}

.release-heading time {
    color: var(--muted);
    font-size: .875rem;
}

/* The questions are one list in one panel, like the ways to get the product: a question to
   a row, a rule between rows, the answer under its question when that is opened. */
.question summary {
    position: relative;
    padding-block: 16px;
    padding-inline-end: 36px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.question summary::-webkit-details-marker,
.fold summary::-webkit-details-marker {
    display: none;
}

.question summary::after,
.fold summary::after {
    content: "";
    position: absolute;
    inset-inline-end: 8px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .2s;
}

.question[open] summary::after,
.fold[open] summary::after {
    margin-top: -2px;
    transform: rotate(-135deg);
}

.question .prose {
    max-width: 72ch;
    padding-bottom: 16px;
    color: var(--muted);
}

/* Each entry stands under a rule of its own: a name in small type, what it is below. An
   entry that is a long list (the languages of an app that speaks twenty-five) takes the
   whole row, where it is a few lines instead of a tall narrow column. */
.information {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 20px 28px;
}

.information > div {
    display: grid;
    align-content: start;
    gap: 2px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.information > .information-wide {
    grid-column: 1 / -1;
}

.information dt {
    color: var(--muted);
    font-size: .8125rem;
}

.information dd {
    font-size: .9375rem;
    overflow-wrap: anywhere;
}

/* One name of a list (a platform, a language): the list wraps between names, never inside one. */
.information bdi {
    white-space: nowrap;
}

/* On the product page a name stands in one piece with the mark that follows it, so no line
   begins with a comma either. The piece is no wider than the line: a name that no line can
   hold breaks like any other text instead of reaching out of the panel (the Hungarian for a
   HarmonyOS computer is wider than the row of the narrowest phone). */
.information-name {
    display: inline-block;
    max-width: 100%;
}

.information-name bdi {
    white-space: normal;
}

/* On the product page the entries are the cells of one panel, and no rule stands between
   them: a name in small type and under it what it is, in as many columns as the panel has
   room for. A list of names (the platforms, the languages) takes two columns where there
   are that many, and a long one the whole row. */
.product .information {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 18px 28px;
    padding: clamp(18px, 2.6vw, 24px);
}

.product .information > div {
    padding-top: 0;
    border-top: 0;
}

.product .information > .information-list {
    grid-column: span 2;
}

.product .information > .information-wide {
    grid-column: 1 / -1;
}

.information-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 24px;
    font-size: .9375rem;
}

/* ------------------------------------------- 8. Documents, forms and errors */

.document {
    padding-block: clamp(24px, 5vw, 56px) 0;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .9375rem;
}

.back-link img {
    width: 28px;
    height: 28px;
}

.document .notice {
    margin-block: 16px 20px;
}

.document .notice:first-child {
    margin-top: 0;
}

.document-heading {
    display: grid;
    gap: 8px;
    margin-block: 16px 24px;
}

/* The title of a policy is where the longest words of the store stand in its largest type
   ("Nutzungsbedingungen", "конфиденциальности"). On a phone it is set a little smaller than
   other titles, so that such a word stays whole on the narrowest screen; from a tablet on it
   is the size of every other title. */
.document-heading h1 {
    font-size: clamp(1.5rem, .9rem + 3vw, 2.75rem);
}

.document-updated {
    color: var(--muted);
    font-size: .875rem;
}

.document-section {
    margin-top: 28px;
}

.document-section h2 {
    margin-bottom: 8px;
    font-size: 1.1875rem;
}

.document-section .button {
    margin-top: 16px;
}

/* A part of a page that runs long is folded under its title, which opens it and carries
   the mark of a question for it (the credits of a product made from many photographs). */
.fold summary {
    position: relative;
    padding-inline-end: 36px;
    list-style: none;
    cursor: pointer;
}

.fold summary h2 {
    margin-bottom: 0;
}

.fold[open] summary {
    margin-bottom: 8px;
}

.document .information-links {
    margin-top: 40px;
}

.document .information-links:empty {
    display: none;
}

.form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-size: .875rem;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: var(--bg);
    color: var(--text);
    font: inherit;
}

.field textarea {
    min-height: 160px;
    resize: vertical;
}

.field [aria-invalid="true"] {
    border-color: var(--bad);
}

/* The trap field of the contact form: present for scripts, absent for people. */
.form-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.form-note {
    color: var(--muted);
    font-size: .875rem;
}

.error-page {
    padding-block: clamp(48px, 10vw, 120px) 0;
    text-align: center;
}

.error-page .wrap {
    display: grid;
    justify-items: center;
    gap: 16px;
}

.error-status {
    color: var(--surface-strong);
    font-size: clamp(3.5rem, 12vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
}

.error-detail {
    justify-self: stretch;
    padding: 16px;
    overflow: auto;
    border-radius: var(--radius-small);
    background: var(--surface);
    font: .8125rem/1.5 var(--mono);
    text-align: start;
    white-space: pre-wrap;
}

/* -------------------------------------------------------- 9. Picture viewer */

.viewer {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(8, 9, 11, .96);
    color: #ffffff;
}

.viewer::backdrop {
    background: rgba(8, 9, 11, .6);
}

.viewer-stage {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 60px 12px 48px;
}

.viewer-stage img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.viewer-button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
    cursor: pointer;
}

.viewer-button:hover {
    background: rgba(255, 255, 255, .26);
}

.viewer-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.viewer-close {
    inset-inline-end: 8px;
    top: 8px;
}

.viewer-previous {
    inset-inline-start: 8px;
    top: calc(50% - 22px);
}

.viewer-next {
    inset-inline-end: 8px;
    top: calc(50% - 22px);
}

[dir="rtl"] .viewer-previous svg,
[dir="rtl"] .viewer-next svg {
    transform: scaleX(-1);
}

.viewer-counter {
    position: absolute;
    inset-inline: 0;
    bottom: 14px;
    color: rgba(255, 255, 255, .8);
    font-size: .875rem;
    text-align: center;
}

/* ------------------------------------- 10. Small screens, motion and print */

/* A tablet held upright shows cards of text two abreast. An odd number of them would leave
   the last one alone in its row beside an empty place; it takes the whole row instead and
   closes the group. (Cards with pictures are laid out by their pictures, and steps stand
   three abreast at this width: neither needs it.) */
@media (min-width: 641px) and (max-width: 879px) {
    .feature-grid-plain > .feature:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    /* Four steps, or four plans, stand two and two here. A row has room for three, and three
       and one would leave the last of them alone in its row. */
    .steps:has(> .step:nth-child(4):last-child),
    .plans:has(> .plan:nth-child(4):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-nav {
        margin-inline-start: -5px;
    }

    .site-nav a {
        padding-inline: 10px;
    }

    .site-nav .site-nav-extra,
    .language-current {
        display: none;
    }

    .featured-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* On a phone the icon stands beside the name and the lines under it, and the buttons
       run the full width below both: beside the icon they would have half a screen. */
    .product-header-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 4px 16px;
    }

    .product-header-row:not(:has(.product-icon)) {
        column-gap: 0;
    }

    .product-heading {
        display: contents;
    }

    .product-icon {
        grid-row: 1 / span 4;
        align-self: start;
    }

    .product-heading > * {
        grid-column: 2;
    }

    .product-heading > .product-actions {
        grid-column: 1 / -1;
        margin-top: 16px;
    }

    .product-actions .button {
        flex: 1 1 auto;
    }

    /* A way to get the product, on a phone: what it is, and under it its button, as wide as
       its words. A button across the whole screen in every row made five ways five bars. */
    .download {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .download-action .button {
        min-width: 108px;
        max-width: 100%;
    }

    /* What is known about the product is a list of rows on a phone, in its panel like the
       ways to get the product: the name of a thing at the beginning of the row, the thing at
       its end, a rule between rows. */
    .product .information {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-block: 4px;
    }

    .product .information > div {
        grid-template-columns: fit-content(45%) minmax(0, 1fr);
        align-items: baseline;
        column-gap: 20px;
        padding-block: 13px;
    }

    .product .information > div + div {
        border-top: 1px solid var(--line);
    }

    .product .information dt {
        font-size: .9375rem;
    }

    .product .information dd {
        text-align: end;
    }

    /* A list of names (the platforms, the languages) keeps its name above it and has the
       whole row. Beside its name it was a ragged column set to the far side, and a name of
       some length ("Windows rendszerű számítógépek") did not fit into that column at all. */
    .product .information > .information-list {
        grid-column: auto;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 4px;
    }

    .product .information > .information-list dd {
        text-align: start;
    }

    /* A group of pictured cards becomes one row that scrolls sideways, like the screenshots
       at the top of the page: twenty cards stacked would make the page endless. The next
       card always shows a little, which says there is more. */
    .showcase-cards {
        display: flex;
        gap: 12px;
        margin-inline: calc(-1 * var(--gutter));
        padding: 4px var(--gutter) 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-padding-inline: var(--gutter);
        scroll-snap-type: x proximity;
    }

    .showcase-cards .showcase-item {
        flex: 0 0 min(64vw, 240px);
        scroll-snap-align: start;
    }

    .dev-bar {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    /* On a phone the upright picture of a highlight stands above its text, in the middle of
       the tile and no taller than a third of the screen: a column of text beside it would be
       a few words wide, and text that flows around it and on below it reads as unsettled. */
    .feature-grid-side .feature-pictured {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-grid-side .feature-picture {
        justify-self: center;
    }

    .feature-grid-side .feature-picture img {
        width: auto;
        max-width: 100%;
        height: clamp(200px, 60vw, 260px);
        object-fit: contain;
    }

    /* On a phone the way into a product is a mark at the end of its tile, not a word in a
       button: that word is long in many languages ("Megtekintés"), and the room it takes is
       the name's. The mark points the way the language reads. */
    .card-action {
        display: none;
    }

    .card::after {
        content: "";
        flex: none;
        width: 8px;
        height: 8px;
        margin-inline: auto 4px;
        border-top: 2px solid var(--muted);
        border-right: 2px solid var(--muted);
        transform: rotate(45deg);
    }

    [dir="rtl"] .card::after {
        transform: rotate(-135deg);
    }

    /* Three devices side by side on the narrowest phone, in the languages with the longest names for them. */
    .gallery-tabs label {
        padding-inline: 10px;
        font-size: .8125rem;
    }

    /* The header of a phone stands closer. On the narrowest one the name of the store and
       the language button leave about 150 pixels to the menu, and "Apps" and "Games" need
       more than that in most languages: every pixel between them is one of the menu's. Where
       the two words are longer still, the name of the store makes room for them (see .brand). */
    .site-header-row {
        column-gap: 10px;
    }

    .brand {
        gap: 8px;
    }

    .site-nav a {
        padding-inline: 8px;
        font-size: .875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media print {
    .site-header,
    .section-nav,
    .site-footer,
    .dev-bar,
    .skip-link,
    .product-actions {
        display: none !important;
    }

    .gallery-strip {
        flex-wrap: wrap;
        overflow: visible;
    }
}
