/* ==========================================================================
   Astro DD — zajednički stilovi
   Paleta: noćno nebo (indigo/ljubičasta) + zlatna / šampanj akcenti
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokeni
   -------------------------------------------------------------------------- */
:root {
  /* Pozadine */
  --bg-deep:      #0a0a1f;
  --bg:           #0e1030;
  --bg-soft:      #15173c;
  --bg-card:      rgba(24, 27, 66, 0.72);
  --bg-card-solid:#181b42;

  /* Tekst */
  --text:         #e9e7f5;
  --text-soft:    #b9b6d4;
  --text-dim:     #8a87ab;

  /* Akcenti */
  --gold:         #e8c37a;
  --gold-bright:  #f6dfae;
  --gold-deep:    #b9905180;
  --violet:       #8b7ae8;
  --violet-soft:  #6f63c9;

  /* Linije i senke */
  --line:         rgba(232, 195, 122, 0.18);
  --line-soft:    rgba(233, 231, 245, 0.10);
  --shadow-sm:    0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow:       0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg:    0 24px 70px rgba(0, 0, 0, 0.45);

  /* Tipografija */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;

  /* Mere */
  --wrap:         1180px;
  --radius:       18px;
  --radius-sm:    12px;
  --header-h:     68px;
}

/* --------------------------------------------------------------------------
   2. Reset / osnova
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Jedini izvor pomeraja za sidra — sekcije namerno nemaju scroll-margin-top,
     da se dva pomeraja ne bi sabirala. */
  scroll-padding-top: calc(var(--header-h) + 28px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover { color: var(--gold-bright); }

p { margin: 0 0 1.1em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  color: #fff;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 3rem 0;
}

::selection { background: rgba(232, 195, 122, 0.28); color: #fff; }

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

/* --------------------------------------------------------------------------
   3. Zvezdano nebo (pozadina)
   -------------------------------------------------------------------------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 12% -8%,  rgba(112, 96, 220, 0.30), transparent 62%),
    radial-gradient(900px 620px at 92% 4%,    rgba(232, 195, 122, 0.13), transparent 60%),
    radial-gradient(1000px 800px at 50% 108%, rgba(89, 72, 178, 0.24),  transparent 65%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 45%, #0b0c26 100%);
}

.sky::before,
.sky::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-repeat: repeat;
}

/* Sitne zvezde */
.sky::before {
  background-image:
    radial-gradient(1.4px 1.4px at 22px 34px,  rgba(255,255,255,0.85), transparent),
    radial-gradient(1.2px 1.2px at 128px 86px, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.6px 1.6px at 230px 180px,rgba(255,244,214,0.75), transparent),
    radial-gradient(1.1px 1.1px at 300px 60px, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.3px 1.3px at 60px 250px, rgba(214,222,255,0.65), transparent);
  background-size: 340px 300px;
  opacity: 0.75;
  animation: twinkle 7s ease-in-out infinite alternate;
}

/* Krupnije, ređe zvezde */
.sky::after {
  background-image:
    radial-gradient(2.2px 2.2px at 90px 140px,  rgba(255, 236, 196, 0.9), transparent),
    radial-gradient(2px 2px at 420px 320px,     rgba(255,255,255,0.7),   transparent),
    radial-gradient(2.4px 2.4px at 640px 100px, rgba(198, 190, 255, 0.8), transparent);
  background-size: 760px 600px;
  opacity: 0.6;
  animation: twinkle 11s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
  from { opacity: 0.35; }
  to   { opacity: 0.85; }
}

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

/* --------------------------------------------------------------------------
   4. Layout pomoćne klase
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap--narrow { width: min(100% - 2.5rem, 820px); }

.section { padding: 5rem 0; }
.section--tight { padding: 3.25rem 0; }

.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--text-soft);
  line-height: 1.8;
}

.muted { color: var(--text-dim); }

/* --------------------------------------------------------------------------
   5. Header / navigacija
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 31, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand__mark { width: 30px; height: 30px; flex: 0 0 30px; }
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: -2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold-deep);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--gold);
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line-soft);
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 6rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
}

.hero__wheel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, 125vw);
  transform: translate(-50%, -50%);
  opacity: 0.16;
  pointer-events: none;
  animation: spin 190s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero__content { position: relative; }

.hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 4rem);
  margin-bottom: 0.4em;
}

.hero h1 .accent {
  display: block;
  color: var(--gold);
  font-style: italic;
}

.hero p {
  max-width: 640px;
  margin-inline: auto;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 2rem auto;
  color: var(--gold);
  max-width: 300px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* --------------------------------------------------------------------------
   7. Dugmad
   -------------------------------------------------------------------------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--gold-deep);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, #d8a95f 100%);
  color: #1a1330;
  border-color: transparent;
  box-shadow: 0 8px 26px rgba(232, 195, 122, 0.22);
}
.btn--primary:hover {
  color: #1a1330;
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(232, 195, 122, 0.32);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.btn--ghost:hover {
  color: #fff;
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   8. Kartice
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.card {
  display: block;
  position: relative;
  padding: 2rem 1.9rem;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

a.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
}

.card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--text-soft);
  font-size: 0.96rem;
  margin-bottom: 0;
}

.card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  color: var(--gold);
}

.card__more {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--gold);
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   9. Dokument (pravne stranice)
   -------------------------------------------------------------------------- */
.doc-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
  padding: 3rem 0 5rem;
}

@media (max-width: 1000px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

/* --- Sadržaj (TOC) --- */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding: 1.4rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-size: 0.87rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}
.toc::-webkit-scrollbar { width: 6px; }
.toc::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 3px; }

.toc h2 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc li { margin: 0; }

.toc a {
  display: block;
  padding: 0.4rem 0.6rem 0.4rem 0.7rem;
  color: var(--text-soft);
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  line-height: 1.45;
}
.toc a:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.035);
}
.toc a.is-active {
  color: var(--gold-bright);
  border-left-color: var(--gold);
  background: rgba(232, 195, 122, 0.08);
}

.toc__group {
  margin: 1.1rem 0 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
}
.toc__group:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.toc details > summary {
  list-style: none;
  cursor: default;
}
.toc details > summary::-webkit-details-marker { display: none; }

@media (max-width: 1000px) {
  .toc {
    position: static;
    max-height: none;
  }
  .toc details > summary { cursor: pointer; }
  .toc details > summary::after {
    content: "▾";
    float: right;
    color: var(--gold);
    font-size: 0.8rem;
  }
  .toc details[open] > summary::after { content: "▴"; }
}

/* --- Telo dokumenta --- */
.doc { min-width: 0; }

.doc__header {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.doc__header h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  margin-bottom: 0.35em;
}

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.83rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.doc h2 {
  font-size: 1.75rem;
  margin: 3.2rem 0 1rem;
  padding-top: 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.doc h2 .num {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(232, 195, 122, 0.1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  flex: 0 0 auto;
  transform: translateY(-2px);
}

.doc h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--gold-bright);
  margin: 2rem 0 0.7rem;
}

.doc p, .doc li { color: var(--text-soft); }
.doc strong { color: var(--text); font-weight: 600; }

.doc ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 1.3rem;
}
.doc ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
}
.doc ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: -0.05em;
  color: var(--gold);
  font-size: 0.8em;
}

.doc ol {
  padding-left: 1.35rem;
  margin: 0 0 1.3rem;
}
.doc ol li {
  margin-bottom: 0.6rem;
  padding-left: 0.35rem;
}
.doc ol li::marker { color: var(--gold); font-weight: 600; }

.doc blockquote {
  margin: 1.6rem 0;
  padding: 1.3rem 1.6rem;
  background: rgba(232, 195, 122, 0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-style: italic;
  color: var(--gold-bright);
}
.doc blockquote p:last-child { margin-bottom: 0; }

/* Deo I / Deo II — velike sekcije */
.part-break {
  margin: 4.5rem 0 1rem;
  padding: 2.2rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 122, 232, 0.13), rgba(232, 195, 122, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.part-break span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.part-break h2 {
  display: block;
  font-size: 1.9rem;
  margin: 0;
  padding: 0;
}

/* --- Isticanja --- */
.callout {
  margin: 1.7rem 0;
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
}
.callout p:last-child { margin-bottom: 0; }
.callout__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.callout--gold { border-color: var(--line); background: rgba(232, 195, 122, 0.07); }
.callout--gold .callout__title { color: var(--gold); }

.callout--warn { border-color: rgba(255, 138, 128, 0.32); background: rgba(255, 110, 100, 0.08); }
.callout--warn .callout__title { color: #ffa79c; }

.callout--info { border-color: rgba(139, 122, 232, 0.35); background: rgba(139, 122, 232, 0.10); }
.callout--info .callout__title { color: #b3a6ff; }

/* --- Tabela --- */
.table-scroll {
  overflow-x: auto;
  margin: 1.6rem 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.93rem;
}

thead th {
  text-align: left;
  padding: 0.9rem 1.1rem;
  background: rgba(232, 195, 122, 0.10);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-soft);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.018); }
tbody td:last-child { color: var(--gold); white-space: nowrap; }

/* Na uskim ekranima tabela se prelama u kartice — bez horizontalnog skrolovanja */
@media (max-width: 620px) {
  .table-scroll { border: 0; overflow: visible; }
  table { min-width: 0; }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  tbody tr,
  tbody tr:nth-child(even) {
    display: block;
    margin-bottom: 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
  }

  tbody td,
  tbody tr:last-child td {
    display: block;
    padding: 0.75rem 1.05rem;
    border-bottom: 0;
    white-space: normal;
  }

  tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.2rem;
  }

  tbody td:first-child { border-bottom: 1px solid var(--line-soft); }
  tbody td:last-child { color: var(--gold-bright); }
}

/* --- Info blok firme --- */
.identity {
  margin: 1.6rem 0;
  padding: 1.6rem 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.identity dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.4rem;
  margin: 0;
  font-size: 0.95rem;
}
.identity dt {
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.2em;
}
.identity dd { margin: 0; color: var(--text); }
.identity__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

@media (max-width: 560px) {
  .identity dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .identity dd { margin-bottom: 0.7rem; }
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 4rem;
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--line-soft);
  background: rgba(8, 8, 26, 0.6);
  font-size: 0.92rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.4rem;
  margin-bottom: 2.6rem;
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.site-footer p, .site-footer li { color: var(--text-dim); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--gold); }

.site-footer__bottom {
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   11. Nazad na vrh
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 1px solid var(--line);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: var(--shadow);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--gold); }

/* --------------------------------------------------------------------------
   12. Štampa
   -------------------------------------------------------------------------- */
@media print {
  :root { --text: #111; --text-soft: #222; --text-dim: #555; }
  .sky, .site-header, .toc, .to-top, .hero__wheel, .btn-row, .site-footer__grid { display: none !important; }
  body { background: #fff; color: #111; font-size: 11.5pt; line-height: 1.5; }
  h1, h2, h3, h4, .doc strong { color: #000 !important; }
  .doc p, .doc li, td { color: #222 !important; }
  .doc-layout { display: block; padding: 0; }
  .doc h2 { page-break-after: avoid; font-size: 15pt; margin-top: 1.4rem; }
  .doc section { page-break-inside: auto; }
  .card, .callout, .identity, .part-break, .table-scroll {
    border: 1px solid #ccc !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  a { color: #111 !important; text-decoration: underline; }
  thead th { background: #f2f2f2 !important; color: #000 !important; }
  tbody td:last-child { color: #222 !important; }
}
