/*
 * Shared stylesheet for heedapp.pantrx.com.
 *
 * One file served from /assets/style.css across all pages so visual
 * tweaks land in a single place. Pure CSS — no build step, no JS, no
 * fonts loaded over the network. Brand palette mirrors the in-app
 * AnalyserTheme + res/values/colors.xml (navy-to-teal).
 */

:root {
  --bg: #0E2A38;
  --fg: #FFFFFF;
  --muted: #C9D6DC;
  --accent: #1A7B86;
  --accent-bright: #5DD0DD;
  --card: #143645;
  --link: #5DD0DD;
  --link-hover: #FFFFFF;
  --rule: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F9FAFB;
    --fg: #0E2A38;
    --muted: #475A66;
    --accent: #114A56;
    --accent-bright: #1A7B86;
    --card: #FFFFFF;
    --link: #114A56;
    --link-hover: #0E2A38;
    --rule: rgba(14, 42, 56, 0.08);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* Header used on all pages. */
header.site {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
}

header.site .crumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 4px;
}

header.site .crumb a { color: var(--accent-bright); text-decoration: none; }
header.site .crumb a:hover { color: var(--link-hover); text-decoration: underline; }

header.site h1 {
  font-size: 1.875rem;
  margin: 0 0 4px;
  font-weight: 700;
}

header.site .tagline {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}

.effective {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 6px 0 24px;
}

/* Generic card / section block. */
section {
  background: var(--card);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 16px 0;
}

section h2 {
  font-size: 1.125rem;
  margin: 0 0 8px;
  font-weight: 600;
}

section h3 {
  font-size: 1rem;
  margin: 16px 0 4px;
  font-weight: 600;
}

section p, section ul, section ol {
  margin: 8px 0 0;
}

ul, ol { padding-left: 20px; }
li { margin: 4px 0; }

a { color: var(--link); }
a:hover { color: var(--link-hover); }

code, kbd {
  background: var(--rule);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}

/* Big CTA button used on the landing page. */
.cta {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 8px;
}
.cta:hover { background: var(--accent-bright); color: #FFFFFF; }

/* Page footer (links to other pages). */
footer.site {
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
footer.site a {
  color: var(--accent-bright);
  margin: 0 8px;
  text-decoration: none;
}
footer.site a:hover { color: var(--link-hover); text-decoration: underline; }
