/* Support center styles. Self-contained: nothing is fetched from other sites. Colors, font and
   details follow the homepage (src/index.css and src/App.css), without its sky, globe or images.
   No data-theme attribute means Auto (the device setting); theme.js applies a saved Light or Dark. */
@font-face {
    font-family: "Geist";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/fonts/geist-latin.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: "Geist";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/fonts/geist-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
    --bg: #eef3fd;
    --surface: rgba(255, 255, 255, 0.66);
    --text: #0d1733;
    --muted: #45537a;
    --rule: rgba(13, 23, 51, 0.11);
    --accent: #2350d8;
    --accent-soft: #e2e9fb;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #050816;
        --surface: rgba(14, 20, 44, 0.62);
        --text: #eef2ff;
        --muted: #a9b6d8;
        --rule: rgba(255, 255, 255, 0.12);
        --accent: #9db8ff;
        --accent-soft: #141f44;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #050816;
    --surface: rgba(14, 20, 44, 0.62);
    --text: #eef2ff;
    --muted: #a9b6d8;
    --rule: rgba(255, 255, 255, 0.12);
    --accent: #9db8ff;
    --accent-soft: #141f44;
    color-scheme: dark;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p, ul, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -3rem; z-index: 10; padding: 0.5rem 0.9rem; border-radius: 99px; background: var(--accent); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 0.75rem; }
main:focus { outline: none; }

.site-header { border-bottom: 1px solid var(--rule); }
main, .site-footer { max-width: 62rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.site-header nav { max-width: 62rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem max(16px, env(safe-area-inset-right)) 1.1rem max(16px, env(safe-area-inset-left)); line-height: 1.6; }
.site-header a { color: var(--text); text-decoration: none; }
.site-header .home { font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
/* Same text sizes and spacing as the homepage header (src/App.css .nav). On desktop the header
   lines up with the content below it; on phones it sits 16px from the edge, like the homepage.
   On phones Support is hidden, as Apps is on the homepage. */
.site-header .nav-links { display: flex; gap: 1.4rem; font-size: 0.92rem; }
.site-header .nav-links a { color: var(--muted); }
.site-header .nav-links a:hover, .site-header .nav-links .current { color: var(--text); }
@media (max-width: 560px) {
  .site-header nav { padding-block: 0.9rem; }
  .site-header .wide { display: none; }
}
main { padding-block: 2.25rem 4rem; display: flex; flex-direction: column; gap: 2rem; }
.site-footer { color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--rule); padding-block: 1.25rem 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; }
.site-footer a { color: inherit; }

.muted { color: var(--muted); }
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Auto / Light / Dark switch (shown by theme.js) */
.theme-switch { display: inline-flex; padding: 2px; border-radius: 99px; border: 1px solid var(--rule); }
.theme-switch button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 0.78rem; font-weight: 600; padding: 0.28rem 0.75rem; border-radius: 99px; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }

/* Search */
.search { display: flex; flex-direction: column; gap: 0.5rem; max-width: 36rem; position: relative; }
.search input {
    font: inherit; font-size: 1rem; width: 100%;
    padding: 0.8rem 1rem; border-radius: 14px;
    border: 1px solid var(--rule); background: var(--surface); color: var(--text);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.results { list-style: none; padding: 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--bg); overflow: hidden; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.35); }
.results li + li { border-top: 1px solid var(--rule); }
.results a { display: block; padding: 0.7rem 1rem; text-decoration: none; color: var(--text); }
.results a:hover, .results a:focus { background: var(--accent-soft); }
.results b { display: block; color: var(--accent); font-weight: 600; }
.results span { display: block; font-size: 0.88rem; color: var(--muted); }
.results .none { padding: 0.7rem 1rem; color: var(--muted); }

/* Hub */
.intro { display: flex; flex-direction: column; gap: 1rem; }
.intro h1 { font-size: clamp(2rem, 5.5vw, 3rem); letter-spacing: -0.04em; }
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.app-tile { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.35rem; border: 1px solid var(--rule); border-radius: 22px; background: var(--surface); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.45); text-decoration: none; color: var(--text); transition: transform 0.15s, border-color 0.15s; }
.app-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.app-tile b { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.app-tile .muted { font-size: 0.92rem; line-height: 1.5; }
.app-tile .go { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.icon { width: 44px; height: 44px; border-radius: 10px; display: block; flex: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.icon.lg { width: 64px; height: 64px; border-radius: 14px; }
.icon.sm { width: 22px; height: 22px; border-radius: 5px; box-shadow: none; }

/* App home */
.app-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.app-head div { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.app-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); letter-spacing: -0.035em; }
.app-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; align-items: start; }
@media (max-width: 760px) { .app-body { grid-template-columns: 1fr; } }
.popular { display: flex; flex-direction: column; gap: 0.6rem; }
.popular ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.category { border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.category h2 { font-size: 1rem; }
.category ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.95rem; }
.links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.92rem; }

/* Contact */
.contact { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.15rem 1.35rem; border-radius: 18px; border: 1px solid var(--rule); background: var(--surface); }
.contact p { font-size: 0.95rem; min-width: 0; }
.contact .address { user-select: all; overflow-wrap: anywhere; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1.15rem; border-radius: 99px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap; transition: transform 0.15s, filter 0.15s; }
.button:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* Article */
.crumbs { font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs a { color: var(--muted); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .article { grid-template-columns: 1fr; gap: 2rem; } }
.article-head { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.article-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); letter-spacing: -0.035em; }
.article-head p { font-size: 0.9rem; }
.prose { max-width: 40rem; display: flex; flex-direction: column; gap: 1rem; }
.prose h2 { font-size: 1.25rem; margin-top: 1rem; }
.prose h3 { font-size: 1.05rem; margin-top: 0.5rem; }
.prose ol, .prose ul { padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.45rem; }
.prose img { border: 1px solid var(--rule); border-radius: 14px; }
.prose code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 5px; }
.prose table { border-collapse: collapse; font-size: 0.95rem; }
.prose .table { overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 0.45rem 0.75rem 0.45rem 0; text-align: left; vertical-align: top; }
.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 0.85rem 1.1rem; border-radius: 0 14px 14px 0; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar { display: flex; flex-direction: column; gap: 1.75rem; font-size: 0.93rem; }
.sidebar section { display: flex; flex-direction: column; gap: 0.6rem; }
.sidebar ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.sidebar [aria-current] { font-weight: 600; color: var(--text); text-decoration: none; }
.sidebar .contact { flex-direction: column; align-items: flex-start; }
.sidebar .contact .address { display: block; }

@media (prefers-reduced-motion: reduce) {
    .app-tile, .button { transition: none; }
    .app-tile:hover, .button:hover { transform: none; }
}
