

p { margin: 0 0 18px; }

ul, ol {
  margin: 0 0 23px;
  padding-left: 23px;
}

li { padding-left: 3px; margin: 0 0 10px; }

li::marker { color: var(--text-muted); }

strong { font-weight: 750; }

/* Links and actions */
a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color 150ms ease;
}

a:hover { text-decoration-color: currentColor; }

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease;
}

.button:hover { color: var(--accent-text); opacity: .87; transform: translateY(-1px); }
.button:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

.muted { color: var(--text-muted); font-size: 13px; }

.pill {
  display: inline-flex;
  padding: 4px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.draft {
  margin: 22px 0;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
}

/* Footer */
footer {
  margin-top: 52px;
  padding-top: 23px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 2;
  overflow-wrap: anywhere;
}

footer a { color: inherit; }

@media (max-width: 700px) {
  body { padding: 12px 10px 32px; font-size: 14px; }
  main { border-radius: 17px; padding: 25px 21px; }
  header { align-items: flex-start; margin-bottom: 32px; padding-bottom: 18px; }
  nav { width: 100%; gap: 4px 5px; }
  nav a { padding: 7px 9px; font-size: 12px; }
  h2 { margin-top: 34px; padding-top: 18px; }
  footer { margin-top: 40px; }
}

@media (max-width: 380px) {
  body { padding: 0; }
  main { border: 0; border-radius: 0; padding: 22px 17px 34px; }
  header { gap: 15px; }
  nav a { padding: 6px 7px; font-size: 11.5px; }
  h1 { font-size: 29px; }
}

/* Automatic dark mode: keeps the same grayscale TodaGo identity. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page-bg: #111111;
    --card-bg: #1b1b1b;
    --text: #f4f4f4;
    --text-muted: #b7b7b7;
    --border: #353535;
    --border-strong: #555555;
    --surface: #262626;
    --surface-hover: #323232;
    --accent: #f4f4f4;
    --accent-text: #111111;
    --shadow: 0 16px 48px rgba(0, 0, 0, .18);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

