/* Shared design tokens + reset (public site and admin panel). */
:root {
  --cream: #fbf6ef;
  --paper: #fffdf9;
  --sand: #f3e9dc;
  --line: #eadfd3;
  --ink: #1e1612;
  --ink-soft: #5d4d44;
  --ink-mute: #8b7a70;
  --red: #d8452b;
  --red-deep: #b5301c;
  --red-dark: #8f2413;
  --ember: #f59e3b;
  --gold: #ffd166;
  --char: #24140f;
  --leaf: #4b8a3a;
  --wood: #e0ae72;

  --font-body: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(60, 25, 10, 0.06), 0 4px 14px rgba(60, 25, 10, 0.06);
  --shadow-md: 0 2px 4px rgba(60, 25, 10, 0.06), 0 14px 34px rgba(60, 25, 10, 0.12);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  /* rem = follows the visitor's browser / phone text-size setting */
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.nf-logo {
  width: 120px;
  margin-inline: auto;
  color: var(--red);
}

/* Never break inside phone numbers and similar short values. */
.nowrap {
  white-space: nowrap;
}

/* ── Test version labels (config.php → 'test_mode' => true) ────────── */
.test-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #ffd400;
  color: #1e1612;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
/* The "Bandomoji versija" bar stays at the top of the window while scrolling;
   the site header sticks right below it. */
:root {
  --test-bar-h: 0px;
}
html.has-test-bar {
  --test-bar-h: 3.625rem;
  scroll-padding-top: calc(5.25rem + var(--test-bar-offset, var(--test-bar-h)));
}
.has-test-bar .header {
  top: var(--test-bar-offset, var(--test-bar-h));
}
.test-bar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: var(--test-bar-h);
  padding: 0 20px;
  overflow: hidden;
  background: repeating-linear-gradient(-45deg, #1e1612 0 16px, #2c211b 16px 32px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  color: #ffd400;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.test-bar .test-tag {
  padding: 5px 14px;
  font-size: 0.95rem;
}
.test-bar__short {
  display: none;
}
@media (max-width: 1100px) {
  .test-bar__long {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 760px) {
  html.has-test-bar {
    --test-bar-h: 2.25rem;
  }
  .test-bar {
    gap: 10px;
    padding: 0 12px;
    font-size: 0.88rem;
  }
  .test-bar .test-tag {
    padding: 2px 8px;
    font-size: 0.72rem;
  }
  .test-bar__long,
  .test-bar__end {
    display: none;
  }
  .test-bar__short {
    display: inline;
  }
}
