/* Skanae guide pages: standalone stylesheet, no external fonts or CDNs. */
:root {
  --accent: #0c5cab;
  --accent-hover: #094a8c;
  --bg: #ffffff;
  --bg-soft: #f2f6fb;
  --text: #1b2430;
  --muted: #55606e;
  --border: #d9e1ea;
  --on-accent: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #5aa7ea;
    --accent-hover: #86bff0;
    --bg: #11161d;
    --bg-soft: #1a222c;
    --text: #e8edf3;
    --muted: #a3afbd;
    --border: #2b3643;
    --on-accent: #0b1117;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

main {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
}

article { max-width: 70ch; margin: 0 auto; }

.breadcrumb { font-size: 0.9rem; color: var(--muted); margin: 0 0 1.25rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-current] { color: var(--text); }

h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.2; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; line-height: 1.35; margin: 1.75rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1.1rem; }
li { margin-bottom: 0.4rem; }

.lead { font-size: 1.2rem; color: var(--muted); }
.meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; }

.note {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1.1rem;
  margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

figure { margin: 1.75rem 0; text-align: center; }
figure img {
  max-width: min(100%, 15rem);
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }

.cta-inline, .cta-closing {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin: 2rem 0;
}
.cta-inline p, .cta-closing p { margin-bottom: 0.8rem; }
.cta-closing h2 { margin-top: 0; }
.cta-inline a.store, .cta-closing a.store { display: inline-block; line-height: 0; }
.store img { display: block; height: 3rem; width: auto; }

.faq dt { font-weight: 700; margin-top: 1.1rem; }
.faq dd { margin: 0.3rem 0 0; }

.related ul { padding-left: 1.25rem; }

/* Guides index (guides.html) */
.guides-index { max-width: 70ch; margin: 0 auto; }
.guide-cards { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.guide-card {
  margin: 0;
  padding: 1.1rem 1.4rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.guide-card h2 { font-size: 1.3rem; margin: 0 0 0.4rem; }
.guide-card p { margin: 0 0 0.5rem; }
.guide-card .meta { margin: 0; }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .inner { max-width: 62rem; margin: 0 auto; padding: 1.5rem 1.25rem; }
.site-footer ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.site-footer li { margin: 0; }
.site-footer p { margin: 0; }

/* Sticky App Store bar: small screens only, CSS only. */
.mobile-bar { display: none; }

@media (max-width: 640px) {
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  /* The sticky bottom bar carries the App Store link on phones, as on the homepage */
  .site-nav .nav-cta { display: none; }

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    padding-left: calc(1rem + env(safe-area-inset-left));
    padding-right: calc(1rem + env(safe-area-inset-right));
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }
  .mobile-bar span { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
  .mobile-bar a {
    flex: none;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    text-decoration: none;
  }
}

@media print {
  .mobile-bar { display: none; }
}

/* "Also available in" line (language versions of an article or guides index) */
.lang-switch { margin: -0.75rem 0 1.5rem; font-size: 0.85rem; color: var(--muted); }
.lang-switch a { color: inherit; }
