/* Text pages: the guides, the guides list, About, the legal pages, the press kit and "page not found". base.css has
   the fonts, colours, top bar, footer and questions every page shares. */
:root { --measure: 64ch; }

.article { max-width: var(--measure); margin: 0 auto; padding: 40px 0 56px; line-height: 1.65; }
.article img { height: auto; display: block; }
.crumbs { font-size: 0.86rem; color: var(--on-surface-faint); margin: 0 0 18px; }
.crumbs a { color: var(--on-surface-faint); text-decoration: none; }
.article h1 { font-weight: 800; font-size: clamp(2rem, 6.5vw, 2.9rem); line-height: 1.04; margin: 0 0 20px; }
.article h2 { font-weight: 750; font-size: 1.5rem; line-height: 1.12; letter-spacing: -0.03em; margin: 2em 0 0.5em; }
.article h3 { font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; margin: 0 0 6px; }
.article .intro { font-size: 1.08rem; color: var(--on-surface-dim); margin: 0 0 8px; }
.byline { font-size: 0.88rem; color: var(--on-surface-faint); margin: 0 0 8px; }
.byline .nw { white-space: nowrap; }
.answer { font-size: 1.12rem; line-height: 1.6; border-inline-start: 3px solid var(--brand); padding-block: 4px; padding-inline-start: 18px; margin: 28px 0; }
.article p, .article li { color: var(--body-ink); }
/* A long word (German "Geschwindigkeitsbegrenzungen") breaks at a hyphen instead of running off a phone */
.article :is(h1, h2, h3, p, li) { overflow-wrap: break-word; hyphens: auto; }
/* English on the web isn't hyphenated ("hap-pens" reads as broken); names in links never are */
.article:lang(en) :is(h1, h2, h3, p, li), .article a { hyphens: manual; }
/* :where keeps this weak, so a list with its own class (.guide-list) sets its own padding */
.article :where(ul, ol) { padding-inline-start: 1.2em; }
.article li { margin: 0.35em 0; }
.article ol.steps-list { padding-inline-start: 1.3em; }
.article ol.steps-list > li { margin: 0.6em 0; }
.note-box { background: var(--box); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 1.4em 0; }
.note-box p:last-child { margin: 0; }
.long-code code { word-break: break-all; }
.not-found { text-align: center; padding: 96px 0; }

/* The closing band after the article */
.end-band { background: var(--box); padding-top: 80px; }
.end-band h2 { max-width: 14ch; }

/* A list of guides: the guides page and "Related guides" */
.guide-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); max-width: 760px; }
/* The guides page: a small heading over each topic's list */
.guide-topics h2 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 44px 0 8px; }
.guide-topics h2:first-child { margin-top: 28px; }
.guide-list a { display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px; border-bottom: 1px solid var(--line); color: var(--on-surface); text-decoration: none; font-weight: 600; }
.guide-list a:hover { color: var(--brand); }
.guide-list small { color: var(--on-surface-faint); font-weight: 400; white-space: nowrap; }

/* Pictures of the app inside a guide: one phone, two side by side (one above the other on narrow phones), a tablet */
.article .phone { margin: 28px auto 8px; width: min(260px, 70vw); padding: 8px; border-radius: 40px; background: linear-gradient(160deg, #2b3230, #151918); box-shadow: 0 0 0 1px #2f3634 inset, 0 40px 80px -30px rgba(53, 180, 135, 0.28), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.article .phone img { width: 100%; border-radius: 32px; aspect-ratio: 540 / 1200; object-fit: cover; object-position: top; background: #121514; }
.article .phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 28px 0 8px; }
.article .phones .phone { margin: 0; width: min(240px, 42vw); }
@media (max-width: 420px) { .article .phones .phone { width: min(260px, 70vw); } }
.article .tablet { margin: 28px auto 8px; width: min(640px, 100%); padding: 8px; border-radius: 24px; background: linear-gradient(160deg, #2b3230, #151918); box-shadow: 0 0 0 1px #2f3634 inset, 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.article .tablet img { width: 100%; border-radius: 16px; aspect-ratio: 1280 / 720; }
.article .shot-caption { text-align: center; color: var(--on-surface-faint); font-size: 0.86rem; margin: 0 0 24px; }

/* A comparison table in a guide: scrolls sideways inside itself on phones, never the page */
.article .table-wrap { overflow-x: auto; margin: 20px 0 6px; border: 1px solid var(--line); border-radius: 14px; }
.article table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.92rem; }
.article th, .article td { text-align: start; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { background: var(--box); font-weight: 600; color: var(--on-surface-dim); font-size: 0.82rem; }
.article tr:last-child td { border-bottom: 0; }

/* Press kit: logo tiles (each on the background it is made for) and a strip of screenshots */
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 18px 0; }
.press-tile { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #FFFFFF; color: #111816; text-decoration: none; font-size: 0.85rem; }
.press-tile img { width: 100%; height: 90px; object-fit: contain; }
.press-tile.press-dark { background: #121514; color: #E8ECEA; }
.press-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 18px 0; }
.press-shots img { width: 100%; border-radius: 14px; aspect-ratio: 540 / 1200; object-fit: cover; }

/* The About Magnet box ends with the install, where the reader is most interested */
.note-play { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--brand); }
