/* Self-hosted fonts (SIL OFL 1.1, assets/fonts/OFL.txt): Poppins for text, Manrope for
   numbers. Latin subset, the same files as admin/fonts. No request leaves this site. */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poppins-400.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: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/poppins-500.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: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins-600.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: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/poppins-700.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: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/manrope-var.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;
}

/* garageX website: privacy policy, terms, support. Colours and type follow
   the app (lib/core/theme/app_colors.dart, Poppins + Manrope). */
:root {
  --surface: #F1F1F3;
  --card: #FFFFFF;
  --line: #DCDCE1;
  --text: #111114;
  --text-2: #55555F;
  --accent: #E8A33D;
  --accent-soft: #FBEBD2;
  --accent-text: #8F5A0A;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0E0E11;
    --card: #18181D;
    --line: #2E2E36;
    --text: #F2F2F4;
    --text-2: #A6A6B0;
    --accent: #F0A93E;
    --accent-soft: #3A2A10;
    --accent-text: #F3B85E;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font: 400 16px/1.65 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; min-height: 48px; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; }
.brand img { width: 32px; height: 32px; }
nav.site { display: flex; gap: 4px; flex-wrap: wrap; margin-right: -10px; }
nav.site a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px; color: var(--text-2); text-decoration: none; font-size: 15px; }
nav.site a[aria-current="page"] { color: var(--text); font-weight: 600; }

main.wrap { padding-top: 40px; padding-bottom: 56px; }
h1 { font-size: clamp(28px, 6vw, 36px); line-height: 1.2; margin: 0 0 8px; font-weight: 700; }
h2 { font-size: 21px; line-height: 1.3; margin: 40px 0 10px; font-weight: 600; }
h3 { font-size: 17px; margin: 24px 0 6px; font-weight: 600; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.meta { color: var(--text-2); font-size: 14px; margin-bottom: 24px; }
.lead { font-size: 18px; color: var(--text-2); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}
.card > :last-child { margin-bottom: 0; }
.callout { background: var(--accent-soft); border-color: transparent; }
.callout strong { color: var(--accent-text); }

.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; background: var(--surface); }
td:first-child { font-weight: 500; }

.toc { columns: 2 220px; padding-left: 18px; }
.links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 24px 0; padding: 0; list-style: none; }
.links a { display: block; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); font-weight: 600; }
.links a span { display: block; font-weight: 400; color: var(--text-2); font-size: 14px; }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--text-2); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
footer.site a { display: inline-block; padding: 12px 2px; }

/* The logo's ring is dark ink; lift it on the dark background. */
@media (prefers-color-scheme: dark) {
  .brand img { background: #F1F1F3; border-radius: 50%; }
}

/* Buy Me a Coffee: their brand yellow and ink, on every theme. */
.coffee-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; background: #FFDD00; color: #0D0C22; font-weight: 600;
  text-decoration: none;
}
.coffee-link:hover { background: #F5D300; }
.coffee-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.coffee-link img { width: 14px; height: 20px; }

/* Install helpers (assets/install.js). Android: a slim bottom bar, never a
   full-screen popup. Desktop and iPhone: a QR dialog from Play links. */
.install-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 17, 20, .18);
  translate: 0 calc(100% + 24px); transition: translate .3s cubic-bezier(.22, 1, .36, 1);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.install-bar.show { translate: 0 0; }
.install-bar img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.install-text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.install-text span { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--text); color: var(--surface); font-weight: 600; text-decoration: none; flex: none;
}
.install-close, .qr-close {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-2); font-size: 26px; line-height: 1; cursor: pointer;
}
.install-close:focus-visible, .qr-close:focus-visible, .install-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.has-install-bar { padding-bottom: 88px; }

.qr-dialog {
  width: min(360px, calc(100vw - 32px)); padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: 24px;
  background: var(--card); color: var(--text); text-align: center;
}
.qr-dialog::backdrop { background: rgba(14, 14, 17, .55); }
dialog.qr-dialog h2 { margin: 0 auto 8px; max-width: none; font-size: 20px; line-height: 1.3; letter-spacing: 0; font-weight: 600; padding: 0 28px; }
.qr-close { position: absolute; top: 8px; right: 8px; }
.qr-lead { color: var(--text-2); font-size: 15px; margin-bottom: 16px; }
.qr-code { display: block; width: 220px; height: 220px; margin: 0 auto 12px; border-radius: 12px; background: #fff; }
.qr-note { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.qr-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .install-bar { transition: none; } }
