/* Strona wsparcia „Gdzie się ukryć PL” — bez zewnętrznych czcionek i skryptów */
:root {
  --bg: #ffffff;
  --surface: #f4f5f7;
  --text: #1b1d21;
  --muted: #4a4f57;
  --border: #d5d8dd;
  --accent: #b3121b;
  --link: #0b4f9c;
  --link-visited: #5b2d8f;
  --focus: #ffbf47;
  --measure: 46rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418;
    --surface: #1d2026;
    --text: #eceef1;
    --muted: #b8bec7;
    --border: #3a3f48;
    --accent: #ff6b6b;
    --link: #8cc4ff;
    --link-visited: #c9a7ff;
    --focus: #ffbf47;
  }
}

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  padding: 0.5rem 1rem;
  background: var(--focus);
  color: #000000;
  font-weight: 600;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

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

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

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  border-top: 6px solid var(--accent);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.site-name:visited {
  color: var(--text);
}

/* Logo marki: znak i napis w SVG (kontury Lato), wariant ciemny przez <picture> */
.site-name {
  display: inline-block;
  line-height: 0;
}

.site-logo {
  display: block;
  height: 3rem;
  width: auto;
  max-width: 100%;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.25rem 0;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--accent);
}

main {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: 1.5rem;
  margin: 2.25rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 1.1875rem;
  margin: 1.75rem 0 0.5rem;
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
}

.note {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  color: var(--text);
}

.note p {
  margin: 0.25rem 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 0.25em;
  overflow-wrap: anywhere;
}

.table-scroll {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.625rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface);
}

.link-list {
  padding-left: 1.25rem;
}

.link-list li {
  margin: 0.5rem 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.625rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface);
}
