/* Padkos site: one shared style for every page. */
:root {
  --bg: #f4f6f6;
  --card: #ffffff;
  --ink: #1b2424;
  --muted: #5b6b6b;
  --line: #dde4e4;
  --teal: #0f7f7a;
  --teal-soft: #e3f2f1;
  --amber: #a35f00;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101515;
    --card: #182020;
    --ink: #e9efef;
    --muted: #9db0b0;
    --line: #2a3535;
    --teal: #46c2bb;
    --teal-soft: #173230;
    --amber: #f0a640;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--teal); }
a:hover { text-decoration-thickness: 2px; }

header.site {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

header.site .brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

nav.site { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a[aria-current="page"] { color: var(--teal); font-weight: 600; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

h1 { font-size: 32px; line-height: 1.2; margin: 24px 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 4px; }

p, ul, ol { margin: 8px 0 12px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

.updated { color: var(--muted); font-size: 15px; margin-top: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
}

.card.key { background: var(--teal-soft); border-color: transparent; }
.card.warn { border-left: 4px solid var(--amber); }

.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
  display: block;
  overflow-x: auto;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

th { color: var(--muted); font-weight: 600; }

.hero { text-align: center; padding: 32px 0 8px; }
.hero img.icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.hero h1 { font-size: 40px; margin-top: 18px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 520px; margin: 8px auto 20px; }

.button {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.grid .card { margin: 0; }
.grid h3 { margin-top: 0; }

footer.site {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer.site a { color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 27px; }
  .hero h1 { font-size: 34px; }
}
