/* ═══ Fonts ════════════════════════════════════════════════════════════════════════════════════════════════
   The one place a typeface is named. Every other rule on the site names a role:
     var(--font-hand)    the hand: headlines, body, buttons, prices (Comic Neue; a language may swap it, below, and
                         the pages in Allo's look take Allo, its bolds drawn at 520)
     var(--font-display) headings: the hand, or on the pages in Allo's look Allo's display cut (640, and 760 above 700)
     var(--font-brand)   Comic Neue whatever the language: the hand's own face, behind each language's swap
     var(--font-figures) Allo's display cut whatever the language, for the advent calendar's figures (its door numbers,
                         countdown and stamp, at 760), so they look the same on every calendar
     var(--font-plain)   plain text: the chat, fine print, answers, computer footers (Allo; Inter for Russian and
                         Vietnamese, whose letters Allo lacks, and for any character it lacks on other pages)
     var(--font-system)  the phone's own face, for the store badges
     var(--font-mono)    codes and keys
   A face is fetched only when text on the page uses it, so declaring one here costs a page nothing it does not draw.
   Two kinds of face are declared on their own pages instead, by scripts/i18n/script-support.mjs: Noto Sans Arabic
   (the plain role names it, so declaring it here would fetch it for the one Arabic word in every language menu) and
   the Noto Sans JP/KR/SC files cut to each language's characters. scripts/regression.ts fails on a typed family
   anywhere else. */
@font-face{font-family:"Comic Neue";font-weight:400;font-display:swap;src:url("/assets/h/ComicNeue-400.30032375.woff2") format("woff2");}
@font-face{font-family:"Comic Neue";font-weight:700;font-display:swap;src:url("/assets/h/ComicNeue-700.0c1d3e1e.woff2") format("woff2");}
/* Allo, the plain face: Latin only, weights 400 to 700, cut by scripts/build-allo-fonts.py (licence: Allo-OFL.txt) */
@font-face { font-family: "Allo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/h/Allo-400-700-latin.eec1f113.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Allo"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/h/Allo-400-700-latin-ext.bb8a6036.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* "Allo Hand", the hand of the pages in Allo's look: Allo's own regular weights (the plain face's files), and every bolder
   weight (the 600, 700 and 800 that Comic Neue's bold labels ask for) drawn at 520, so the many bold labels read lighter */
@font-face { font-family: "Allo Hand"; font-style: normal; font-weight: 100 500; font-display: swap; src: url("/assets/h/Allo-400-700-latin.eec1f113.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Allo Hand"; font-style: normal; font-weight: 100 500; font-display: swap; src: url("/assets/h/Allo-400-700-latin-ext.bb8a6036.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Allo Hand"; font-style: normal; font-weight: 501 1000; font-display: swap; src: url("/assets/h/Allo-520-latin.2fe298de.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Allo Hand"; font-style: normal; font-weight: 501 1000; font-display: swap; src: url("/assets/h/Allo-520-latin-ext.966bcd40.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* "Allo Display", the headings of the pages in Allo's look, at the display optical size: every weight up to 600 draws at
   580 (the big links of the phone menu), up to 700 at 640 (the headline weight), every weight above at 760 (the advent
   calendar's figures) */
@font-face { font-family: "Allo Display"; font-style: normal; font-weight: 100 600; font-display: swap; src: url("/assets/h/Allo-Display-580-latin.441533c9.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Allo Display"; font-style: normal; font-weight: 601 700; font-display: swap; src: url("/assets/h/Allo-Display-640-latin.34f027ac.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Allo Display"; font-style: normal; font-weight: 100 600; font-display: swap; src: url("/assets/h/Allo-Display-580-latin-ext.447a8a6b.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Allo Display"; font-style: normal; font-weight: 601 700; font-display: swap; src: url("/assets/h/Allo-Display-640-latin-ext.783a5360.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Allo Display"; font-style: normal; font-weight: 701 1000; font-display: swap; src: url("/assets/h/Allo-Display-760-latin.acc99b03.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Allo Display"; font-style: normal; font-weight: 701 1000; font-display: swap; src: url("/assets/h/Allo-Display-760-latin-ext.648cf2e8.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Inter, Allo's fallback and the plain face for Russian and Vietnamese, in four parts so a page loads only the letters it uses */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/h/Inter-var-latin.c9407645.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+2010-2029, U+202F-205F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/h/Inter-var-latin-ext.a28eb6d3.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/h/Inter-var-vietnamese.8db00ff4.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/h/Inter-var-cyrillic.aebf2ab4.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* "Inter Hand", the hand of the Russian and Vietnamese pages in Allo's look (Allo lacks their letters, and Inter is the face
   Allo is built on): Inter's own regular weights, and every bolder weight drawn at 520, as "Allo Hand" does */
@font-face { font-family: "Inter Hand"; font-style: normal; font-weight: 100 500; font-display: swap; src: url("/assets/h/Inter-var-latin.c9407645.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+2010-2029, U+202F-205F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Hand"; font-style: normal; font-weight: 100 500; font-display: swap; src: url("/assets/h/Inter-var-latin-ext.a28eb6d3.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Hand"; font-style: normal; font-weight: 100 500; font-display: swap; src: url("/assets/h/Inter-var-vietnamese.8db00ff4.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter Hand"; font-style: normal; font-weight: 100 500; font-display: swap; src: url("/assets/h/Inter-var-cyrillic.aebf2ab4.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Hand"; font-style: normal; font-weight: 501 1000; font-display: swap; src: url("/assets/h/Inter-520-latin.08f64aa2.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200B, U+2010-2029, U+202F-205F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Hand"; font-style: normal; font-weight: 501 1000; font-display: swap; src: url("/assets/h/Inter-520-latin-ext.9cf21461.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Hand"; font-style: normal; font-weight: 501 1000; font-display: swap; src: url("/assets/h/Inter-520-vietnamese.41149c4e.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter Hand"; font-style: normal; font-weight: 501 1000; font-display: swap; src: url("/assets/h/Inter-520-cyrillic.b0356dcb.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* Comic Relief, the hand for Polish and Russian: Comic Neue has no Cyrillic, and one face for the whole page keeps
   Latin and Cyrillic in step. Only 400 ships, and Polish and Russian pages draw no real or faked bold. */
@font-face{font-family:"Comic Relief";font-weight:400;font-display:swap;src:url("/assets/h/ComicRelief-400-cyr.3075b68a.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:"Comic Relief";font-weight:400;font-display:swap;src:url("/assets/h/ComicRelief-400-lat.ed9df0a2.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FB01-FB02;}
@font-face{font-family:"Comic Relief";font-weight:400;font-display:swap;src:url("/assets/h/ComicRelief-400-ext.9df420f9.woff2") format("woff2");unicode-range:U+0100-017F;}
/* Mali, the hand for Vietnamese: Comic Neue lacks ơ ư ạ ế ộ, and a second face mixed in per letter would split a word */
@font-face{font-family:"Mali";font-weight:400;font-display:swap;src:url("/assets/h/Mali-400-lat.18a1427c.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Mali";font-weight:400;font-display:swap;src:url("/assets/h/Mali-400-vi.df249391.woff2") format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
@font-face{font-family:"Mali";font-weight:600;font-display:swap;src:url("/assets/h/Mali-600-lat.e89fe875.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Mali";font-weight:600;font-display:swap;src:url("/assets/h/Mali-600-vi.39ea5de7.woff2") format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
@font-face{font-family:"Mali";font-weight:700;font-display:swap;src:url("/assets/h/Mali-700-lat.ff139885.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Mali";font-weight:700;font-display:swap;src:url("/assets/h/Mali-700-vi.02399b3f.woff2") format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
:root {
  --font-brand: "Comic Neue", Avenir, Helvetica, sans-serif;
  --font-hand: var(--font-brand);
  --font-plain-base: Inter, "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-plain: "Allo", var(--font-plain-base);
  --font-display: var(--font-hand);
  --font-figures: "Allo Display", var(--font-plain);
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
/* each language whose letters a face lacks swaps the role, never a rule */
:root:lang(ru), :root:lang(vi) { --font-plain: var(--font-plain-base); }
:root:lang(pl), :root:lang(ru) { --font-hand: "Comic Relief", Avenir, Helvetica, sans-serif; font-synthesis: none; font-synthesis-weight: none; }
:root:lang(vi) { --font-hand: "Mali", var(--font-brand); }
:root:lang(ar) { --font-hand: "Comic Neue", "Noto Sans Arabic", Avenir, Helvetica, sans-serif; }
/* Japanese, Korean, Chinese: Comic Neue for Latin, the Noto file joined to the family for the language's characters,
   then the face each phone ships for anything the file lacks */
:root:lang(ja) { --font-hand: "Comic Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, "Noto Sans JP", Avenir, Helvetica, sans-serif; }
:root:lang(ko) { --font-hand: "Comic Neue", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Avenir, Helvetica, sans-serif; }
:root:lang(zh) { --font-hand: "Comic Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Avenir, Helvetica, sans-serif; }
/* The pages in Allo's look carry <body class="allo"> (on the body, not the root: the :root:lang rules above would win there);
   the rest of the site keeps Comic Neue until it moves. The hand is "Allo Hand", headings are "Allo Display"
   (var(--font-display)). Russian and Vietnamese take Inter for both, the face Allo is built on; Arabic, Japanese, Korean and
   Chinese reach their own faces through the plain role. Polish and Russian get their bold back: these faces have real ones. */
.allo { --font-hand: "Allo Hand", var(--font-plain); --font-display: "Allo Display", var(--font-plain); }
.allo:lang(ru), .allo:lang(vi) { --font-hand: "Inter Hand", var(--font-plain-base); --font-display: var(--font-plain-base); }
.allo:lang(pl), .allo:lang(ru) { font-synthesis: initial; font-synthesis-weight: initial; }
/* Arabic headings stay regular (the script's bold reads as shouting at heading sizes), and their Latin words follow:
   the display cut is fixed at 640, so they draw in the plain face, which has every weight. */
body.allo:lang(ar) :is(h1, h2, h3) { font-family: var(--font-plain); font-weight: 400; }
/* ═══ end of Fonts ═══ */
:root {
  /* Stitch's lighter canvas, white cards on it, and a soft neutral fill for the
     containers inside them (the old paper was rgb(247, 241, 227), cards #fbf7ec, fills #efe6d2) */
  --paper: #faf8f5;
  --paper-card: #ffffff;
  --paper-deep: #f2f0ec;
  /* Text. Every page and every builder takes its text colour from these, so one edit here re-colours
     the whole site in every language (scripts/regression.ts fails on a grey typed anywhere else).
       --ink        titles, names, prices: the words the eye lands on first
       --ink-body   the sentences under them: ledes, card text, answers, list lines, plan sizes and days
       --ink-soft   small print: captions, hints, units, crumbs, times, the footer, an option not picked
       --navy       links and section labels
       --navy-deep  the deeper navy: links inside the calculator's copy and table, and a navy link under the pointer
     Sentences and small print share one grey: --ink-soft follows --ink-body, so --ink-body sets every grey
     on the site. Give --ink-soft a colour of its own to set small print apart.
     On --paper and --paper-card: ink 12.6:1 and 13.3:1, the grey 7.2:1 and 7.6:1 (small text needs 4.5:1). */
  --ink: #332f27;
  --ink-body: #5b5346;
  --ink-soft: var(--ink-body);
  --line: rgba(51, 47, 39, 0.16);
  --line-strong: rgba(51, 47, 39, 0.4);
  --navy: #274690;
  --navy-deep: #1f3873;
  --tg: #229ed9;
  --stamp: #b8472e;
  --good: #3f8f5f;
  /* Allo's look (assets/allo.css): near-black for its headlines and dark pills; Atli's blue where something is picked
     (#1f7ae0 for large type and rings, 4.0:1 on the paper; the deeper #1661c4 for small text); their pale tints; the
     benefit pills' green; the advent red; the sand of the home's bands */
  --ink-strong: #17150f;
  --blue: #1f7ae0;
  --blue-deep: #1661c4;
  --blue-tint: #eaf3fe;
  --blue-tint-line: rgba(31, 122, 224, .22);
  --blue-edge: #cfe2f8;
  --green: #15803d;
  --green-tint: #eef7f1;
  --green-ink: #2f3d33;
  --red: #d5342a;
  --sand: #f3efe7;
  --maxw: 1000px;
}

* { box-sizing: border-box; }
/* The paper colour lives on <html>, not just <body>, so the very first paint of
   a page is already cream. Without it the browser shows its default white until
   <body> is styled, which reads as a flash between two cream pages. */
/* overflow-x on BOTH: the rotated sticker sheet overhangs by a few pixels, and
   `overflow-x: hidden` on body alone does not always stop iOS Safari letting
   the page drag sideways. */
html { -webkit-text-size-adjust: 100%; background: var(--paper); overflow-x: hidden; }

* { -webkit-tap-highlight-color: transparent; }
html {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
a, button, .btn, [role="button"], :focus, :focus-visible { outline: none; }

/* ✍️ Selection is OFF everywhere by default (above), because the home page is a
   tap-first layout and a stray drag there selects half a card. The help centre
   is the opposite: it is prose people quote to a colleague, paste into a search
   box, or copy a settings path out of. So those pages opt back IN with
   body.selectable, and only for text. Images and video keep their own
   user-select:none below, so this does not reopen drag-to-save.
   ⚠️ Add the class to the <body> of a help page, not to shared.css, or the
   landing page starts selecting again. */
body.selectable, body.selectable * {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
body.selectable img, body.selectable video { -webkit-user-select: none; user-select: none; }
/* A soft wash rather than the browser's flat blue, which fights the cream. No
   transition: ::selection cannot animate, so the grace has to come from the
   colour being quiet enough to sit under the text rather than over it. */
body.selectable ::selection {
  background: rgba(39, 70, 144, .17);
  color: var(--ink);
}
body.selectable ::-moz-selection {
  background: rgba(39, 70, 144, .17);
  color: var(--ink);
}

/* Video gets the same treatment as images: no drag-to-desktop, no long-press
   "Save" sheet on iOS, and pointer-events:none means there is no right-click
   menu to save from either. Worth being clear that this removes the easy ways
   out, not every way — anything the browser plays has been downloaded already,
   and devtools or the network tab still reach it. */
img, video {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
/* ⚠️ pointer-events:none is NOT enough on its own for video. A long press on
   a phone still resolved to the <video> underneath and offered "Save video",
   because the touch is hit-tested against the media element regardless. Any
   card holding a video therefore covers it with .shield — a plain empty div
   that is what the finger actually lands on. Keep the shield above the video
   in z-order or the save sheet comes back. */
.shield {
  position: absolute; inset: 0; z-index: 5;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The page vignette, painted on the DOCUMENT rather than on a viewport-sized
   fixed layer. A fixed overlay cannot win here: Chrome on Android lays fixed
   elements out against the LAYOUT viewport, which keeps the size it had while
   the URL bar was showing, so the strip revealed when that bar collapses is
   covered by nothing at all. It reads as a pale bar sliding across mid-scroll,
   and no amount of vh/lvh/dvh height fixes it, because the containing block is
   the problem, not the height. Anchored to the page like this, there is no
   layer to re-measure and nothing to flash. */
body {
  background-image: radial-gradient(120% 60% at 50% 0%, transparent 55%, rgba(51, 47, 39, 0.05));
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; position: relative; z-index: 1; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

.perf { border: 0; border-top: 1.5px dashed var(--line-strong); margin: 0; opacity: 0.38; }

/* ── header ── */
header { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 14px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 11px; line-height: 1; color: var(--ink); text-decoration: none; }
a.brand, a.brand:hover, a.brand:focus, a.brand:visited { color: var(--ink); text-decoration: none; }
.brand .mk {
  width: 34px; height: 34px; border-radius: 26%; object-fit: cover; display: block; flex: none;
  box-shadow: 2px 2px 0 rgba(51, 47, 39, 0.14);
}
.brand .wordmark { font-weight: 700; font-size: 26px; letter-spacing: -0.01em; display: block; transform: translateY(1px); color: var(--ink); }
/* The wordmark is the drawn one (assets/wordmark.svg), painted through a mask so
   it takes its colour from whatever it sits in: ink in the masthead, the muted
   grey below in the footer. Sized in em, so it keeps following the font-size
   rules that were already here (26px masthead, 23px on a phone, 19px inline in
   the footer) and lands at exactly the ink height the text had: "Atli" set in
   Comic Neue Bold at 26px measures 17.75px tall, which is 0.683em, and the
   drawing's own aspect is 1112:544.
   ⚠️ The word stays in the DOM and is only pushed out of view, so screen readers
   and search engines still read "Atli"; @supports means a browser without masks
   keeps the text rather than showing an empty box. */
@supports ((-webkit-mask-image: url("/assets/h/wordmark.fdaa30c3.svg")) or (mask-image: url("/assets/h/wordmark.fdaa30c3.svg"))) {
  .brand .wordmark {
    width: 1.3955em; height: 0.6827em;
    background-color: currentColor;
    -webkit-mask: url("/assets/h/wordmark.fdaa30c3.svg") no-repeat left center / contain;
            mask: url("/assets/h/wordmark.fdaa30c3.svg") no-repeat left center / contain;
    text-indent: -200vw; overflow: hidden; white-space: nowrap;
  }
  /* Quieter downstairs: the footer lockup is a signature, not a heading. */
  footer .brand .wordmark { background-color: var(--ink-soft); opacity: 0.72; }
}
.brand small { color: var(--ink-soft); font-weight: 400; font-size: 15px; }
.top-links { display: flex; align-items: center; gap: 20px; }
.top-nav { font-weight: 700; font-size: 15.5px; color: var(--navy); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; transition: border-color .15s, color .15s; }
.top-nav:hover { border-color: var(--navy); }
.top-cta { font-weight: 700; font-size: 16px; color: var(--navy); border-bottom: 2px solid transparent; padding-bottom: 2px; }
.top-cta:hover { border-color: var(--navy); }
/* WhatsApp's own darker green, a shade deeper so the word reads at 5:1 on the paper (#128c3e was 3.9:1) */
.top-cta-wa { color: #0e7834; }
.top-cta-wa:hover { border-color: #0e7834; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: inherit; font-weight: 700; font-size: 18px;
  padding: 14px 24px; border-radius: 12px; border: 2px solid var(--ink); cursor: pointer; transition: transform .12s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-tg { background: linear-gradient(180deg, #2AABEE 0%, #229ED9 100%); color: #fff; border-color: #1a7fae; box-shadow: 3px 3px 0 var(--ink); }
.btn-wa { background: #25d366; color: #06351a; border-color: #128c3e; box-shadow: 3px 3px 0 var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; margin-bottom: 24px; }
@media (max-width: 580px) {
  .cta-row { flex-wrap: nowrap; gap: 10px; width: 100%; max-width: 440px; margin-top: 18px; margin-bottom: 18px; }
  .cta-row .btn { flex: 1 1 0; min-width: 0; padding: 13px 12px; font-size: 15.5px; justify-content: center; text-align: center; white-space: nowrap; gap: 8px; }
  .cta-row .btn svg { width: 18px; height: 18px; }
}

/* ── referral discount banner ── */
.ref-banner {
  background: #fff3c4;
  border-bottom: 2px solid var(--ink);
  padding: 8px 36px 8px 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  box-shadow: 0 3px 6px rgba(51, 47, 39, 0.08);
  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 14.5px;
  line-height: 1.4;
  animation: slideDown .25s ease-out;
}
body.has-ref-banner {
  padding-top: 42px;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.ref-banner-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}
.ref-badge {
  background: #ffcc00;
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.ref-code-tag {
  background: rgba(51, 47, 39, 0.09);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13.5px;
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--navy);
  cursor: pointer;
  border: 1.5px dashed rgba(51, 47, 39, 0.35);
  transition: all 0.15s ease;
  user-select: all;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 4px;
  vertical-align: middle;
}
.ref-code-tag:hover {
  background: rgba(51, 47, 39, 0.16);
  border-color: var(--ink);
  transform: translateY(-1px);
}
.ref-code-tag:active {
  transform: scale(0.96);
}
.ref-code-tag.copied {
  background: #d4edda;
  color: #155724;
  border-color: #28a745;
  border-style: solid;
}
.ref-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  opacity: 0.5;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.ref-close:hover {
  opacity: 1;
  background: rgba(51, 47, 39, 0.08);
}
.ref-close:active {
  transform: translateY(-50%) scale(0.92);
}
.ref-badge-dt { display: inline; }
.ref-badge-mob { display: none; }
.ref-msg-dt { display: inline; }
.ref-msg-mob { display: none; }
@media (max-width: 580px) {
  body.has-ref-banner {
    padding-top: 36px;
  }
  .ref-badge-dt { display: none; }
  .ref-badge-mob { display: inline; }
  .ref-msg-dt { display: none; }
  .ref-msg-mob { display: inline; }
  .ref-banner {
    padding: 7px 30px 7px 10px;
    font-size: 13px;
    line-height: 1.35;
  }
  .ref-close {
    right: 6px;
    font-size: 17px;
    padding: 3px 5px;
  }
  .ref-banner-inner {
    gap: 5px 8px;
  }
  .ref-badge {
    font-size: 11px;
    padding: 2px 6px;
  }
  .ref-code-tag {
    font-size: 12.5px;
    padding: 1px 5px;
  }
}

/* ── footer ── */
footer { padding: 36px 0 48px; }
/* The language menu opens upward out of the footer, so the footer has to
   out-rank the page art above it. `.wrap` is position:relative with z-index 1,
   which makes every footer a stacking context of its own: a decorative image
   sitting in the root context at z-index 3 (help.html's curious Atli) would
   otherwise paint straight over an open menu, whatever z-index the menu has. */
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; align-items: center; color: var(--ink-soft); font-size: 14px; z-index: 20; }
footer nav { display: flex; gap: 16px 22px; flex-wrap: wrap; align-items: center; }

/* "Web app" sits beside the chat buttons but must not compete with them: this
   site's promise is buying inside the chat, and heyatli.com is the other door
   for people who would rather use a browser. Named like the two apps next to
   it, because that is what it is. */
.top-web { color: var(--navy); text-decoration: none; font-size: 15.5px; font-weight: 700; border-bottom: 2px solid transparent; padding-bottom: 2px;
  align-self: center; white-space: nowrap; transition: border-color .15s; }
.top-web:hover { border-color: var(--navy); }
/* ── Mobile header navigation ── */
.top-menu-btn {
  display: none;
  background: var(--paper-card);
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
  box-shadow: 2px 2px 0 rgba(51, 47, 39, 0.12);
  transition: background 0.18s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
  z-index: 101;
}
/* hover only where there is a pointer: on a phone a tap left the button in its hover dress, a navy edge */
@media (hover: hover) {
  .top-menu-btn:hover {
    background: var(--paper-deep);
    border-color: var(--navy);
  }
}
.top-menu-btn:active {
  transform: scale(0.93);
}
.top-menu-btn .menu-bar {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
  transform-origin: center;
}
.top-menu-btn[aria-expanded="true"] .bar-top {
  transform: translateY(6.5px) rotate(45deg);
}
.top-menu-btn[aria-expanded="true"] .bar-mid {
  opacity: 0;
  transform: scaleX(0);
}
.top-menu-btn[aria-expanded="true"] .bar-bot {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 210px;
  background: var(--paper-card);
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(51, 47, 39, 0.14), 0 3px 8px rgba(51, 47, 39, 0.08);
  padding: 8px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.18s;
  pointer-events: none;
}
.mobile-nav-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.24s;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-item {
  display: block;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.mobile-nav-item:hover, .mobile-nav-item:focus {
  background: var(--paper-deep);
  color: var(--navy);
}
/* HeyAtli.com leaves this site for the store, so it gets its own, brighter
   blue (5.1:1 on the card) and sits under a hairline. The line is drawn
   separately: a border on the rounded item curved up at both ends. */
.mobile-nav-item.mobile-nav-web {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 9px;
  color: var(--navy);
}
/* The phone menu's words are one dark blue. Get the App and Holiday Surprises keep their colour in their icons only: the
   store mark in the brighter blue, the gift in red (its row's red comes from a style the page writes, hence html). */
.mobile-nav-web .mnav-marks { color: #2466c9; }
html .mobile-nav-item.adv-nav, html .mobile-nav-item.adv-nav:is(:hover, :focus, :active, [aria-current="page"]) { color: var(--navy); }
html .mobile-nav-item.adv-nav .adv-gift { color: #c8443a; }
/* The store bag, the same drawing as the "Also available on HeyAtli Store" row. */
.mobile-nav-web .mnav-ico { width: 16px; height: 16px; flex: none; }
.mobile-nav-item.mobile-nav-web::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: -5px;
  height: 1px;
  background: rgba(51, 47, 39, 0.1);
}
.mobile-nav-item.mobile-nav-web:hover, .mobile-nav-item.mobile-nav-web:focus {
  color: #1d56ad;
}
/* The Atli app leads the same group, above HeyAtli.com, behind the App Store and Google
   Play marks; one hairline sits over the pair, so the second link drops its own. */
.mobile-nav-item.mobile-nav-web + .mobile-nav-web { margin-top: 0; }
.mobile-nav-item.mobile-nav-web + .mobile-nav-web::before { content: none; }
/* The marks and the bag sit at the end of their rows, so every label in the menu starts on
   the same edge (the left one, the right one in Arabic). */
.mobile-nav-web .mnav-ico, .mobile-nav-web .mnav-marks { order: 1; margin-inline-start: auto; }
.mnav-marks { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.mnav-marks svg { width: auto; height: 16px; }
.mnav-marks .apple { color: var(--ink); }
/* WhatsApp and Telegram lead to their pages; their marks sit at the end of the row with the others, in the ink of the
   store's */
.mobile-nav-item.mnav-chat { display: flex; align-items: center; gap: 10px; }
.mnav-chat .mnav-marks { order: 1; margin-inline-start: auto; color: var(--ink); }

/* ⚠️ Russian needs more horizontal room: collapse navigation into menu/hamburger sooner (<= 720px) */
@media (max-width: 720px) {
  html[lang="ru"] .top-nav-links,
  :lang(ru) .top-nav-links {
    display: none !important;
  }
  html[lang="ru"] .top-menu-btn,
  :lang(ru) .top-menu-btn {
    display: flex;
  }
  html[lang="ru"] .mobile-nav-panel,
  :lang(ru) .mobile-nav-panel {
    display: block;
  }
}

/* ⚠️ The masthead does not wrap and does not shrink, and on a 390px phone it
   overflowed in EVERY language: English by about 5px, Polish ("Aplikacja
   webowa") by nearly 80. The third link is both the longest and the least
   essential of the three, and it still sits in the footer of every page, so
   the phone keeps the two chat channels and loses nothing. */
@media (max-width: 560px) {
  header { padding: 20px 0 12px; }
  .top-links { gap: 14px; }
  .top-nav-links { display: none !important; }
  .top-nav { font-size: 14.5px; }
  .top-cta { font-size: 15px; }
  .top-web { display: none; }
  .top-menu-btn { display: flex; }
  .mobile-nav-panel { display: block; }
  .brand .wordmark { font-size: 23px; }
  .brand .mk { width: 30px; height: 30px; }
}

/* 🗂 Footer columns. It used to be four undifferentiated rows of blue links,
   8 nav items then 4 help links then 15 destinations, with nothing telling the
   reader what any row was. Titled columns, the way every competitor does it. */
footer .fcols { display: grid; width: 100%; gap: 30px 34px;
  grid-template-columns: minmax(150px, 1fr) 2.1fr 1.8fr auto; align-items: start; }
footer .fhead { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink); opacity: .75; }
footer .fcol nav { display: flex; flex-direction: column; gap: 8px; }
footer .fcol:not(.fcol-brand) .fhead::after { display: none; }
/* ⚠️ text-decoration, NOT border-bottom. The destination links are display:block
   so they can flow down a column, and a border on a block element spans the
   whole column, not the words: every hover drew a rule across the footer, and
   "All destinations" (column-span: all) drew one across both columns. An
   underline follows the text. */
footer .fcol nav a, footer .fcol .fnav a { color: var(--ink-soft); text-decoration: none;
  align-self: start; font-size: 14px; }
footer .fcol nav a:hover { text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1px; }

/* 14 destinations would be a very tall column on its own, so it runs two wide.
   ⚠️ CSS columns, not a grid. In a grid one long name ("eSIM United Arab
   Emirates") wraps to two lines and stretches its whole ROW, leaving a hole
   beside it. Columns let each item take the height it needs and flow on. */
footer .fcol-dests nav { display: block; columns: 2; column-gap: 26px; }
footer .fcol-dests nav a { display: block; margin-bottom: 8px; break-inside: avoid; }
footer .fcol-dests nav a[data-i18n="alldest"],
footer .helplinks a[href="./help"],
footer .helplinks a[href="/help"],
footer .helplinks a[href$="/help"] { column-span: all; margin-top: 4px;
  font-size: 14px; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 5px; }
footer .fcol-dests nav a[data-i18n="alldest"]::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 9px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.2 1.5L4.5 4.5L1.2 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.2 1.5L4.5 4.5L1.2 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
  flex: none;
}
/* "All destinations" and "View all help" share one chevron (this 6x9 mask; the help link's own SVG steps aside), one gap
   and one hover: the words underline, the chevron slides 3px, mirrored right to left */
footer .helplinks a[href$="/help"] > .chev-ico { display: none; }
footer :is(.fcol-dests nav a[data-i18n="alldest"], .helplinks a[href$="/help"])::after { content: ""; display: inline-block; width: 6px; height: 9px; flex: none; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.2 1.5L4.5 4.5L1.2 7.5'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.2 1.5L4.5 4.5L1.2 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .25s cubic-bezier(.2,.8,.2,1); }
[dir="rtl"] footer :is(.fcol-dests nav a[data-i18n="alldest"], .helplinks a[href$="/help"])::after { transform: scaleX(-1); }
@media (hover: hover) {
  footer :is(.fcol-dests nav a[data-i18n="alldest"], .helplinks a[href$="/help"]):hover::after { transform: translateX(3px); }
  [dir="rtl"] footer :is(.fcol-dests nav a[data-i18n="alldest"], .helplinks a[href$="/help"]):hover::after { transform: scaleX(-1) translateX(3px); }
}
@media (prefers-reduced-motion: reduce) { footer :is(.fcol-dests nav a[data-i18n="alldest"], .helplinks a[href$="/help"])::after { transition: none; } }

/* Soft rounded chevrons for FAQ accordions */
.faq summary .chev {
  display: inline-block;
  width: 9px;
  height: 14px;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background-color: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2.5L6.5 7L2 11.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2.5L6.5 7L2 11.5'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1);
  flex: none;
}
.faq details[open] summary .chev {
  transform: rotate(90deg);
}
.faq .ico svg { width: 17px; height: 17px; stroke: var(--navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-meta-icon, .sc-meta-line svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--navy); }


footer .fcol-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
/* the last line on the page: Atli's sign-off, blue heart on purpose */
footer .fmade { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); }   /* as quiet as Privacy and Terms beside it */
@media (max-width: 620px) { footer .fmade { margin-left: 0; width: 100%; } }
/* logo left, language right, on one row */
/* Brand and language picker travel together. In the column footer the row is
   the full column width so the picker sits at its right edge; on terms and
   privacy, whose footer is one flex line, the pair is a single item so the
   picker cannot wrap onto an orphan line of its own below the legal row. */
footer .fbrand-row { display: flex; align-items: center; gap: 12px; }
footer .fcol-brand .fbrand-row { justify-content: space-between; width: 100%; }

/* Atli's own accounts as little paper stickers under the logo: the same ink
   border and hard shadow as the buttons. Plain links with inline icons, so no
   embeds and no third-party scripts. Four across under the logo on desktop, one
   row once the brand column spans the footer. */
footer .fsocial { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 2px 0 0; padding: 0; max-width: 146px; }
footer .fsocial li { margin: 0; padding: 0; }
/* plain marks at every width, no tile: each keeps a tap-sized box, faded like the footer wordmark (.72) so they sit back,
   full strength and the network's own colour under a pointer or on focus. On a phone the boxes stand edge to edge, so all
   seven fit one line from 360px wide */
footer .fsocial a { display: grid; place-items: center; width: 38px; height: 38px; box-sizing: border-box;
  background: none; color: var(--ink); border: 0; border-radius: 10px; box-shadow: none; }
footer .fsocial a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
footer .fsocial svg { width: 18px; height: 18px; fill: currentColor; display: block; }
footer .fsocial a { opacity: .72; transition: color .15s, opacity .15s; }
footer .fsocial a:hover, footer .fsocial a:focus-visible { opacity: 1; }
footer .fsocial a[href*="instagram.com"]:is(:hover, :focus-visible, :active) { color: #E4405F; }
footer .fsocial a[href*="tiktok.com"]:is(:hover, :focus-visible, :active), footer .fsocial a[href^="https://x.com"]:is(:hover, :focus-visible, :active), footer .fsocial a[href*="medium.com"]:is(:hover, :focus-visible, :active) { color: #000; }
footer .fsocial a[href*="youtube.com"]:is(:hover, :focus-visible, :active) { color: #FF0000; }
footer .fsocial a[href*="facebook.com"]:is(:hover, :focus-visible, :active) { color: #0866FF; }
footer .fsocial a[href*="linkedin.com"]:is(:hover, :focus-visible, :active) { color: #0A66C2; }
/* the Help footer is one line, so its icons run in one row too */
footer .fsocial-row { max-width: none; }
@media (max-width: 900px) { footer .fsocial { max-width: none; margin-inline-start: -10px; } }
@media (max-width: 560px) {
  footer .fcol-brand { flex-wrap: wrap; }
  footer .fsocial { width: 100%; gap: 6px 0; padding: 2px 0 14px; margin-inline-start: -20px; }
  footer .fsocial a { width: 44px; height: 44px; }
  footer .fsocial svg { width: 22px; height: 22px; }
}
/* The app under the stickers: the two store badges with each store's own words in the page's language,
   in the button dress (white, ink edge, hard ink shadow), at full strength because they are a way in.
   Each opens its store, like the hero's badges; the "Atli app" link in the Atli column stays on app.heyatli.com.
   Stacked under the stickers on desktop, side by side once the brand column spans the footer; a phone
   sees only its own store, a computer or a phone we cannot tell sees both. */
footer .fapp { display: flex; flex-wrap: wrap; gap: 10px; }
footer .fbadge { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; box-sizing: border-box; padding-block: 4px; padding-inline: 12px 16px;
  background: #fff; color: #000; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 2px 3px 0 var(--ink); text-decoration: none;
  font-family: var(--font-system);
  transition: transform .12s, box-shadow .12s; }
footer .fbadge:hover { transform: translate(-1px, -1px); box-shadow: 3px 4px 0 var(--ink); }
footer .fbadge:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--ink); }
footer .fbadge:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
footer .fbadge .sb-mark { width: auto; height: 22px; flex: none; }
footer .fbadge.sb-play .sb-mark { height: 21px; }
footer .fbadge .sb-text { display: flex; flex-direction: column; align-items: flex-start; }
footer .fbadge .sb-small { font-size: 10.5px; line-height: 1.15; font-weight: 500; letter-spacing: .01em; }
footer .fbadge.sb-play .sb-small { font-size: 9.5px; letter-spacing: .05em; }
footer .fbadge .sb-name { font-size: 17px; line-height: 1.1; font-weight: 500; letter-spacing: -.02em; }
html.os-ios footer .fbadge.sb-play, html.os-android footer .fbadge:not(.sb-play) { display: none; }
@media (min-width: 901px) { footer .fapp { flex-direction: column; align-items: flex-start; margin-top: 4px; } }
@media (max-width: 560px) { footer .fapp { width: 100%; margin-top: -6px; padding-bottom: 18px; } }
/* 📷 A computer gets the app by camera: in place of the two badges, a last column "Get the Atli app" (a heading like the
   others, on the same line) over a light box with the code and the two stores (phones and tablets keep their store's
   badge, which they can tap). The code opens app.heyatli.com: the app where it is installed, otherwise a page with that
   phone's store; a click on a computer goes there too. App Store and Google Play go straight to the stores, like the
   badges. The code was made with the Atli QR generator (Rounded dots, Rounded corners, the ink, Atli in the middle).
   Destinations get a little less room than Help Centre, still keeping "eSIM United Kingdom" on one line. */
footer .fapp-card { display: none; }
/* a computer is a wide screen with a pointer that hovers: an iPad's touch screen is not one, even on pages that do not
   run the home page's phone check (html.os-ios / os-android) */
@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  html:not(.os-ios):not(.os-android) footer .fcols:has(.fapp-card) { grid-template-columns: max-content minmax(0, 1.3fr) minmax(0, 1fr) max-content 196px; gap: 30px 22px; }
  html:not(.os-ios):not(.os-android) footer .fcols:has(.fapp-card) .fcol-dests nav { column-gap: 12px; }
  html:not(.os-ios):not(.os-android) footer .fcols:has(.fapp-card) .fapp { display: none; }
  html:not(.os-ios):not(.os-android) footer .fcols:has(.fapp-card) .fcol-brand { gap: 14px; }
  html:not(.os-ios):not(.os-android) footer .fcols:has(.fapp-card) .fsocial { margin-top: 0; }
  /* the code is the way to the app here, so the Atli column's "Atli app" link steps aside (phones and tablets keep it) */
  html:not(.os-ios):not(.os-android) footer .fcols:has(.fapp-card) .fnav a[data-i18n="atliapp"] { display: none; }
  html:not(.os-ios):not(.os-android) footer .fapp-card { display: block; }
}
/* the copyright shows on computers; the destinations and social icons the help centre, articles, legal pages and
   calculator borrow from the home footer for the computer layout (scripts/i18n/desktop-footer.mjs) stay off below */
footer .fcopy { display: none; }
@media (max-width: 900px) { footer .fdesk-part { display: none !important; } }
footer .fac-h h3 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: .75; text-align: center; }
footer .fac-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 10px 10px;
  background: var(--paper-card); border: 1px solid rgba(51, 47, 39, .1); border-radius: 14px; }
footer .fac-qr { display: block; border-radius: 8px; transition: opacity .15s; }
footer .fac-qr img { display: block; width: 120px; height: 120px; }
footer .fac-qr:hover { opacity: .8; }
footer .fac-qr:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
footer .fac-stores { display: flex; justify-content: center; gap: 12px; }
footer .fac-stores a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); text-decoration: none; font-size: 12px; white-space: nowrap; }
footer .fac-stores a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
footer .fac-stores svg { height: 13px; width: auto; flex: none; }

/* ⚠️ The footer keeps the SITE width, not the page's reading width. help, terms
   and privacy narrow .wrap to 800px so long prose has a comfortable measure,
   and that was squeezing the footer's four columns on /help: "eSIM United
   States", "eSIM South Korea" and "Will it work on my device?" each wrapped to
   two lines there and sat on one line on the home page. The footer is the same
   furniture on every page, so it gets the same 1000px everywhere.
   Specificity (0,1,1) beats the pages' own .wrap rule (0,1,0), whatever the
   load order. */
footer .wrap { --maxw: 1000px; max-width: var(--maxw); }

/* ⚖️ Legal, deliberately quiet. Privacy and Terms used to sit level with
   WhatsApp, Telegram and Support, which gave two pages nobody browses the same
   weight as the two the whole product runs on. They still have to be one click
   away, so they get their own hairline row under the columns: smaller, dimmer,
   and out of the way of the links people actually want. */
footer .flegal { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%;
  margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(31,41,72,.09); }
footer .flegal a { color: var(--ink-soft); font-size: 12.5px;
  text-decoration: none; }
footer .flegal a:hover { opacity: 1; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 560px) {
  footer .flegal { margin-top: 20px; gap: 6px 14px; }
}
/* computers: the footer reads in the plain face at 12px; phones keep the hand. The plain bold steps down
   to 600: at the same size it looks a weight heavier than the hand. The social icons drop their tiles: plain marks,
   faded until a pointer or Tab reaches them, four to a row within the width of the logo row above them. */
@media (min-width: 901px) {
  footer { font-family: var(--font-plain); }
  footer .fsocial { gap: 14px 18px; max-width: 132px; margin-top: 6px; }
  footer .fsocial-row { max-width: 132px; }
  footer .fsocial a, footer .fsocial a:hover, footer .fsocial a:active { width: auto; height: auto; border: 0; border-radius: 4px; background: none;
    box-shadow: none; transform: none; }
  footer .fsocial a { opacity: .72; }
  footer .fsocial svg { width: 19px; height: 19px; }
  footer .fsocial a { transition: color .15s, opacity .15s; }
  footer .fsocial a[href*="instagram.com"]:is(:hover, :focus-visible) { color: #E4405F; }
  footer .fsocial a[href*="tiktok.com"]:is(:hover, :focus-visible), footer .fsocial a[href^="https://x.com"]:is(:hover, :focus-visible), footer .fsocial a[href*="medium.com"]:is(:hover, :focus-visible) { color: #000; }
  footer .fsocial a[href*="youtube.com"]:is(:hover, :focus-visible) { color: #FF0000; }
  footer .fsocial a[href*="facebook.com"]:is(:hover, :focus-visible) { color: #0866FF; }
  footer .fsocial a[href*="linkedin.com"]:is(:hover, :focus-visible) { color: #0A66C2; }
  footer .fbrand-row { gap: 20px; }
  footer .fbrand-row .langpick { top: 2.5px; }
  footer .langpick > summary { font-weight: 500; }
  footer .fcol nav a, footer .fcol .fnav a { font-size: 12px; }
  footer .fhead { font-size: 12px; font-weight: 600; }
  /* one top line: every heading is as tall as the logo row, so its words centre on the logo and every column's first
     row starts on the same line */
  footer .fhead, footer .fac-h h3 { line-height: 27px; margin-bottom: 4px; }
  footer .fcol-dests nav a[data-i18n="alldest"],
  footer .helplinks a[href="./help"],
  footer .helplinks a[href="/help"],
  footer .helplinks a[href$="/help"] { font-size: 12px; font-weight: 600; }
  footer .flegal a, footer .fmade { font-size: 12px; }
  /* "© 2026 Atli" at the start, Privacy and Terms at the end: the push sits on Privacy, whose direction is the page's, so
     the row mirrors in Arabic while the copyright itself reads left to right (dir="ltr"); in the lightest grey that
     still reads 4.5:1 */
  footer .flegal .fcopy { display: inline; font-size: 12px; }
  footer .flegal .fcopy + a { margin-inline-start: auto; }
  footer .flegal a, footer .flegal .fcopy { color: color-mix(in srgb, var(--ink-soft) 85%, transparent); }
  /* the help centre's, the articles' and the legal pages' one-line footer is the tablet footer; a computer shows the columns */
  footer .fdesk-nav { display: none; }
  /* the legal pages' Atli column lists "Home" and "Data calculator" for phones; a computer shows the home's seven links
     (the logo goes home; the calculator stays off computers, as it was) */
  footer .fnav a[href="./"], footer .fnav a[data-i18n="calclink"] { display: none; }
  /* the help centre's and legal pages' one-line footer and the calendar's set their own sizes in their own styles */
  html body footer .fdesk-nav a, html .adv footer .adv-foot-desk a { font-size: 12px; }
}

/* -- language picker --
   Collapsed to just the current language so the footer row never wraps (the
   longer translated link labels used to push it onto its own line). Native
   <details>, so it needs no JavaScript and stays keyboard + screen-reader
   friendly. Anchored popover overlay: opens upward out of the footer so
   footer height never changes, links never shift, and no blank space is
   created below the page. */
.langpick { position: relative; font-size: 14px; }
.langpick > summary {
  list-style: none; cursor: pointer; color: var(--navy); white-space: nowrap;
  padding: 2px 6px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease;
}
.langpick > summary .globe {
  width: 15px; height: 15px; flex: none; display: block;
  transform: translateY(-1px);
}
.langpick > summary::-webkit-details-marker { display: none; }
.langpick > summary::marker { content: ""; }
.langpick > summary:hover { background: rgba(39, 70, 144, 0.08); }
.langpick[open] > summary { background: rgba(39, 70, 144, 0.12); color: var(--navy); }
.langpick .langmenu {
  position: absolute; left: -40px; right: auto; bottom: calc(100% + 8px); top: auto; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px;
  width: 195px; box-sizing: border-box; padding: 5px; white-space: nowrap;
  background: var(--paper-card); border: 1.5px solid var(--ink); border-radius: 9px;
  box-shadow: 0 4px 14px rgba(51, 47, 39, 0.1), 0 1px 3px rgba(51, 47, 39, 0.06);
  overflow: visible;
}
.langpick .langmenu::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: var(--notch-x, 93px);
  width: 7px;
  height: 7px;
  background: var(--paper-card);
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.langpick[open] .langmenu {
  animation: langMenuIn .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.langpick.drop-down[open] .langmenu,
.langpick[open] .langmenu.drop-down {
  animation: langMenuInDown .2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes langMenuIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes langMenuInDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.langpick.drop-down .langmenu,
.langpick .langmenu.drop-down {
  bottom: auto; top: calc(100% + 8px);
}
.langpick.drop-down .langmenu::after,
.langpick .langmenu.drop-down::after {
  bottom: auto;
  top: -5px;
  border-right: none;
  border-bottom: none;
  border-left: 1.5px solid var(--ink);
  border-top: 1.5px solid var(--ink);
}
.langpick.drop-up .langmenu,
.langpick .langmenu.drop-up {
  top: auto; bottom: calc(100% + 8px);
}
.langpick .langmenu a,
.langpick .langmenu strong {
  min-height: 25px; height: 25px; padding: 0 2px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  border-radius: 4px; text-align: center;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none !important; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, transform .12s ease;
}
.langpick .langmenu a {
  color: var(--navy);
  opacity: 0.8;
  text-decoration: none !important;
}
.langpick .langmenu a:hover,
.langpick .langmenu a:focus {
  background: rgba(39, 70, 144, 0.06);
  color: var(--navy);
  opacity: 1;
  text-decoration: none !important;
}
.langpick .langmenu a:active {
  background: rgba(39, 70, 144, 0.12);
  transform: scale(0.96);
  text-decoration: none !important;
}
.langpick .langmenu strong {
  color: var(--navy);
  background: rgba(39, 70, 144, 0.12);
  font-weight: 700;
  cursor: default;
}

@media (max-width: 900px) {
  footer .fcols { grid-template-columns: 1fr 1fr; gap: 26px; }
  footer .fcol-brand { grid-column: 1 / -1; }
}
@media (min-width: 561px) {
  footer .fhead { pointer-events: none; }
  footer .fcol:not(.fcol-brand):not(.fcol-dests) nav { display: flex !important; }
  footer .fcol-dests nav { display: block !important; }
}
@media (max-width: 560px) {
  footer {
    padding: 16px 0 32px !important;
  }
  footer .wrap {
    gap: 0;
  }
  footer .fcols {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
  }
  footer .fcol-brand {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(31, 41, 72, .08);
  }
  footer .fcol-brand .fbrand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
  }
  footer .fcol:not(.fcol-brand) {
    border-bottom: 1px solid rgba(31, 41, 72, .08);
  }
  footer .fcol:not(.fcol-brand) .fhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    min-height: 56px;
    padding: 16px 0;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  footer .fcol:not(.fcol-brand) .fhead:hover { opacity: 1; }
  footer .fcol:not(.fcol-brand) .fhead:focus-visible { outline: none; color: var(--navy); opacity: 1; }
  footer .fcol:not(.fcol-brand) .fhead::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 12px;
    background-color: var(--navy);
    opacity: 0.5;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2.5L6.5 7L2 11.5'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 2.5L6.5 7L2 11.5'/%3E%3C/svg%3E") no-repeat center / contain;
    transform: rotate(90deg);
    transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1), opacity .18s ease;
    flex: none;
  }
  footer .fcol.open .fhead::after {
    transform: rotate(-90deg);
    opacity: 0.95;
  }
  footer .fcol:not(.fcol-brand):not(.open) nav {
    display: none !important;
  }
  footer .fcol:not(.fcol-brand).open nav {
    padding-bottom: 16px;
    animation: fcolFadeIn .22s cubic-bezier(0.16, 1, 0.3, 1);
  }
  footer .fcol-dests.open nav {
    display: block !important;
    column-gap: 16px;
    font-size: 14px;
  }
  footer .fcol-dests nav a { margin-bottom: 7px; }
  footer .flegal {
    margin-top: 14px;
    padding-top: 0;
    border-top: 0;
    gap: 6px 16px;
  }

  /* -- 5-col x 3-row compact language picker popover -- */
  .langpick .langmenu {
    left: auto;
    right: 0;
    width: min(195px, calc(100vw - 24px));
    padding: 5px;
    gap: 3px;
  }
  .langpick .langmenu::after {
    left: var(--notch-x, calc(100% - 36px));
  }
}

@keyframes fcolFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 580px) and (min-width: 561px) {
  footer { padding: 24px 0 36px; }
  footer .wrap { gap: 14px; }
  footer nav { gap: 10px 16px; font-size: 14px; }
}

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

/* Soft chevrons for article breadcrumbs */
.crumbs span:not(:last-child):not(:first-child) {
  display: inline-block;
  width: 5px;
  height: 8px;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background-color: var(--ink-soft);
  opacity: 0.6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.2 1.5L4.5 4.5L1.2 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.2 1.5L4.5 4.5L1.2 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
  align-self: center;
}
@media (max-width: 560px) {
  .crumbs .crumb-sep, .crumbs span:not(:last-child):not(:first-child) {
    display: none !important;
  }
}

/* ── page transition ──
   No fade-in on arrival: starting every page at opacity 0 showed a blank frame on
   each click (the logo, the help breadcrumb). Same-site navigations crossfade
   instead where the browser supports it; elsewhere the new page simply appears.
   Help articles carry their own, shorter version of this. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
/* the masthead of the pages in Allo's look is the same on each of them, so a page change holds it still and crossfades only
   what changed under it (masthead.js lets one scrolled out of view, or left with a menu open, fade with the rest) */
header.hl-nav { view-transition-name: atli-masthead; }
::view-transition-group(atli-masthead) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ── tap feedback on touch screens ──
   A phone has no hover and the tap flash is off (top of this file), so a tapped link
   gave no sign it was pressed. While a finger is down, links, rows and chips fade to
   half (a filter, so it also shows on links that already sit at reduced opacity, and a
   tap's sticky :hover cannot undo it), a chevron nudges its way, and the bordered cards
   press into their shadow; on release they ease back. iOS applies :active only on a
   page that listens for touches, which assets/wa-link.js does (and the install guide,
   which does not load it). */
@media (hover: none) {
  :where(a[href], button, summary, [role="button"]) { transition: filter .18s ease-out; }
  html :where(a[href], button, summary, [role="button"]):active { filter: opacity(.5); transition: none; }
  html :is(.lane, .btn, .chat-btn, .pc, .st-app):active {
    filter: none; transform: translate(2px, 2px); box-shadow: none; transition: none;
  }
  /* The footer's social icons light up in their network's colour, at full strength, while a finger is down, the way
     a pointer shows them on a computer; on release they ease back, so a tap leaves no colour behind */
  html footer .fsocial a:active { filter: none; opacity: 1; transition: none; }
  html footer .fsocial a:hover:not(:active, :focus-visible) { color: var(--ink); opacity: .72; }
  /* The menu button stays put: its bars turning into an X are the feedback, and a
     press that moved the whole button read as a wiggle. */
  html .top-menu-btn:active { filter: none; transform: none; }
  html :is(a, button:not(.browse-toggle)):active .chev-ico, html .guide-link:active svg, html a.triage-row:active .triage-arr svg { transform: translateX(3px); transition: none; }
  html .crumbs a:active .crumb-arrow { display: inline-block; transform: translateX(-3px); }
}

/* 🕹 The footer's Play link carries a small gamepad after the word, drawn through a
   mask so it takes the link's colour and needs no markup in the 12 translated footers. */
.fnav a.fplay::after {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 5px; vertical-align: -2px; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='6' x2='10' y1='11' y2='11'/%3E%3Cline x1='8' x2='8' y1='9' y2='13'/%3E%3Cline x1='15' x2='15.01' y1='12' y2='12'/%3E%3Cline x1='18' x2='18.01' y1='10' y2='10'/%3E%3Cpath d='M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='6' x2='10' y1='11' y2='11'/%3E%3Cline x1='8' x2='8' y1='9' y2='13'/%3E%3Cline x1='15' x2='15.01' y1='12' y2='12'/%3E%3Cline x1='18' x2='18.01' y1='10' y2='10'/%3E%3Cpath d='M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ⬆ Back to the top, phones only: a round paper button that fades in while the page moves down, a
   screen and a half or more from the top, and out on a move up or once the page is still
   (assets/wa-link.js wires it; a page opts in by carrying #toTop in its footer). */
.totop {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper-card); color: var(--ink);
  box-shadow: 3px 4px 0 rgba(51, 47, 39, 0.16); cursor: pointer; padding: 0; display: none; align-items: center; justify-content: center;
  opacity: 0; translate: 0 14px; scale: 0.9; transition: opacity 0.25s ease, translate 0.3s cubic-bezier(.2,.8,.2,1), scale 0.3s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.totop svg { display: block; }
.totop.on { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; }
.totop:active { scale: 0.9; }
@media (max-width: 640px) { .totop:not([hidden]) { display: inline-flex; } }

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