/* Shared style for the static support pages: help, privacy, terms, deletion. */
:root {
    color-scheme: light dark;
    --paper: #fbf8f6;
    --surface: #ffffff;
    --ink: #2a2321;
    --muted: #6f625d;
    --rule: #ebe2dd;
    --coral: #f8786f;
    --link: #b0443a;
    --note: #fdf0ec;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #171312;
        --surface: #201a19;
        --ink: #efe8e5;
        --muted: #a99f9b;
        --rule: #342b28;
        --link: #ff9a8f;
        --note: #2a1f1d;
    }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.65 var(--font);
    -webkit-text-size-adjust: 100%;
}
a { color: var(--link); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code { font-size: 0.92em; background: var(--note); padding: 1px 5px; border-radius: 4px; }

/* Header */
.site-header {
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--rule);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 650;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { color: var(--muted); font-weight: 450; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--coral); }

/* Single-column documents */
.doc {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 72px;
}
h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; letter-spacing: -0.025em; margin: 8px 0 16px; }
h2 { font-size: 23px; line-height: 1.3; letter-spacing: -0.015em; margin: 48px 0 12px; }
h3 { font-size: 17px; line-height: 1.4; margin: 28px 0 6px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
.lead { font-size: 18px; color: var(--muted); }

.site-footer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px;
    border-top: 1px solid var(--rule);
    font-size: 13px;
    color: var(--muted);
}

/* Platform notes and tables */
.platform-note {
    display: flow-root;
    background: var(--note);
    border-left: 3px solid var(--coral);
    padding: 10px 16px;
    margin: 14px 0;
    font-size: 15px;
    border-radius: 0 8px 8px 0;
}
table.limits {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}
table.limits th, table.limits td { border-bottom: 1px solid var(--rule); padding: 9px 10px; text-align: left; }
table.limits th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
table.limits td:not(:first-child), table.limits th:not(:first-child) { text-align: center; }

/* Store links */
.get-app {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 8px;
}
.store-link {
    display: inline-flex;
    flex-direction: column;
    padding: 9px 16px;
    border: 1px solid var(--rule);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    line-height: 1.25;
    min-width: 168px;
}
.store-link small { color: var(--muted); font-size: 12px; }
.store-link strong { font-size: 16px; }
.store-link:hover { border-color: var(--coral); }

/* Help page: sticky contents beside the article on wide screens */
.help-layout {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 200px minmax(0, 720px);
    gap: 56px;
}
.help-layout .doc { padding-left: 0; padding-right: 0; margin: 0; }
.toc {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100vh;
    overflow-y: auto;
    padding: 44px 0 24px;
    font-size: 14px;
}
.toc strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin: 0; counter-increment: toc; }
.toc a {
    display: block;
    padding: 4px 0 4px 12px;
    border-left: 1px solid var(--rule);
    color: var(--muted);
    text-decoration: none;
}
.toc a::before { content: counter(toc, decimal-leading-zero) "  "; font-variant-numeric: tabular-nums; opacity: 0.6; white-space: pre; }
.toc a:hover { color: var(--ink); border-left-color: var(--coral); }
.toc li.sub { counter-increment: none; }
.toc li.sub a { padding-left: 26px; font-size: 13px; }
.toc li.sub a::before { content: none; }

.help .doc { counter-reset: section; }
.help .doc h2[id] { counter-increment: section; }
.help .doc h2[id]::before {
    content: counter(section, decimal-leading-zero);
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--coral);
    font-variant-numeric: tabular-nums;
    margin-bottom: 2px;
}

.shot { float: right; width: 190px; margin: 4px 0 16px 28px; }
.shot img { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.08); }
.shot figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }
.clear { clear: both; }

details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary {
    cursor: pointer;
    font-weight: 600;
    padding: 12px 28px 12px 0;
    list-style: none;
    position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 20px; font-weight: 400; color: var(--coral); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 14px; }

@media (max-width: 900px) {
    .help-layout { display: block; }
    .toc { position: static; max-height: none; padding: 28px 0 0; }
    .toc ol { columns: 2; column-gap: 20px; }
    .toc li { break-inside: avoid; }
}
@media (max-width: 560px) {
    .site-header { padding: 14px 16px; }
    .doc { padding: 28px 16px 56px; }
    .help-layout { padding: 0 16px; }
    .shot { float: none; width: 62%; margin: 16px auto; }
    .toc { font-size: 13px; }
}

/* Help page platform switch: only the chosen platform's screenshots and steps show */
[data-platform="ios"] .android-only,
[data-platform="android"] .ios-only { display: none !important; }
.platform-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 18px 0 4px;
    font-size: 14px;
    color: var(--muted);
}
.platform-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--surface);
}
.platform-switch button {
    padding: 5px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
.platform-switch button:hover { color: var(--ink); }
.platform-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.platform-switch button:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.toc-switch { margin-bottom: 18px; }
@media (max-width: 900px) {
    .toc-switch { display: none; }
}
