/* The cookie consent card (consent.js), 14 Nov 2026. The page's colours turned round: --ink is its background and
   --paper its letters, so it is light on the black page and dark on the white one and flips with the page. It is
   cut in at 45 degrees from its bottom left corner, like the big K in the intro (a triangle with a 45 degree side
   that grows past the card's far corner). Bottom left on a computer, over the hint; at the bottom on a phone, across
   the column (below). The fallbacks after each variable are for pages without the home page's style.css. z-index 3: over the texts and the
   big K (1, 2), under the flip's copy (.flip-layer, 4), which carries a copy of the card in the new colours, so the
   card turns under the growing K like the page instead of jumping at the end. */
.consent { position: fixed; z-index: 3; left: max(var(--pad, 24px), env(safe-area-inset-left));
  bottom: max(var(--pad, 24px), env(safe-area-inset-bottom)); width: min(440px, calc(100vw - 2 * var(--pad, 24px)));
  margin: 0; padding: 22px; background: var(--ink, #F5F5F5); color: var(--paper, #0A0A0A);
  font-family: 'Unbounded', sans-serif; -webkit-user-select: text; user-select: text;
  clip-path: polygon(0 100%, 0 calc(100% - 0px), 0px 100%); transition: clip-path .45s cubic-bezier(.7, 0, .3, 1); }
.consent.open { clip-path: polygon(0 100%, 0 calc(100% - 1600px), 1600px 100%); }
.consent p { margin: 0; }
/* 22 px all round on a computer (the user, 14 Nov: ".consent 22px 22px 22px"; it was 26 26 22). The title, 5 px over the text on a computer (the user: "približi naslov za pol dolje do kratkog teksta"; 16 px
   before), 12 px on a phone (below) */
.consent-title { min-height: 1em; margin-bottom: 5px !important; font: 800 17px/1 'Archivo Expanded', sans-serif;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.consent-title { -webkit-text-stroke: calc((1 - var(--hair, 0)) * .006em) currentColor; }
.consent-text { margin-bottom: 15px !important; font-weight: 300; font-size: 12.5px; line-height: 1.6; letter-spacing: .01em; }
.consent-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Accept and Decline: the same size, colour and weight */
.consent button { padding: 15px 10px; border: 0; border-radius: 0; background: var(--paper, #0A0A0A); color: var(--ink, #F5F5F5);
  font: 400 11px/1 'Unbounded', sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: opacity .15s; -webkit-tap-highlight-color: transparent; }
.consent button:focus-visible { opacity: .75; outline: none; }
/* the fade on hover only with a pointer that hovers (on a phone a tap left it stuck; the user, 14 Nov) */
@media (hover: hover) { .consent button:hover { opacity: .75; } }
/* the hairline the home page gives dark letters on light (style.css): here the card is light while the page is dark.
   The short text's, measured 15 Nov 2026 when it got smaller on phones (dark on light against light on dark, pixel
   coverage): .035 em at 1x (99.5-100 %; the e-mail's .015 em, used until then, left it at 81 %), .025 em at 2x (97-104 %
   from 8.4 to 11.8 px), .015 em from 2.5x (100-102 % at 10.9 and 12.5 px) */
.consent-text { -webkit-text-stroke: calc((1 - var(--hair, 0)) * .035em) currentColor; }
@media (min-resolution: 2dppx) { .consent-text { -webkit-text-stroke-width: calc((1 - var(--hair, 0)) * .025em); } }
@media (min-resolution: 2.5dppx) { .consent-text { -webkit-text-stroke-width: calc((1 - var(--hair, 0)) * .015em); } }
.consent button { -webkit-text-stroke: calc(var(--hair, 0) * .03em) currentColor; }
/* the texts the card covers (consent.js .under-consent) are hidden until it goes */
.under-consent { visibility: hidden; }
/* A computer: bottom left on every page, over the hint (CLICK ANYWHERE), as wide as its short text on one line (the
   user, 14 Nov: "proširi box da kratki tekst piše u jednom redu i spusti ga skroz dolje lijevo gdje piše click
   anywhere", "i tako isto na privatnosti"; it stood beside the big K, 440 px wide). On a small laptop it covers the
   big K's left foot a little (691 px wide; at 1440 x 900 the K starts 682 px in); in a narrow window the text wraps. */
@media (min-width: 601px) {
  .consent { width: max-content; max-width: calc(100vw - 2 * var(--pad, 24px)); }
}
/* on a phone consent.js sets its height down to FTE's bottom and splits the padding evenly; the contents stay in the middle */
@media (max-width: 600px) {
  /* at the bottom, one side margin from the edge (consent.js place(); the user, 14 Nov). Its right edge is the big
     K's, the same expression (style.css .k): a pixel past it, a one-pixel step showed where the K came out above and
     below the card (the user: "box s desne strane ima kao crte od logića"). Its left edge is a pixel past the margin
     (from when it stood over KRA and FTE, whose antialiased sides showed). */
  /* Its bottom is held one margin above the small viewport's bottom (100svh: the window with the browser's bars
     out), its top set there and the card moved up by its own height: tied to the window's bottom, it jumped on the
     privacy page while scrolling, as the iPhone's bars slid away and back and the window's height changed (the user,
     14 Nov: "kad scrollam na mobu prozor od cookiesa poskakuje"). Where the bars are out, as on loading, it stands
     where it stood; with them away it stays put, a little more room under it. */
  /* consent.js sets --y, the card's top, from the visual viewport (what is really on the screen) on every scroll and
     resize frame; without it the small viewport's bottom (100svh) */
  .consent { top: 0; bottom: auto;
    transform: translateY(var(--y, calc(100svh - 100% - max(var(--pad, 24px), env(safe-area-inset-bottom)))));
    left: calc(max(var(--pad, 24px), env(safe-area-inset-left)) - 1px); right: max(var(--pad, 24px), env(safe-area-inset-right)); width: auto;
    /* 20 px all round (the user, 14 Nov: "na mobu nek consent ima svugdje padding 20px"; it was 24.5 22 20.5) */
    padding: 20px; display: flex; flex-direction: column; justify-content: center; }
  /* 15 px, smaller on a narrow phone: COOKIES, UNDER ONE K. must fit the room inside the card (the window less 90 px) */
  .consent-title { font-size: min(15px, calc((100vw - 92px) / 18)); margin-bottom: 12px !important; }
  /* the short text in two lines, not three (the user, 15 Nov 2026: "da ovaj tekst kratki od consenta ne ide u 3 reda,
     već da ostaje u dva reda"): its best split, "...visits with Google | Analytics. No ads...", is 27.27 em at its
     longer line (measured); the room inside the card is the window less 88 px (the margins and the 20 px padding), so
     at most that over 27.6, 1 % to spare for Safari (12.5 px from a 433 px phone up; 10.9 px at 390, 8.4 at 320) */
  .consent-text { margin-bottom: 15px !important; font-size: min(12.5px, calc((100vw - 88px) / 27.6)); }
}
/* The legal page: the same card always in the text, where the consent is explained, scrolling with the page (the
   user, 15 Nov 2026: "umjesto toga dodaš fizički box koji imamo, samo nemoj da je fiksan"; it replaced a Change cookie
   settings button). As wide as its short text on a computer (the home card's width), the column on a phone. */
/* Its top as far under the text as the next paragraph's capitals would be (the user, 15 Nov: "odmakni od teksta kao
   što odmičeš običan p od običnog p"): a paragraph's 14 px margin plus the room above the capitals in a line (Unbounded
   15 px on 26.25 px lines: half the leading, 3.6, and ascent less cap height, 3; measured in the browser) */
.consent.inline { position: relative; z-index: auto; top: auto; right: auto; bottom: auto; left: auto; transform: none;
  width: max-content; max-width: 100%; margin: 20.6px 0 0; }
@media (max-width: 600px) { .consent.inline { width: auto; } }
/* no title in it (consent.js): the short text comes first, its line's room above the capitals trimmed, so the letters
   stand one padding from the top as from the side (they stood 3 px lower) */
.consent.inline .consent-text:first-child { text-box: trim-start cap alphabetic; }
/* the choice made: its button stays filled and reads ACCEPTED or DECLINED (consent.js; the user, 15 Nov: "bolje označit
   kad je selektirano, tipa da piše accepted"), the other turns to an outline in the card's letters' colour (the user:
   "ostaje, vidi se odabir"). Dark letters on the light card on the dark page get the hairline the legal page gives dark
   on light at this size (measured 14 Nov for its old reset button, the same 11 px Unbounded capitals). */
/* the chosen one does nothing on a click: no pointer, no fade */
.consent.chosen button[aria-pressed="true"] { cursor: default; }
@media (hover: hover) { .consent.chosen button[aria-pressed="true"]:hover { opacity: 1; } }
.consent.chosen button[aria-pressed="false"] { background: transparent; color: var(--paper, #0A0A0A);
  box-shadow: inset 0 0 0 1px var(--paper, #0A0A0A); -webkit-text-stroke: calc((1 - var(--hair, 0)) * .035em) currentColor; }
@media (min-resolution: 2dppx) {
  .consent.chosen button[aria-pressed="false"] { -webkit-text-stroke-width: calc((1 - var(--hair, 0)) * .02em); }
}
@media (min-resolution: 2.5dppx) {
  .consent.chosen button[aria-pressed="false"] { -webkit-text-stroke-width: calc((1 - var(--hair, 0)) * .015em); }
}
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
