/* Public pages: /<slug>, arhiva, ispis, prijava, uvjeti. Tokens match app.css. */
:root {
  --bg: #f6f5f1; --surface: #fff; --ink: #1b1d22; --muted: #62656d; --line: #e3e1da;
  --accent: #0f5f55; --accent-ink: #fff; --accent-soft: #e3efec; --warn: #9a5b00; --danger: #a3261b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121315; --surface: #1c1e21; --ink: #ecebe6; --muted: #a2a4a9; --line: #2e3034;
    --accent: #5fc2b2; --accent-ink: #0b1a18; --accent-soft: #1d2f2c; --warn: #f0b660; --danger: #f08a7f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121315; --surface: #1c1e21; --ink: #ecebe6; --muted: #a2a4a9; --line: #2e3034;
  --accent: #5fc2b2; --accent-ink: #0b1a18; --accent-soft: #1d2f2c; --warn: #f0b660; --danger: #f08a7f; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0 auto; max-width: 760px; padding: 24px 16px 40px; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
h1 { font-size: 1.7rem; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 28px 0 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.head p { margin: 6px 0 0; color: var(--muted); }
section, .narrow { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px 16px; margin-top: 16px; }
.narrow { padding: 20px 16px; max-width: 520px; }
.narrow h1 { font-size: 1.35rem; margin-bottom: 10px; }

table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
  border-bottom: 1.5px solid var(--ink); padding: 6px 4px; }
td { border-bottom: 1px solid var(--line); padding: 8px 4px; vertical-align: top; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td small { display: block; color: var(--muted); font-size: 0.8rem; }
td small.sale { color: var(--warn); }
.n { font-weight: 600; }
tr.grp td { border-bottom: 0; padding-bottom: 2px; }
tr.sub td:first-child { padding-left: 18px; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.85rem; margin: 12px 0 0; }
.files { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; font-size: 0.95rem; }
.future { border-style: dashed; }
.fname { word-break: break-word; font-size: 0.85rem; }

.legal { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 0.95rem; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; word-break: break-word; }
@media (max-width: 480px) { .legal { grid-template-columns: 1fr; gap: 0; } .legal dd { margin-bottom: 8px; } }

.report { font-size: 0.85rem; margin: 18px 0 0; }
.report a { color: var(--muted); }
.foot { margin-top: 28px; text-align: center; font-size: 0.85rem; }
.foot a { color: var(--muted); text-decoration: none; }

label { display: grid; gap: 5px; margin: 0 0 12px; font-size: 0.9rem; color: var(--muted); }
input, textarea, select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
button { font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: 12px 18px; min-height: 48px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; }
button:disabled { opacity: 0.5; cursor: default; }
.msg { margin: 12px 0 0; }
.msg.err { color: var(--danger); }
.prose p, .prose li { color: var(--ink); }
.prose h2 { margin-top: 22px; }

@media print {
  body { background: #fff; color: #111; max-width: none; padding: 0; }
  section { border: 0; padding: 0; }
  .no-print, .foot { display: none; }
  .print h1 { font-size: 20pt; }
  table { font-size: 10.5pt; }
}
