/* sms-zmenkarije.com, redesign "Lila dan 2" (2026-11-09): the shared sheet, loaded on every page.
   A light lilac day; the violet night with its off-centre magenta light condenses into the header band (the logo,
   the menu with the hanging pennant and, on the listings, the six featured portraits) and, on the profile, into
   the SMS card (zk2026-profil.css). Sheet order (includes/head.php): zk2026.css, zk2026-profil.css,
   zk2026-racun.css, zk2026-pravno.css. Spec: docs/superpowers/specs/2026-11-09-sms-zmenkarije-lila-dan-2-design.md.
   A change made for an accessibility rule is marked "rule fix". Hover rules sit inside @media (hover: hover),
   movement inside @media (prefers-reduced-motion: no-preference). */

/* self-hosted fonts (fontsource 5.x, SIL OFL 1.1; licences in ../fonts/OFL-*.txt); latin-ext first, so č š ž
   come from the latin-ext file. No request goes to Google Fonts. */
@font-face{font-family:'Dosis';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/dosis-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Dosis';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/dosis-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Dosis';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/dosis-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Dosis';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/dosis-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Asap';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/asap-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Asap';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/asap-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Asap';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/asap-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Asap';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/asap-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Asap';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/asap-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Asap';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/asap-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  color-scheme: light;
  /* day */
  --day: #f0e9f5;          /* page ground, lilac (275deg) */
  --day-2: #e6dcee;        /* footer band */
  --paper: #ffffff;        /* search panel, "Nekaj o meni", page tiles on hover */
  --field: #f8f4fb;        /* select fill on paper */
  --line: #ddd0e7;         /* hairlines */
  --edge: #9a86ac;         /* field borders, 3.3:1 on white */
  --ink: #2c1838;          /* text, 13.7:1 on the day */
  --ink-2: #5d4a6b;        /* card line, labels, footer text, 6.7:1 */
  --violet: #8c49af;       /* the site's working accent: the name in the profile title, radios (4.8:1) */
  --violet-name: #74369a;  /* card names: deep enough to hold 4.5:1 inside the hover glow */
  --violet-ink: #6b2f8e;   /* links, small headings, page numbers (7.3:1) */
  --violet-deep: #4d1a63;  /* section headings (10.8:1) */
  /* night */
  --night-0: #2f1345;      /* darkest edge, still clearly violet (L* 13) */
  --night-1: #3a1652;
  --night-2: #5b2a7c;
  --on-night: #ffffff;
  --on-night-2: #dcc6ea;   /* tagline (9.4:1 on --night-1) */
  --on-night-3: #ead9f5;   /* SMS labels (11.1:1 on --night-1) */
  --pennant: linear-gradient(180deg, #a35ac9 0%, #9550b8 30%, #82409f 70%, #6c2f8e 100%);
  --pennant-shadow: rgba(18, 4, 30, .55);
  /* photo glow: the old 0 0 5px rgba(119,54,154,.59), widened a little */
  --glow-day: 0 0 0 1px rgba(107, 47, 142, .07), 0 0 16px rgba(160, 84, 206, .20), 0 16px 26px -18px rgba(59, 23, 84, .55);
  --glow-day-hover: 0 0 0 1px rgba(107, 47, 142, .10), 0 0 26px rgba(160, 84, 206, .34), 0 22px 36px -20px rgba(59, 23, 84, .70);
  --glow-night: 0 0 0 1px rgba(255, 255, 255, .10), 0 0 13px rgba(214, 112, 244, .22), 0 14px 22px -14px rgba(12, 2, 22, .70);
  --glow-night-hover: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 16px rgba(224, 128, 250, .34), 0 16px 24px -14px rgba(12, 2, 22, .75);
  /* the select chevron and the "Razveljavi iskanje" cross, drawn on the real elements (no extra markup) */
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 8l4.5 4.5L14.5 8' fill='none' stroke='%236b2f8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 5.5l9 9M14.5 5.5l-9 9' fill='none' stroke='%236b2f8e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  --gutter: 40px;
  --wrap: 1160px;
  /* full-bleed bands centre their own content: no wrapper divs */
  --pad: max(var(--gutter), (100% - var(--wrap)) / 2);
  --radius: 6px;
  --logo-w: 426px;
  --menu-w: 267px;         /* the three items as rendered (measured), for placing the light in the open sky */
  --display: 'Dosis', 'Trebuchet MS', sans-serif;
  --text: 'Asap', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--day);
  color: var(--ink);
  font: 400 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: var(--violet-ink); }
h1, h2, h3, p { margin: 0; }
/* the footer at the window's foot on a page shorter than the window (the profile pages, with no strip and no
   search, are 1086px tall from 1000px wide; a result state makes them shorter still): the day takes the spare
   height. On a page taller than the window nothing moves: the gaps between the band, the day and the footer are
   the same in a flex column (the day's padding holds its children's margins) */
.pageAlign { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.pageAlign > .day { flex: 1 0 auto; }
/* quicksearch.php's h3 > label (Kraj, Starost) and the Spol legend: names for the controls, hidden as today */
.searchBox h3, .filter_field_gender legend {
  position: absolute !important; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* focus: violet ring on the day, white ring on the night */
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--violet-ink); outline-offset: 2px; }
/* rule fix (visible focus): Tab scrolls a focused element only until its box meets the window's edge, which cut
   the ring drawn outside the box (a card's ring ends 9px out, a footer link's 5px); 12px of scroll margin keeps
   the whole ring in the window. Scrolling only: nothing is drawn differently */
:where(a, button, input, select, textarea, summary) { scroll-margin-block: 12px; }
.night :where(a, input, select, textarea):focus-visible,
.smsContainer :where(a, input, select, textarea):focus-visible,
.skip:focus-visible { outline-color: #fff; }

/* header.php's skip link, first in the header, visible on focus over the band */
.skip {
  position: absolute; left: 16px; top: -200px; z-index: 50;
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: var(--radius);
  background: var(--paper); color: var(--violet-deep); font: 600 16px/1.2 var(--text);
  box-shadow: 0 8px 24px rgba(20, 4, 34, .35);
}
.skip:focus { top: 12px; }
/* rule fix (visible focus): the white ring crosses the logo's peach heart (2.3:1 at 1440px, 1.5:1 at 390px);
   a night halo under it (in the offset gap and 2px beyond) keeps it >= 3:1 against both its sides */
.skip:focus-visible { box-shadow: 0 0 0 7px var(--night-0), 0 8px 24px rgba(20, 4, 34, .35); }

/* ---------------------------------------------------------------- the night band */
/* The light is today's long, low glow (bg.jpg's shape): a long off-centre pool, steep on the left and long to the
   right, about a third across, low behind the strip, so the portraits stand in it; its size is a share of the
   band. The band with the header alone (the profile, legal and account pages) has its own smaller pool, painted
   on the header (below). The core stays off the tagline and the menu words at every width. The band's white focus
   rings have the least room over this light (3.08:1 at the second portrait, 3:1 needed): a retune of the light
   repeats both the text and the focus-ring measurements. */
.night {
  --lx: 33%; --ly: 64%;         /* behind the portraits (their middle lies at 61-62% of the band from 600px up) */
  --lc: 34% 44%;                /* the core's radii (of the band's width and height): flat, so the tagline above
                                   and the names below stay in its dim edge */
  --lt: 74% 54%;                /* the long tail's radii */
  --ldx: 30%;                   /* the tail's centre, right of the core */
  --lm: 24% 36%; --lmdx: 10%;   /* a second lobe just right of the core: bg.jpg's slow fall to the right */
  --lm-stops: rgba(186, 82, 222, .50) 0%, rgba(158, 68, 204, .24) 55%, rgba(120, 50, 170, 0) 100%;
  --lc-stops: rgba(226, 108, 244, .92) 0%, rgba(208, 92, 234, .62) 26%, rgba(172, 74, 214, .28) 58%, rgba(140, 60, 190, 0) 100%;
  --lt-stops: rgba(150, 64, 198, .62) 0%, rgba(118, 49, 164, .32) 50%, rgba(80, 32, 124, 0) 100%;
  position: relative;
  color: var(--on-night);
  background-color: var(--night-1);
  background-image:
    radial-gradient(var(--lc) at var(--lx) var(--ly), var(--lc-stops)),
    radial-gradient(var(--lm) at calc(var(--lx) + var(--lmdx)) var(--ly), var(--lm-stops)),
    radial-gradient(var(--lt) at calc(var(--lx) + var(--ldx)) var(--ly), var(--lt-stops)),
    linear-gradient(180deg, var(--night-1) 0%, #331449 60%, var(--night-0) 100%);
  box-shadow: 0 14px 30px -18px rgba(47, 19, 69, .55);
}
header.fullWidth { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-inline: var(--pad); }

#logo { flex: none; padding: 28px 0 0; }
#logo a { display: block; width: var(--logo-w); text-decoration: none; border-radius: 4px; }
#logo .logo {
  display: block; width: var(--logo-w); aspect-ratio: 426 / 69;
  background: url(../img/logo.png) 0 0 / 100% 100% no-repeat;
}
#logo h1 {
  margin: 5px 0 0 calc(var(--logo-w) * .207);
  font: 500 14px/1.3 var(--text); letter-spacing: .01em; color: var(--on-night-2);
}

/* menu: three items, always visible; the current one (a[aria-current]) hangs as a pennant from the top edge */
#mainNav { flex: none; }
#mainNav ul { display: flex; list-style: none; margin: 0; padding: 0; }
#mainNav a {
  position: relative; display: block; min-width: 44px;
  padding: 36px 16px 16px;
  font: 600 18px/22px var(--display); color: var(--on-night); text-decoration: none;
  text-shadow: 1px 1px 0 rgba(30, 8, 46, .55);
  border-radius: 4px;
}
#mainNav a[aria-current] { z-index: 0; width: 106px; padding: 36px 8px 44px; text-align: center; text-shadow: 0 1px 0 rgba(40, 8, 60, .45); }
#mainNav a[aria-current]::before,
#mainNav a[aria-current]::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% 66%, 50% 100%, 0 66%);
}
#mainNav a[aria-current]::before { background: var(--pennant); }
#mainNav a[aria-current]::after { z-index: -2; background: var(--pennant-shadow); transform: translate(6px, 4px); }
#mainNav a:focus-visible { outline-offset: -5px; }
/* on the pennant a rectangle would cross the V: a white bar under the word instead */
#mainNav a[aria-current]:focus-visible { outline: 0; text-decoration-line: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
/* from 1000px the three items take equal 106px cells (the pennant's width), each word centred in its cell, and the
   pennant's hard dark copy becomes a soft shadow. --menu-w follows the menu, so the header-only light keeps its 48px
   from where the menu starts. The shadow copy (::after) stays as an empty box for the focus rim below. */
@media (min-width: 1000px) {
  :root { --menu-w: 318px; }
  #mainNav a { width: 106px; padding-inline: 8px; text-align: center; }
  #mainNav a[aria-current] { filter: drop-shadow(0 6px 6px rgba(18, 4, 30, .42)); }
  #mainNav a[aria-current]::after { background: none; }
}
/* while the current item has keyboard focus, its shadow copy becomes a white rim 3px outside the pennant that
   follows the V; the 3px white underline under the word stays */
#mainNav a[aria-current]:focus-visible::after { inset: -3px; background: #fff; transform: none; }

/* the six featured portraits, standing in the pool of light (featured.php: figure > a > img + span.nm) */
.boxPopular { padding: 22px var(--pad) 26px; }
.boxPopular .mod_cataloglist { display: grid; grid-template-columns: repeat(6, minmax(0, 160px)); justify-content: space-between; column-gap: 18px; }
.boxPopular .item { min-width: 0; }
.boxPopular figure a { display: block; color: var(--on-night); text-decoration: none; border-radius: var(--radius); }
.boxPopular img {
  width: 100%; height: auto; aspect-ratio: 380 / 478; object-fit: cover;
  border-radius: var(--radius); background: var(--night-2); box-shadow: var(--glow-night);
}
.boxPopular .nm { display: block; margin-top: 8px; font: 600 15px/1.45 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boxPopular figure a:focus-visible { outline-offset: 4px; }

/* the band without the strip: the profile pages (the user's decision, 8 Nov 2026: "remove the profile list on
   the top and search displaying only the actual profil"); privacy and cookies print the same band. The header
   is the band's only child, so it ends the band: a little room under the tagline (on phones under the
   pennant's point, which would otherwise hang out of the band). */
.night > header.fullWidth:last-child { padding-bottom: 30px; }
@media (max-width: 599.98px) { .night > header.fullWidth:last-child { padding-bottom: 14px; } }
/* the header-only band: its own light on the header, which fills the band */
.night > header.fullWidth:last-child {
  /* right of the wordmark, but never nearer than 48px to where a menu of --menu-w would start */
  --hx: min(calc(var(--pad) + var(--logo-w) + 90px), calc(100% - var(--pad) - var(--menu-w) - 48px)); --hy: 50%;
  --hc: 280px 64%; --ht: 560px 70%; --hdx: 250px;
  --hc-stops: rgba(222, 106, 242, .84) 0%, rgba(206, 92, 234, .62) 32%, rgba(172, 74, 214, .28) 64%, rgba(140, 60, 190, 0) 100%;
  background-color: var(--night-1);
  background-image:
    radial-gradient(var(--hc) at var(--hx) var(--hy), var(--hc-stops)),
    radial-gradient(var(--ht) at calc(var(--hx) + var(--hdx)) var(--hy), var(--lt-stops)),
    linear-gradient(180deg, var(--night-1) 0%, #331449 60%, var(--night-0) 100%);
}
@media (max-width: 999.98px) {
  .night > header.fullWidth:last-child { --hx: min(calc(var(--pad) + var(--logo-w) + 60px), calc(100% - var(--pad) - var(--menu-w) - 48px)); --hc: 200px 62%; --ht: 340px 70%; --hdx: 130px; }
}
@media (max-width: 860px) {
  .night > header.fullWidth:last-child { --hx: min(calc(var(--pad) + var(--logo-w) + 14px), calc(100% - var(--pad) - var(--menu-w) - 48px)); --hc: 110px 58%; --ht: 190px 64%; --hdx: 60px; }
}
/* phones: the strip's band lit low on the left, as today's (its core just off the window's left edge, behind the
   portraits); the header-only band keeps a light in the top corner beside the logo (97% across, 6px down, so the
   centred tagline keeps 4.5:1), faded by the band's foot (the pennant's point) */
@media (max-width: 599.98px) {
  .night { --lx: -4%; --ly: 66%; --lc: 62% 40%; --lm: 40% 32%; --lmdx: 22%; --lt: 120% 46%; --ldx: 40%; }
  .night > header.fullWidth:last-child {
    --hx: 97%; --hy: 6px; --hc: 150px 96px; --ht: 300px 150px; --hdx: -12%;
    --hc-stops: rgba(228, 110, 244, .90) 0%, rgba(212, 96, 236, .60) 30%, rgba(176, 76, 216, .26) 62%, rgba(140, 60, 190, 0) 100%;
    --lt-stops: rgba(156, 68, 200, .55) 0%, rgba(120, 50, 166, .26) 55%, rgba(80, 32, 124, 0) 100%;
  }
}

/* ---------------------------------------------------------------- the day */
.day { display: block; padding-inline: var(--pad); padding-bottom: 8px; }

/* quick search: one white panel under the band (index.php's .contentBox_001 > .searchBox > .content) */
.contentBox_001 { margin-top: 32px; }
.searchBox {
  padding: 14px 18px 14px 26px;
  background: var(--paper); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(59, 23, 84, .06), 0 14px 32px -20px rgba(59, 23, 84, .35);
}
.searchBox .content { display: flex; align-items: center; gap: 22px; }
.quickSearch { flex: none; font: 700 19px/1.1 var(--display); color: var(--violet-deep); white-space: nowrap; }
.mod_catalogfilter { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.filter_group { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.filter_field_location, .filter_field_age { flex: 0 1 220px; min-width: 150px; }
/* the native selects, styled directly: select.select here, #prov_type in the SMS form (uniform.js stays, section 1
   E3: the guard below makes its wrappers invisible) */
.searchBox select.select, .smsContainer #prov_type {
  appearance: none; -webkit-appearance: none; display: block; width: 100%; margin: 0;
  background-image: var(--chev); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
  color: var(--ink); cursor: pointer;
}
.searchBox select.select {
  height: 46px; padding: 0 40px 0 14px; border: 1px solid var(--edge); border-radius: var(--radius);
  background-color: var(--field); font: 400 16px/1.2 var(--text);
}
fieldset.filter_field_gender { flex: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.radio_container { display: flex; gap: 4px; }
.radio_container > span { position: relative; display: flex; align-items: center; }
/* "Clear Spol": hidden as main.js:27 hides it, but before any script runs too */
#ctrl_filter_field_gender > span:first-child { display: none; }
.radio_container label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px 0 8px;
  font: 500 16px/1 var(--text); color: var(--ink); cursor: pointer;
}
/* the label covers its whole row, circle included: one 44px target */
.radio_container label::after { content: ""; position: absolute; inset: 0; }
.radio_container input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0 0 0 4px;
  border: 2px solid var(--violet); border-radius: 50%; background: var(--paper);
  display: grid; place-content: center; cursor: pointer;
}
.radio_container input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--violet-ink); transform: scale(0); }
.radio_container input:checked::before { transform: scale(1); }
/* uniform.js guard (main.js:29, kept unchanged: section 1, E3, approved 2026-11-09). Its wrappers stay
   transparent, so the controls look the same with or without them, before and after Rocket Loader runs main.js */
div.selector, div.radio, div.radio > span { display: contents; }
div.selector > span { display: none; }
div.selector > select, div.radio input { opacity: 1 !important; }

.clearall { flex: none; margin-left: auto; padding-left: 18px; border-left: 1px solid var(--line); }
.clearall a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px;
  font: 500 15px/1 var(--text); color: var(--violet-ink); text-decoration: none; border-radius: 4px;
}
.clearall a::before { content: ""; flex: none; width: 18px; height: 18px; background: var(--cross) center / 18px no-repeat; }

/* section heading: no bar, just violet ink on the day */
.contentHeadline_01 { margin: 56px 0 24px; scroll-margin-top: 16px; }
.contentHeadline_01 h2 { font: 700 28px/1.15 var(--display); color: var(--violet-deep); }

/* cards: 4 across, portrait 380x478, the whole card one link */
.mod_cataloglistcustomstatic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; }
.card { display: block; color: inherit; text-decoration: none; border-radius: 8px; }
.card figure { aspect-ratio: 380 / 478; overflow: hidden; border-radius: var(--radius); background: #e4d8ec; box-shadow: var(--glow-day); }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin-top: 15px; font: 700 17px/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--violet-name); }
.card p { margin-top: 2px; font: 400 15px/1.35 var(--text); color: var(--ink-2); }
.card:focus-visible { outline-offset: 6px; }

/* page numbers, the current page a small violet pennant. The row wraps, centred, 12px between rows, so it stays
   inside the column however many pages there are (restyle only: functions.php's page window is unchanged) */
.pagination { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 12px; }
#pageNav { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 12px 8px; list-style: none; margin: 0; padding: 0; }
#pageNav a, #pageNav .current {
  display: flex; justify-content: center; align-items: center; width: 44px; height: 44px;
  font: 700 18px/1 var(--display); text-decoration: none; border-radius: var(--radius);
}
#pageNav a { color: var(--violet-ink); border: 1.5px solid rgba(107, 47, 142, .32); }
#pageNav .current { position: relative; z-index: 0; height: 58px; padding-bottom: 14px; color: #fff; border-radius: 0; }
#pageNav .current::before,
#pageNav .current::after { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); }
#pageNav .current::before { background: var(--pennant); }
#pageNav .current::after { z-index: -2; background: rgba(77, 26, 99, .28); transform: translate(4px, 3px); }

/* footer: a quiet deeper-lilac band; footer.php's " | " text is hidden and redrawn as hairlines */
.pageAlign > footer {
  display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; min-height: 76px;
  margin-top: 80px; padding-inline: var(--pad);
  background: var(--day-2); border-top: 1px solid var(--line);
  font: 400 15px/1.4 var(--text); color: var(--ink-2);
}
footer .right { display: flex; align-items: center; font-size: 0; }
footer .right a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-size: 15px; color: var(--violet-ink); text-decoration: none; border-radius: 4px;
}
footer .right a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 16px; margin-top: -8px; background: #b7a5c6; }
footer .right a:last-child { margin-right: -10px; }
/* the reCAPTCHA v3 badge (production /registracija, fixed at the bottom right): room under the footer's last line */
body:has(.grecaptcha-badge) .pageAlign > footer { padding-bottom: 80px; }

/* ---------------------------------------------------------------- hover and motion */
@media (hover: hover) {
  #mainNav a:not([aria-current]):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
  .boxPopular figure a:hover img { box-shadow: var(--glow-night-hover); }
  .boxPopular figure a:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
  .card:hover figure { box-shadow: var(--glow-day-hover); }
  /* rule fix (contrast in every state): over the hovered photo's shadow the card violets fell below 4.5:1 on the
     tips of carons (320-719px), so the hovered name takes a deeper violet: #5e2780, 5.12:1 on the darkest shadow
     pixel measured, rgb(196,178,209) */
  .card:hover h3 { color: #5e2780; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
  .clearall a:hover, footer .right a:hover { text-decoration: underline; text-underline-offset: 4px; }
  #pageNav a:hover { background: var(--paper); border-color: var(--violet); }
  .searchBox select.select:hover, .smsContainer #prov_type:hover { border-color: var(--violet); }
}
@media (prefers-reduced-motion: no-preference) {
  .boxPopular img, .card figure { transition: box-shadow .25s ease, transform .25s ease; }
  @media (hover: hover) {
    .boxPopular figure a:hover img, .card:hover figure { transform: translateY(-3px); }
  }
}

/* ---------------------------------------------------------------- in-between widths */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
}
@media (max-width: 999.98px) {
  .mod_cataloglistcustomstatic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
  /* search: the title, the two selects, then gender with the reset link at the right */
  .searchBox { padding: 14px 18px 6px 22px; }
  .searchBox .content { display: block; }
  .quickSearch { margin: 2px 0 10px; }
  .mod_catalogfilter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px 14px; }
  .filter_group { display: contents; }
  .filter_field_location, .filter_field_age { min-width: 0; }
  .clearall { justify-self: end; margin: 0; padding-left: 0; border-left: 0; }
  .clearall a { margin-right: -8px; }
}
@media (max-width: 860px) {
  :root { --logo-w: 360px; }
}

/* ---------------------------------------------------------------- small tablets: the header row holds */
@media (max-width: 719.98px) {
  :root { --gutter: 16px; --logo-w: 290px; --menu-w: 236px; }
  header.fullWidth { gap: 16px; }
  #logo h1 { font-size: 13px; }
  #mainNav a { padding: 34px 12px 16px; font-size: 17px; }
  #mainNav a[aria-current] { width: 96px; padding: 34px 6px 42px; }
  .boxPopular .mod_cataloglist { column-gap: 10px; }
  .boxPopular .nm { font-size: 14px; }
  .contentBox_001 { margin-top: 24px; }
  .searchBox { padding: 14px 14px 6px 18px; }
  .contentHeadline_01 { margin: 40px 0 18px; }
  .contentHeadline_01 h2 { font-size: 24px; }
  .mod_cataloglistcustomstatic { gap: 30px 16px; }
  .card h3 { margin-top: 12px; font-size: 16px; }
  .card p { font-size: 14px; }
  .pagination { margin-top: 6px; }
  #pageNav { column-gap: 6px; }
  .pageAlign > footer { margin-top: 56px; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 599.98px) {
  :root { --logo-w: clamp(260px, 74vw, 340px); }
  header.fullWidth { flex-direction: column; align-items: stretch; gap: 0; }
  #logo { padding: 18px 0 14px; }
  /* the rail the pennant hangs from */
  #mainNav { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); border-top: 1px solid rgba(234, 217, 245, .22); }
  #mainNav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #mainNav li { display: flex; justify-content: center; }
  #mainNav a { padding: 14px 12px; text-align: center; }
  #mainNav a[aria-current] { width: 100px; padding: 14px 8px 30px; }
  #mainNav a:not([aria-current]) { width: 100%; }
  /* the logo centred in the window and its tagline centred under the wordmark, as today */
  #logo a { margin-inline: auto; }
  #logo h1 { text-align: center; }

  .boxPopular { padding: 14px var(--pad) 26px; }
  /* a native scroll row; the extra padding (with the negative margin) keeps the glow from being cut.
     rule fix (visible focus): Chrome scrolls a focused element into its scroller only when no part of it lies
     inside the snapport (the scrollport less its scroll-padding), so Tab onto a portrait the row showed only in
     part left it cut. The padding is the gutter plus one portrait on each side, so a portrait whose ring the
     window's edge cuts lies wholly outside it and is scrolled in whole. Each portrait's snap area starts at its
     own inline end (scroll-margin -104px), so at rest and after a swipe a portrait starts 16px in */
  .boxPopular .mod_cataloglist {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: calc(var(--gutter) + 104px); scrollbar-width: none;
    margin: -14px calc(-1 * var(--gutter)); padding: 22px var(--gutter) 24px;
  }
  .boxPopular .mod_cataloglist::-webkit-scrollbar { display: none; }
  .boxPopular .item { flex: 0 0 104px; scroll-snap-align: start; scroll-margin-inline-start: -104px; }

  .contentBox_001 { margin-top: 20px; }
  .searchBox { padding: 14px 14px 6px; }
  .quickSearch { font-size: 18px; }
  .mod_catalogfilter { gap: 10px; }
  fieldset.filter_field_gender { grid-column: 1 / -1; margin-top: -4px; }
  .radio_container label { padding-right: 16px; }
  .clearall { grid-column: 1 / -1; justify-self: stretch; margin-top: -6px; padding-top: 4px; border-top: 1px solid var(--line); }
  .clearall a { margin-right: 0; padding-left: 2px; }

  .contentHeadline_01 { margin: 36px 0 16px; }
  .contentHeadline_01 h2 { font-size: 22px; }
  .mod_cataloglistcustomstatic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
  .card h3 { margin-top: 11px; font-size: 14px; }

  /* rule fix (visible focus): 6px between the copyright line and the links, so a focused link's ring (5px out)
     no longer touches the line's glyphs (1.1:1 against them) */
  .pageAlign > footer { flex-direction: column; justify-content: center; padding-block: 16px 12px; gap: 6px 0; text-align: center; font-size: 14px; }
  footer .right a { font-size: 14px; }
  footer .right a:last-child { margin-right: 0; }
}
@media (max-width: 439px) {
  /* the two selects stack, so "Izberi Starost" and a long selected town are never cut (side by side from 433px) */
  .mod_catalogfilter { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 389px) {
  #pageNav { column-gap: 3px; }
}
@media (max-width: 359.98px) {
  /* rule fix (touch targets, 44px): the tiles keep 44 x 44px. Up to six tiles stay one row with 3px gaps; seven or
     more wrap into centred rows of four (4 + 3) with 8px gaps, the row gap clearing the current page's point */
  #pageNav:has(> li:nth-child(7)) { max-width: calc(4 * 44px + 3 * 8px); column-gap: 8px; }
}

/* ---------------------------------------------------------------- Windows high contrast (forced colors) */
@media (forced-colors: active) {
  /* the pennant and the current-page shape are background images, which forced colors drop */
  #mainNav a[aria-current], #pageNav .current { forced-color-adjust: none; }
  .radio_container input:checked::before { forced-color-adjust: none; background: CanvasText; }
  .searchBox select.select, .smsContainer #prov_type { appearance: auto; -webkit-appearance: auto; background-image: none; }
}
