/* The hidden attribute must win over component display rules (e.g. .form-group). */
[hidden] { display: none !important; }

/* ===== VARIABLES ===== */
/* Variant B redesign (docs/06-redizajn-b.html): logo blue, Rubik + Onest, rounder shapes, softer shadows.
   Old names stay as aliases so pages not yet ported keep working. */
:root {
  --parchment: #F8F4EF;
  --parchment-dark: #EFE8DD;
  --ink: #1A1F2E;
  --ink-muted: #4A5168;
  --ink-faint: #858DA0;
  --red: #CF3B3B;
  --red-dark: #B02F2F;
  --red-light: #FCECEB;
  /* all blues derived from the logo blue #24418C */
  --blue: #24418C;
  --blue-deep: #192F66;
  --blue-night: #121F3F;
  --blue-light: #E8EDFA;
  /* green = support / done (the swipe deck), same shades as .tag--green and .status--implemented */
  --green: #1A7A3D;
  --green-light: #E8F5ED;
  --gold: #B8861E;
  --gold-light: #FBF3DF;
  --border: #E6DFD3;
  --border-dark: #D3CABB;
  --white: #FFFFFF;
  --display: 'Rubik', 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, sans-serif;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --pill: 999px;
  --soft: 0 1px 2px rgba(26,31,46,.04), 0 6px 20px rgba(26,31,46,.05);
  --max-width: 1320px;
  --nav-height: 70px;
  /* aliases */
  --font-display: var(--display);
  --font-body: var(--body);
  --radius-sm: var(--r-sm);
  --radius: var(--r);
  --radius-lg: var(--r-lg);
  --radius-full: var(--pill);
  --shadow-sm: var(--soft);
  --shadow-md: 0 2px 6px rgba(26,31,46,.06), 0 10px 28px rgba(26,31,46,.08);
  --shadow-lg: 0 2px 6px rgba(26,31,46,.08), 0 16px 40px rgba(26,31,46,.12);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { line-height: 1.7; }

/* ===== LAYOUT ===== */
/* Same outer edge as the rounded panels (1320px content + 20px gutters) */
.container { max-width: 1360px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 96px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-main { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }

/* ===== FLAG STRIPE ===== */
.stripe { height: 4px; background: linear-gradient(90deg, var(--red) 0 33.3%, var(--blue) 33.3% 66.6%, var(--parchment-dark) 66.6%); }

/* ===== SECTION HEADER ===== */
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-header__title { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; font-size: clamp(1.5rem, 2.6vw, 2rem); display: flex; align-items: center; gap: 12px; }
.section-header__title .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: var(--red-light); color: var(--red); }
.section-header__count { font-family: var(--body); font-size: 0.875rem; font-weight: 500; color: var(--ink-faint); }
.section-header__link { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 8px 14px; border-radius: var(--pill); font-weight: 600; font-size: 0.9rem; color: var(--blue); }
.section-header__link:hover { background: var(--blue-light); }

/* ===== NAVIGATION ===== */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1360px; margin: 0 auto; padding: 0 20px; height: var(--nav-height); display: flex; align-items: center; gap: 36px; }
.nav-logo { display: flex; align-items: center; flex: none; color: var(--blue); }
.logo-svg { display: block; height: 36px; width: auto; fill: currentColor; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link { display: block; padding: 8px 14px; border-radius: var(--pill); font-weight: 500; font-size: 0.93rem; color: var(--ink-muted); white-space: nowrap; }
.nav-link:hover { background: var(--parchment); color: var(--ink); }
.nav-link.active { background: var(--blue-light); color: var(--blue); }
.nav-actions { display: flex; min-width: 0; align-items: center; gap: 8px; margin-left: auto; }
.nav-logout { display: contents; }
.nav-new { white-space: nowrap; }
.nav-account { min-width: 0; }
.nav-account__name { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Signed in: initials and first name */
.me-chip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 14px 4px 4px; border-radius: var(--pill); border: 1.5px solid var(--border); background: var(--white); font-weight: 600; font-size: 0.92rem; }
.me-chip__av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--display); font-weight: 700; font-size: 0.82rem; }
.me-chip:hover, .me-chip.active { border-color: var(--blue); color: var(--blue); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: var(--ink-muted); }
.icon-btn:hover { background: var(--parchment); color: var(--ink); }
/* Everything in the top bar is one height: links, buttons, the script switch, the account chip and sign-out */
.nav-inner { --nav-h: 38px; }
.nav-link { display: flex; align-items: center; height: var(--nav-h); }
.nav-inner .btn, .me-chip { height: var(--nav-h); padding-top: 0; padding-bottom: 0; }
.me-chip { padding-left: 3px; }
.me-chip__av { width: 30px; height: 30px; }
.nav-actions .icon-btn { width: var(--nav-h); height: var(--nav-h); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; place-items: center; font-size: 1.6rem; color: var(--ink); }
/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--pill); font-weight: 600; font-size: 0.92rem; line-height: 1.2; white-space: nowrap; cursor: pointer; border: 1.5px solid var(--border); background: var(--white); color: var(--ink); transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--ink-faint); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-secondary, .btn-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.btn-secondary:hover, .btn-light:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.6); }
.btn-white { background: #fff; border-color: #fff; color: var(--blue); }
.btn-blue-outline { background: var(--white); border-color: var(--blue); color: var(--blue); }
.btn-blue-outline:hover, .btn-blue-outline.active { background: var(--blue-light); border-color: var(--blue); }
.nav-webmaster { margin-left: 8px; }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink-faint); }
.btn-ghost { background: transparent; color: var(--ink-muted); border-color: transparent; padding-left: 0; }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 7px 14px; font-size: 0.84rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn i { font-size: 1.1em; }

/* ===== TAGS / BADGES ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--parchment-dark);
  color: var(--ink-muted);
  white-space: nowrap;
}
.tag--red { background: var(--red-light); color: var(--red-dark); }
.tag--blue { background: var(--blue-light); color: var(--blue); }
.tag--gold { background: var(--gold-light); color: var(--gold); }
.tag--green { background: #E8F5ED; color: #1A7A3D; }
/* Implemented ("Спроведено") badge: Pages/Shared/_ImplementedBadge */
/* .page-hero .tag (later in this file) paints hero tags white; .tag.tag--done outranks it so the badge stays green */
.tag--done, .page-hero .tag.tag--done, .lb-row__where .tag--done { position: relative; padding: 4px 11px; background: #E8F5ED; color: #1A7A3D; }
.tag--done i, .lb-row__where .tag--done i { color: inherit; }
/* Same size as the place pill beside it (.pd-where), so vertical-align: middle lines the two up */
.pd-head .tag.tag--done { margin: 12px 0 0 8px; padding: 7px 14px; font-size: 0.9rem; vertical-align: middle; }
.pd-closed-note { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: var(--r); background: #E8F5ED; color: #1A7A3D; font-size: 0.9rem; font-weight: 600; }

/* ===== TAG LINKS (Pages/Shared/_ProposalTags, Models/ProposalTagsModel) =====
   .tag-link            a tag that is a link (place /mesta/{slug}, "Цела Србија" /predlozi?nivo=srbija, theme /teme/{slug});
                        goes on top of .tag / .tag--red / .tag--blue (Pill) or .tag-link--inline, or alone (Bare, caller's class)
   .tag-link--inline    icon + <b>name</b> with no pill: the "where" line of rows and cards
   Stretched card: a card that opens the proposal without being one big <a> (no nested links):
   .card-stretch        on the card (position: relative); the card itself is NOT an <a>
   .card-stretch__link  on the title link; its ::after covers the whole card, so a click anywhere opens the proposal.
                        The title and its wrappers must not be positioned (or ::after only covers them).
   .tag-link inside .card-stretch sits above that layer (z-index 1), so tags open their own pages. */
.tag-link { position: relative; transition: box-shadow .15s, background-color .15s, color .15s; }
a.tag-link.tag:hover { box-shadow: inset 0 0 0 1px currentColor; }
a.tag-link.tag:active { box-shadow: inset 0 0 0 2px currentColor; }
.tag-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: var(--pill); }
.tag-link--inline { display: inline-flex; align-items: center; gap: 5px; }
.tag-link--inline:hover b, .tag-link--inline:active b { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.tag-link--inline:focus-visible { border-radius: 6px; }
.pl-where .nat { color: var(--red); }
.card-stretch { position: relative; }
.card-stretch__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-stretch__link:focus-visible { outline: none; }
.card-stretch__link:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: var(--r); }
.card-stretch .tag-link { position: relative; z-index: 1; }

/* ===== STATUS BADGE ===== */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 600; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status--active::before { background: #22A855; }
.status--pending::before { background: var(--gold); }
.status--rejected::before { background: var(--red); }
.status--implemented::before { background: #1A7A3D; }
.status--merged::before { background: var(--ink-faint); }

/* ===== PROPOSAL CARD ===== */
.card { background: var(--white); border-radius: var(--r); padding: 24px; box-shadow: var(--soft); display: flex; flex-direction: column; gap: 18px; border: 1px solid transparent; transition: border-color .15s; }
.card:hover { border-color: var(--border); }
.card-header { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; }
.card-title { flex: 1; font-family: var(--display); font-weight: 500; font-size: 1.08rem; line-height: 1.4; color: var(--ink); }
.card-title:hover { color: var(--blue); }
.card-excerpt { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card-meta-item { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--ink-faint); }
.card-meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.card-meta-item--end { margin-left: auto; }
.card-vote { flex: none; min-width: 66px; padding: 10px 8px; border-radius: 14px; background: var(--blue-light); color: var(--blue); text-align: center; }
.card-vote__count { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1; color: inherit; }
.card-vote__label { margin-top: 4px; font-size: 0.72rem; color: inherit; opacity: .7; }
/* 1000+ supports: the count catches fire */
.card-vote.hot { background: #FFEBDD; color: #A8340F; }
.card-vote.hot i { display: block; margin: 0 auto 2px; font-size: 1.1rem; color: #F05A1A; transform-origin: 50% 92%; animation: flicker 1.7s ease-in-out infinite; }
.card-vote.hot i::before { color: #FFB627; opacity: 1; }
@keyframes flicker { 0%,100% { transform: scale(1,1) rotate(-2deg); } 22% { transform: scale(1.06,1.14) rotate(2deg); } 48% { transform: scale(.97,1.03) rotate(-1deg); } 74% { transform: scale(1.04,1.1) rotate(1.5deg); } }
.card-vote__btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all 0.15s; background: white; font-size: 1rem; }
.card-vote__btn:hover { border-color: var(--red); background: var(--red-light); }
.card-vote__btn.voted { border-color: var(--red); background: var(--red); color: white; }

/* ===== HERO (home slider) ===== */
.hero-wrap { padding: 20px 20px 0; }
.hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; border-radius: var(--r-lg); max-width: 1320px; margin: 0 auto; }
/* logo bubble as a faint watermark */
.hero::before { content: ""; position: absolute; width: 560px; aspect-ratio: 167 / 159; right: -170px; top: -40px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20167.09%20158.9207%27%3E%3Cpath%20fill%3D%27%23ffffff%27%20d%3D%27M125.84%2C0H41.25C18.47%2C0%2C0%2C18.27%2C0%2C40.81v52.32c0%2C16.16%2C9.49%2C30.12%2C23.26%2C36.74v25.01c0%2C3.4%2C3.98%2C5.27%2C6.64%2C3.13l29.88-24.07h66.06c22.78%2C0%2C41.25-18.27%2C41.25-40.81v-52.32c0-22.54-18.47-40.81-41.25-40.81ZM133.46%2C51.32l-51.04%2C51.04c-2.75%2C2.76-6.37%2C4.13-9.97%2C4.13-1.58%2C0-3.16-.26-4.67-.79-.02-.01-.05-.02-.08-.03-2.11-.67-4.09-1.85-5.76-3.52l-28.68-28.6801c-5.62-5.62-5.62-14.73%2C0-20.35%2C2.81-2.81%2C6.49-4.22%2C10.17-4.22%2C3.69%2C0%2C7.37%2C1.41%2C10.18%2C4.22l19.08%2C19.09%2C40.83-40.83c2.75-2.76%2C6.36-4.13%2C9.97-4.13s7.22%2C1.37%2C9.97%2C4.13c5.5099%2C5.5%2C5.5099%2C14.43%2C0%2C19.94Z%27/%3E%3C/svg%3E") no-repeat center / contain; opacity: .06; transform: rotate(-8deg); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; padding: 24px 64px 64px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); background: rgba(255,255,255,.1); font-size: 0.85rem; font-weight: 500; color: #D7DFF4; }
.hero-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -0.015em; margin-top: 20px; color: #fff; }
.hero-subtitle { margin-top: 20px; font-size: 1.08rem; color: #D1DAF0; max-width: 46ch; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 26px 22px; text-align: center; transition: background .15s, border-color .15s; }
.hero-stat:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.24); }
.hero-stat__number { font-family: var(--display); font-weight: 700; font-size: 2.3rem; line-height: 1; }
.hero-stat__label { margin-top: 8px; font-size: 0.88rem; color: #C0CBE7; }
/* Slider: one banner at a time, swipe or arrows (js/home.js) */
.hs { position: relative; max-width: 1320px; margin: 0 auto; }
.hs-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: var(--r-lg); }
.hs-track::-webkit-scrollbar { display: none; }
.hs-track > .hero { flex: 0 0 100%; scroll-snap-align: start; max-width: none; margin: 0; }
.hero--red { background: var(--red); }
.hero--night { background: var(--blue-night); }
.hero--red .btn-white { color: var(--red-dark); }
.hero--night .btn-white { color: var(--blue-night); }
.hero-panel { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 22px 22px 14px; }
.hero-panel__title { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.hero-places a { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; }
.hero-places a:hover { background: rgba(255,255,255,.12); }
.hero-places b { font-weight: 600; }
.hero-places span { grid-column: 1; font-size: 0.8rem; color: rgba(255,255,255,.72); }
.hero-places em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-family: var(--display); font-weight: 700; font-size: 0.88rem; padding: 4px 10px; border-radius: var(--pill); background: rgba(255,255,255,.16); }
.hero-steps { counter-reset: s; }
.hero-steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; padding: 12px 0; color: #D7DFF4; }
.hero-steps li + li { border-top: 1px solid rgba(255,255,255,.1); }
.hero-steps li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue-night); font-family: var(--display); font-weight: 700; font-size: 0.9rem; }
.hs-ctrl { position: absolute; left: 64px; right: 64px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.hs-ctrl > * { pointer-events: auto; }
.hs-dots { display: flex; align-items: center; gap: 6px; }
.hs-dots button { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.35); transition: width .25s, background .25s; }
.hs-dots button[aria-current="true"] { width: 26px; background: #fff; }
.hs-arrows { display: flex; gap: 8px; }
.hs-arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); color: #fff; font-size: 1rem; transition: background .15s, border-color .15s; }
.hs-arrow:hover:not(:disabled) { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); }
.hs-arrow:disabled { opacity: .4; cursor: default; }

/* ===== THEME GRID ===== */
.themes-band-wrap { padding: 0 20px; }
/* Home (the only page with .hero-wrap): one gap between all blocks and above the footer, half the usual section spacing */
body:has(main > .hero-wrap) { --home-gap: 36px; }
main:has(> .hero-wrap) > .hero-wrap ~ * { margin-top: var(--home-gap); padding-top: 0; }
main:has(> .hero-wrap) > .section { padding-bottom: 0; }
main:has(> .hero-wrap) + .footer-wrap { padding-top: var(--home-gap); }
.themes-band { background: var(--white); border-radius: var(--r-lg); max-width: 1320px; margin: 0 auto; }
.themes-band .container { padding: 0 56px; }
.theme-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--parchment); transition: background .15s; }
.theme-card:hover { background: var(--blue-light); }
.theme-card__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--white); display: grid; place-items: center; font-size: 1.5rem; color: var(--blue); flex: none; }
.theme-card__name { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.theme-card__count { margin-top: 2px; font-size: 0.78rem; color: var(--ink-faint); }

/* ===== RECENT LIST ===== */
.recent { background: var(--white); border-radius: var(--r); box-shadow: var(--soft); padding: 6px; }
.recent a { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px; }
.recent a:hover { background: var(--parchment); }
.recent .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); font-size: 1.15rem; flex: none; }
.recent .t { flex: 1; font-weight: 500; font-size: 0.93rem; }
.recent .pl { font-size: 0.8rem; color: var(--ink-faint); }
.recent .v { flex: none; display: inline-flex; gap: 4px; align-items: center; padding: 3px 10px; border-radius: var(--pill); background: var(--blue-light); color: var(--blue); font-size: 0.8rem; font-weight: 600; }
.recent .d { flex: none; min-width: 48px; text-align: right; font-size: 0.78rem; color: var(--ink-faint); }

/* ===== FILTERS ===== */
.filters {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.filter-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.filter-select {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  -webkit-appearance: none;
}
.filter-select:focus { outline: 2px solid var(--red); outline-offset: 1px; }

/* ===== VOTE BLOCK (detail page) ===== */
.vote-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.vote-block__count {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.vote-block__label {
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.vote-block__bar {
  height: 4px;
  background: var(--parchment-dark);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  overflow: hidden;
}
.vote-block__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), #E05050);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.vote-block__btn {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: white;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.vote-block__btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.vote-block__btn.voted { background: var(--blue); }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-widget__header {
  padding: 14px 20px;
  background: var(--parchment-dark);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.sidebar-widget__body { padding: 20px; }
.sidebar-list { display: flex; flex-direction: column; }
.sidebar-list-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
}
.sidebar-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list-item__title { color: var(--ink); line-height: 1.4; flex: 1; }
.sidebar-list-item__count { font-weight: 700; color: var(--ink-muted); flex-shrink: 0; font-size: 0.8rem; }

/* ===== PROPOSAL DETAIL ===== */
.proposal-header {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.proposal-header__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.proposal-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.proposal-body {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink-muted);
}
.proposal-body p + p { margin-top: 1.2em; }

/* ===== COMMENTS ===== */
.comment {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}
.comment__content { flex: 1; }
.comment__author { font-weight: 600; font-size: 0.875rem; margin-bottom: 4px; }
.comment__time { font-size: 0.75rem; color: var(--ink-faint); margin-left: 8px; }
.comment__body { font-size: 0.9rem; line-height: 1.65; }
.comment--reply { padding-left: 50px; }

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.form-input, .form-textarea, .form-select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color 0.15s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--red);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.78rem; color: var(--ink-faint); }
.form-error { font-size: 0.78rem; color: var(--red); }

.account-check__box { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.auth-card__more { text-align: center; font-size: 0.875rem; color: var(--ink-faint); margin-top: 20px; }
.auth-card__more a { color: var(--red); font-weight: 600; }

/* ===== PLACE CARD ===== */
.place-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.15s;
}
.place-card:hover { border-color: var(--border-dark); box-shadow: var(--shadow-sm); }
.place-card__region {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.place-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.place-card__stats { display: flex; gap: 16px; }
.place-card__stat { font-size: 0.8rem; color: var(--ink-muted); }
.place-card__stat strong { color: var(--ink); font-weight: 700; }

/* ===== FOOTER ===== */
/* Page bodies end without bottom padding; this is the one gap above the footer on every page */
.footer-wrap { padding: 36px 20px 20px; }
.footer { background: var(--blue-night); color: #A5B2D4; border-radius: var(--r-lg); max-width: 1320px; margin: 0 auto; padding: 56px 0 28px; }
.footer .container { padding: 0 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand__name { display: inline-block; color: #fff; }
.footer-brand__name .logo-svg { height: 34px; }
.footer-brand__desc { margin-top: 10px; font-size: 0.9rem; line-height: 1.6; max-width: 40ch; }
.footer-col__title { color: #fff; font-weight: 600; font-size: 0.92rem; margin-bottom: 12px; }
.footer-col__list { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.footer-link:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; }
.footer-bottom__nav { display: flex; gap: 18px; }
/* Footer social links (_Socials), under the brand text */
.socials { margin-top: 22px; }
.socials__head { color: #fff; font-weight: 600; font-size: 0.92rem; }
.socials__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.social { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; transition: background .15s, border-color .15s; }
.social:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.22); }
.social:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.social > i { font-size: 1.45rem; }
.social > span:not(.sr-only) { display: grid; line-height: 1.25; }
.social b { font-weight: 600; font-size: 0.88rem; }
.social small { font-size: 0.75rem; color: #A5B2D4; }
@media (prefers-reduced-motion: reduce) { .social { transition: none; } }

/* ===== PAGE HERO (inner pages) ===== */
/* A rounded blue panel under the nav, like the prototype headers */
.page-hero { padding: 20px 20px 0; }
.page-hero > .container, .page-hero > .container-narrow { position: relative; overflow: hidden; max-width: 1320px; margin: 0 auto; padding: 44px 56px 40px; border-radius: var(--r-lg); background: var(--blue); color: #fff; }
.page-hero > .container::after, .page-hero > .container-narrow::after { content: ""; position: absolute; right: -90px; top: -120px; width: 420px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none; }
.page-hero__breadcrumb { position: relative; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 0.88rem; color: #C0CBE7; }
.page-hero__breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.page-hero__title { position: relative; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; color: #fff; }
.page-hero__desc { position: relative; margin-top: 10px; max-width: 62ch; font-size: 1.05rem; line-height: 1.55; color: #D1DAF0; }
.page-hero .tag { position: relative; background: rgba(255,255,255,.14); color: #fff; }

/* ===== DIASPORA BANNER ===== */
.diaspora-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #0D2952 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 48px 0;
}
.diaspora-banner__text { color: white; }
.diaspora-banner__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.diaspora-banner__desc { font-size: 0.9rem; opacity: 0.75; max-width: 400px; line-height: 1.65; }

/* ===== EMPTY STATE ===== */

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 0;
}
.pagination__btn {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0 10px;
}
.pagination__btn:hover { border-color: var(--ink); color: var(--ink); }
.pagination__btn.active { background: var(--ink); border-color: var(--ink); color: white; }
.pagination__ellipsis { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--ink-faint); font-size: 0.85rem; }

/* ===== ALERT ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border-left: 3px solid;
  margin-bottom: 16px;
}
.alert--success { background: #EBF7F1; color: #1A6B3E; border-color: #22A855; }
.alert--error { background: var(--red-light); color: var(--red-dark); border-color: var(--red); }
.alert--info { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }
.alert--warning { background: var(--gold-light); color: #7A5300; border-color: var(--gold); font-weight: 600; }

/* ===== PROPOSAL FORM / AUTHOR VIEW ===== */
.proposal-form { padding: 32px; }
.proposal-form__levels { border: 0; padding: 0; }
.proposal-form__radio { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; margin-right: 20px; }
.proposal-form select[size] { padding: 4px; }
.proposal-dates { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--ink-faint); }
.proposal-note { margin-top: 8px; white-space: pre-line; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-main { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 40px 88px; gap: 40px; }
  .hs-ctrl { left: 40px; right: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .diaspora-banner { flex-direction: column; }
}
@media (max-width: 1100px) {
  .nav-inner { gap: 20px; }
  .nav-link { padding: 8px 10px; }
  .nav-new { padding: 7px 9px; }
  .nav-new__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* No room for the webmaster pill next to the main links; /widget stays in the footer */
@media (max-width: 1200px) { .btn-blue-outline.nav-webmaster { display: none; } }
@media (max-width: 900px) {
  /* Below this the nav moves into the menu */
  .nav-menu, .nav-actions { display: none; }
  .burger { display: grid; }
  .logo-svg { height: 28px; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; }
}
@media (max-width: 720px) {
  .container { padding: 0 12px; }
  .hero-wrap { padding: 12px 12px 0; }
  .hero-inner { padding: 40px 22px 76px; }
  .hs-ctrl { left: 22px; right: 22px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .hero-stat { padding: 20px 12px; }
  .hero-stat__number { font-size: 1.8rem; }
  .section { padding: 52px 0; }
  body:has(main > .hero-wrap) { --home-gap: 26px; }
  .section-header { flex-wrap: wrap; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .themes-band-wrap { padding: 0 12px; }
  .themes-band .container { padding: 0 22px; }
  .recent a { flex-wrap: wrap; gap: 6px 12px; }
  .recent .t { flex-basis: calc(100% - 54px); }
  .recent .pl { margin-left: 50px; }
  .page-hero { padding: 12px 12px 0; }
  .page-hero > .container, .page-hero > .container-narrow { padding: 30px 22px 28px; }
  .footer-wrap { padding: 24px 12px 12px; }
  .footer .container { padding: 0 22px; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .section { padding: 48px 0; }
  body:has(main > .hero-wrap) { --home-gap: 24px; }
  .auth-card { padding: 28px 20px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease both; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.1s; }
.fade-up-3 { animation-delay: 0.15s; }
.fade-up-4 { animation-delay: 0.2s; }

/* ===== CONSENT BANNER ===== */
.consent-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 480px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.consent-banner p { font-size: 0.85rem; opacity: 0.8; flex: 1; line-height: 1.5; }
.consent-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent-btn-accept {
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.consent-btn-reject {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
}

/* ===== MOBILE MENU ===== */
/* Rendered in _Layout (so the server's Latin conversion covers it); js/menu.js opens and closes it */
.mm-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(18,31,63,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
.mm { position: fixed; top: 0; bottom: 0; left: 50%; z-index: 1001; width: 100%; max-width: 430px; transform: translateX(-50%); display: flex; flex-direction: column;
      background: var(--blue); color: #fff; overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; translate: 0 -12px;
      transition: opacity .2s, translate .25s ease, visibility 0s .25s; }
.mm-open .mm-scrim { opacity: 1; pointer-events: auto; }
.mm-open .mm { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .2s, translate .25s ease; }
.mm-open { overflow: hidden; }
.mm__bar { flex: none; height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 6px 0 12px; }
.mm__bar .logo-svg { height: 24px; }
.mm__x { justify-self: end; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: #fff; }
.mm__x:hover { background: rgba(255,255,255,.15); }
.mm__script { justify-self: start; display: inline-flex; padding: 3px; border-radius: var(--pill); background: rgba(255,255,255,.12); }
.mm__script a { padding: 4px 10px; border-radius: var(--pill); font-size: 0.78rem; font-weight: 600; color: #C0CBE7; }
.mm__script a[aria-current] { background: #fff; color: var(--blue); }
.mm__acct { margin: 8px 16px 0; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.1); }
.mm__acct p { font-size: 0.9rem; line-height: 1.45; color: #D7DFF4; }
.mm__acct-btns { display: flex; gap: 10px; margin-top: 12px; }
.mm__acct-btns .btn { flex: 1; justify-content: center; height: 44px; }
.mm__who { display: flex; align-items: center; gap: 12px; color: #fff; }
.mm__who b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.mm__who small { display: block; font-size: 0.82rem; color: #C6D0EC; }
.mm__av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue); font-family: var(--display); font-weight: 700; }
.mm__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mm__list a, .mm__list button { padding: 7px 12px; border-radius: var(--pill); background: rgba(255,255,255,.12); font-size: 0.86rem; font-weight: 600; color: #fff; }
.mm__list button { background: none; color: #C6D0EC; }
.mm__nav { padding: 14px 12px 0; }
.mm__nav a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.2; color: #fff; }
.mm__nav a i { font-size: 1.3rem; color: #C0CBE7; }
.mm__nav a:hover { background: rgba(255,255,255,.1); }
.mm__nav a[aria-current="page"] { background: rgba(255,255,255,.12); }
.mm__nav a[aria-current="page"] i { color: #fff; }
.mm__about { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 24px 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 0.86rem; }
.mm__about a { color: #C6D0EC; }
.mm__act { position: sticky; bottom: 0; margin-top: auto; padding: 20px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(36,65,140,0), var(--blue) 18px); }
.mm__act .btn { width: 100%; justify-content: center; height: 52px; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .mm, .mm-scrim { transition: none !important; } .card-vote.hot i { animation: none; } .hs-track { scroll-behavior: auto; } }

/* ===== PROPOSALS LIST (/predlozi, docs/10-predlozi-b.html) ===== */
.pl-tools { position: relative; margin-top: 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pl-search { position: relative; flex: 1 1 420px; display: flex; align-items: center; }
.pl-search > i { position: absolute; left: 18px; font-size: 1.2rem; color: var(--ink-faint); pointer-events: none; }
.pl-search input { width: 100%; height: 54px; border: 0; border-radius: var(--pill); padding: 0 52px; font: inherit; font-size: 1.02rem; color: var(--ink); background: var(--white); }
.pl-search input::-webkit-search-cancel-button { display: none; }
.pl-search input:focus-visible { outline: 3px solid #F4C7C3; outline-offset: 2px; }
.pl-clear { position: absolute; right: 6px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-faint); font-size: 1.15rem; }
.pl-level { display: inline-flex; padding: 5px; border-radius: var(--pill); background: rgba(255,255,255,.12); }
.pl-level a { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 20px; border-radius: var(--pill); font-weight: 600; font-size: 0.95rem; color: #D7DFF4; }
.pl-level a small { font-size: 0.8rem; color: #A9B6DA; }
.pl-level a:hover { color: #fff; }
.pl-level a[aria-current] { background: #fff; color: var(--blue); }
.pl-level a[aria-current] small { color: var(--ink-faint); }

.pl-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 36px; padding-bottom: 0; }
.pl-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.pl-box { background: var(--white); border-radius: var(--r); box-shadow: var(--soft); padding: 18px 12px 12px; }
.pl-box h2 { padding: 0 10px 8px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.pl-themes > * { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 0.92rem; font-weight: 500; color: var(--ink-muted); }
.pl-themes > * > i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--parchment); color: var(--blue); font-size: 1rem; }
.pl-themes > * > span { flex: 1; min-width: 0; }
.pl-themes small { font-size: 0.8rem; color: var(--ink-faint); font-weight: 600; }
.pl-themes a:hover { background: var(--parchment); }
.pl-themes a[aria-current] { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.pl-themes a[aria-current] > i { background: var(--blue); color: #fff; }
.pl-themes .pl-off { opacity: .45; }
.pl-add { background: var(--red-light); box-shadow: none; padding: 20px 20px 18px; }
.pl-add h2 { padding: 0; }
.pl-add p { margin-top: 6px; font-size: 0.88rem; color: var(--ink-muted); }
.pl-add .btn { margin-top: 14px; width: 100%; justify-content: center; }

.pl-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.pl-feed-head h2 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.pl-feed-head h2 small { font-family: var(--body); font-weight: 400; font-size: 0.95rem; color: var(--ink-faint); margin-left: 8px; }
.pl-seg { display: inline-flex; background: var(--parchment-dark); border-radius: var(--pill); padding: 4px; }
.pl-seg a { padding: 7px 14px; border-radius: var(--pill); font-size: 0.86rem; font-weight: 600; color: var(--ink-muted); }
.pl-seg a[aria-current] { background: var(--white); color: var(--ink); box-shadow: var(--soft); }
.pl-active { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.pl-x { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 14px; border-radius: var(--pill); background: var(--blue-light); color: var(--blue); font-size: 0.85rem; font-weight: 600; }
.pl-x i { font-size: 0.9rem; }

.pl-list { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.pl-prop { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); padding: 20px 22px 18px 24px; }
.pl-where { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--ink-faint); }
.pl-where a { display: inline-flex; align-items: center; gap: 5px; }
.pl-where b { font-weight: 600; color: var(--ink-muted); }
.pl-where a:hover b { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.pl-where i { font-size: 0.95rem; color: var(--blue); }
.pl-where .pl-nat { color: var(--red); }
.pl-title { display: block; margin-top: 6px; font-weight: 600; font-size: 1.06rem; line-height: 1.4; }
.pl-title:hover { color: var(--blue); }
.pl-meta { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 0.82rem; color: var(--ink-faint); }
.pl-c { display: inline-flex; align-items: center; gap: 4px; }
.pl-votes { min-width: 76px; align-self: start; padding: 10px 8px; border-radius: 14px; background: var(--blue-light); color: var(--blue); text-align: center; }
.pl-votes b { display: flex; align-items: center; justify-content: center; gap: 4px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1; }
.pl-votes small { display: block; margin-top: 4px; font-size: 0.72rem; opacity: .75; }
.pl-votes.hot { background: #FFEBDD; color: #A8340F; }
.pl-votes.hot i { font-size: 1.1rem; color: #F05A1A; transform-origin: 50% 92%; animation: flicker 1.7s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(255,138,40,.55)); }
.pl-votes.hot i::before { color: #FFB627; opacity: 1; }
.pl-more { margin-top: 20px; text-align: center; }
.pl-more p { font-size: 0.86rem; color: var(--ink-faint); }
.pl-more .btn { margin-top: 12px; min-width: 260px; justify-content: center; }
.pl-empty { margin-top: 18px; padding: 48px 24px; text-align: center; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); }
.pl-empty > i { font-size: 2.4rem; color: var(--blue); }
.pl-empty h3 { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.pl-empty p { margin-top: 6px; color: var(--ink-muted); }
.pl-empty .btn { margin-top: 18px; }
@media (max-width: 1024px) {
  .pl-body { grid-template-columns: 1fr; }
  .pl-side { position: static; }
  .pl-themes { display: flex; flex-wrap: wrap; gap: 6px; }
  .pl-themes > * { width: auto; }
  .pl-add { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pl-votes.hot i { animation: none; } }

/* ===== PROPOSAL PAGE (/predlozi/{slug}, docs/11-predlog-b.html) ===== */
.pd-head > .container { padding-top: 28px; padding-bottom: 48px; }
.pd-where { position: relative; display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 7px 14px; border-radius: var(--pill); background: rgba(255,255,255,.12); font-size: 0.9rem; font-weight: 600; color: #fff; vertical-align: middle; }
a.pd-where:hover { background: rgba(255,255,255,.2); }
.pd-title { position: relative; margin-top: 16px; max-width: 26ch; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; color: #fff; }
.pd-byline { position: relative; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.92rem; color: #C6D0EC; }
.pd-byline span { display: inline-flex; align-items: center; gap: 6px; }

.pd-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-top: 40px; padding-bottom: 0; }
.pd-article { max-width: 720px; }
.pd-text p { font-size: 1.08rem; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
.pd-text p + p { margin-top: 1em; }
.pd-facts { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.pd-sect { margin-top: 48px; scroll-margin-top: 90px; }
.pd-sect h2 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.pd-sect h2 small { font-family: var(--body); font-weight: 600; font-size: 0.85rem; padding: 3px 10px; border-radius: var(--pill); background: var(--parchment-dark); color: var(--ink-muted); }
.pd-signin { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 16px 20px; border-radius: var(--r); background: var(--blue-light); color: var(--ink-muted); }
.pd-signin .btn { flex: none; background: var(--blue); border-color: var(--blue); color: #fff; }
.pd-write { margin-top: 16px; padding: 18px 20px; border-radius: var(--r); background: var(--white); box-shadow: var(--soft); }
.pd-write label { display: block; font-weight: 600; }
.pd-write textarea { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border); font: inherit; line-height: 1.6; resize: vertical; }
.pd-write textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.pd-write__acts { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 0.85rem; color: var(--ink-faint); }
.pd-thread { margin-top: 14px; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); padding: 18px 20px; }
.pd-no-cm { margin-top: 14px; color: var(--ink-muted); }
.cm { display: flex; gap: 12px; scroll-margin-top: 90px; }
.cm--reply { margin-top: 14px; margin-left: 22px; padding-left: 18px; border-left: 3px solid var(--blue-light); }
.cm__av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); font-family: var(--display); font-weight: 700; }
.cm__main { min-width: 0; }
.cm__who { font-weight: 600; font-size: 0.92rem; }
.cm__who span { margin-left: 10px; font-weight: 400; font-size: 0.82rem; color: var(--ink-faint); }
.cm__body { margin-top: 4px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
.cm__body--gone { font-style: italic; color: var(--ink-faint); }
.cm__pending { margin: 6px 0 0; font-size: 13px; color: var(--ink-faint); display: flex; gap: 6px; align-items: baseline; }
.cm__acts { margin-top: 6px; display: flex; }
.cm__form { display: contents; }
/* 👍 support: a small pill; filled and blue when the viewer supports */
.cm__up { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; margin-left: -6px; border-radius: var(--pill); font-size: 0.85rem; font-weight: 600; color: var(--ink-muted); background: none; border: 0; cursor: pointer; }
.cm__up:hover { background: var(--blue-light); color: var(--blue); }
.cm__up[aria-pressed="true"] { color: var(--blue); background: var(--blue-light); }
.cm__up i { font-size: 1.05rem; }
.cm__up--own, .cm__up--own:hover { cursor: default; background: none; color: var(--ink-faint); }
.pd-cm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }

.pd-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.pd-support { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--soft); padding: 26px 24px 22px; scroll-margin-top: 90px; }
.pd-support__top { display: flex; align-items: center; gap: 12px; }
.pd-support__n { font-family: var(--display); font-weight: 700; font-size: 3.2rem; line-height: 1; letter-spacing: -0.02em; color: var(--blue); font-variant-numeric: tabular-nums; }
.pd-fire { font-size: 2.6rem; color: #F05A1A; transform-origin: 50% 92%; animation: flicker 1.7s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(255,138,40,.55)); }
.pd-fire::before { color: #FFB627; opacity: 1; }
.pd-support__t { margin-top: 10px; }
.pd-support__t b { display: block; font-weight: 600; font-size: 1rem; }
.pd-support__t span { display: block; margin-top: 2px; font-size: 0.88rem; color: var(--ink-muted); }
.pd-support .btn { width: 100%; justify-content: center; height: 52px; font-size: 1rem; margin-top: 20px; }
.pd-support .btn[aria-pressed="true"] { background: var(--blue-light); border-color: var(--blue-light); color: var(--blue); }
.pd-support .pd-share { margin-top: 10px; height: 46px; background: var(--white); border-color: var(--border); color: var(--ink); }
.pd-note { margin-top: 12px; font-size: 0.8rem; color: var(--ink-faint); text-align: center; }
.pd-refused { margin: 12px 0 0; text-align: left; }
.pd-refused a { color: inherit; text-decoration: underline; }
.pd-withdraw:not(.alert) a { color: var(--blue); text-decoration: underline; }
.pd-box { background: var(--white); border-radius: var(--r); box-shadow: var(--soft); padding: 20px 12px 10px; }
.pd-box h3 { padding: 0 10px 6px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.pd-more a { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; }
.pd-more a:hover { background: var(--parchment); }
.pd-more a:hover b { color: var(--blue); }
.pd-more b { flex: 1; min-width: 0; font-weight: 500; font-size: 0.9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.votes { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--pill); background: var(--blue-light); color: var(--blue); font-family: var(--display); font-weight: 700; font-size: 0.85rem; }
.votes.hot { background: #FFEBDD; color: #A8340F; }
.votes.hot i { color: #F05A1A; transform-origin: 50% 92%; animation: flicker 1.7s ease-in-out infinite; }
.votes.hot i::before { color: #FFB627; opacity: 1; }
.pd-toast { position: fixed; left: 50%; bottom: 32px; z-index: 50; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; display: inline-flex; gap: 8px; align-items: center; padding: 12px 20px; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 600; font-size: 0.92rem; transition: opacity .2s, transform .2s; }
.pd-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pd-missing { padding: 96px 20px; text-align: center; }
.pd-missing i { font-size: 2.6rem; color: var(--blue); }
.pd-missing h1 { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 1.8rem; }
.pd-missing p { margin-top: 6px; color: var(--ink-muted); }
.pd-missing .btn { margin-top: 20px; }
@media (max-width: 1024px) {
  .pd-body { grid-template-columns: 1fr; }
  .pd-side { position: static; order: -1; }
}
@media (prefers-reduced-motion: reduce) { .pd-fire, .votes.hot i { animation: none; } }

/* ===== PLACES LIST (/mesta, docs/07-mesta-b.html) ===== */
.pp-filters { position: relative; margin-top: 24px; max-width: 900px; display: flex; gap: 10px; flex-wrap: wrap; }
.pp-field { position: relative; display: flex; align-items: center; }
.pp-field > i { position: absolute; left: 16px; font-size: 1.15rem; color: var(--ink-faint); pointer-events: none; }
.pp-field input, .pp-field select { font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--white); border: 0; border-radius: var(--pill); height: 50px; }
.pp-field input { width: 100%; padding: 0 18px 0 46px; }
.pp-field input::-webkit-search-cancel-button { display: none; }
.pp-field--search { flex: 1 1 260px; }
.pp-field select { appearance: none; padding: 0 42px 0 18px; cursor: pointer; }
.pp-field .pp-chev { left: auto; right: 16px; font-size: .95rem; }
.pp-field input:focus-visible, .pp-field select:focus-visible { outline: 3px solid #F4C7C3; outline-offset: 2px; }
.pp-results { padding: 36px 0 0; }
.pp-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pp-count { font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.pp-reset { font-weight: 600; font-size: 0.9rem; color: var(--blue); padding: 8px 14px; border-radius: var(--pill); }
.pp-reset:hover { background: var(--blue-light); }
.pp-places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pp-place { display: flex; flex-direction: column; gap: 18px; justify-content: space-between; min-height: 140px; padding: 20px 20px 18px; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); transition: box-shadow .15s; }
.pp-place[hidden] { display: none; }
.pp-place:hover { box-shadow: 0 0 0 2px var(--blue-light), var(--soft); }
.pp-place__name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.pp-place:hover .pp-place__name { color: var(--blue); }
.pp-place__region { margin-top: 4px; font-size: 0.82rem; color: var(--ink-faint); }
.pp-place__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; white-space: nowrap; font-size: 0.84rem; color: var(--ink-muted); }
.pp-place__count { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: var(--pill); background: var(--blue-light); color: var(--blue); font-weight: 600; font-size: 0.8rem; }
.pp-empty { padding: 56px 24px; text-align: center; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); }
.pp-empty[hidden] { display: none; }
.pp-empty i { font-size: 2.4rem; color: var(--blue); }
.pp-empty h2 { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.pp-empty p { margin-top: 6px; color: var(--ink-muted); }
.pp-empty .btn { margin-top: 18px; }
@media (max-width: 1024px) { .pp-places { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .pp-places { grid-template-columns: 1fr 1fr; gap: 10px; } .pp-field, .pp-field select { width: 100%; } }

/* ===== PLACE PAGE (/mesta/{slug}, docs/08-mesto-b.html) ===== */
.mp-head > .container { padding-top: 28px; }
.mp-head__main { position: relative; margin-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.mp-region { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; color: #D1DAF0; }
.mp-name { margin-top: 8px; font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; color: #fff; overflow-wrap: anywhere; }
.mp-facts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 26px; color: #D1DAF0; font-size: 0.95rem; }
.mp-facts b { margin-right: 4px; font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: #fff; }
/* The page's numbers in one sentence (CitableSummary), on the place and theme heads */
.sum-text { position: relative; margin-top: 14px; max-width: 68ch; font-size: 0.98rem; line-height: 1.55; color: #D1DAF0; }
.mp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* Top right of the hero, level with the breadcrumb */
.mp-share { position: absolute; top: 20px; right: 56px; z-index: 1; }
.mp-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-top: 40px; padding-bottom: 0; }
.mp-chips { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.mp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--pill); background: var(--white); border: 1.5px solid var(--border); font-size: 0.86rem; font-weight: 600; color: var(--ink-muted); }
.mp-chip small { font-size: 0.78rem; font-weight: 600; color: var(--ink-faint); }
.mp-chip:hover { border-color: var(--ink-faint); }
.mp-chip[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.mp-chip[aria-current] small { color: #C0CBE7; }
.mp-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.mp-box { padding: 22px; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); }
.mp-box h3 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.mp-box p { margin-top: 6px; font-size: 0.9rem; color: var(--ink-muted); }
.mp-near { margin-top: 12px; display: flex; flex-direction: column; }
.mp-near a { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -12px; padding: 10px 12px; border-radius: 12px; }
.mp-near a:hover { background: var(--parchment); }
.mp-near b { font-weight: 600; font-size: 0.93rem; }
.mp-near span { font-size: 0.82rem; color: var(--ink-faint); white-space: nowrap; }
@media (max-width: 1024px) { .mp-body { grid-template-columns: 1fr; } .mp-aside { position: static; } }

/* ===== THEMES LIST (/teme, docs/13-teme-b.html): cards double as a bar chart ===== */
.th-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 32px; padding-bottom: 0; }
.th { display: grid; grid-template-columns: 52px 1fr auto; gap: 4px 14px; align-content: start; padding: 22px 22px 18px; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); transition: box-shadow .15s; }
.th:hover { box-shadow: 0 0 0 2px var(--blue), var(--soft); }
.th:hover .th__name { color: var(--blue); }
.th__icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); font-size: 1.7rem; }
.th__name { align-self: center; font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.2; }
.th__n { text-align: right; font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--blue); }
.th__n small { display: block; margin-top: 3px; font-family: var(--body); font-weight: 400; font-size: 0.74rem; color: var(--ink-faint); }
.th__desc { grid-column: 2 / 4; font-size: 0.88rem; color: var(--ink-muted); }
.th__bar { grid-column: 1 / 4; margin-top: 14px; height: 7px; display: flex; overflow: hidden; border-radius: 4px; background: var(--parchment); }
.th__bar .n { background: var(--red); }
.th__bar .l { background: var(--blue); }
.th__split { grid-column: 1 / 4; margin-top: 4px; display: flex; gap: 16px; font-size: 0.78rem; color: var(--ink-faint); }
.th__split span { display: inline-flex; align-items: center; gap: 6px; }
.th__split span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.th__split .n::before { background: var(--red); }
.th__top { grid-column: 1 / 4; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--parchment-dark); display: flex; align-items: center; gap: 12px; }
.th__top > span:first-child { flex: 1; min-width: 0; }
.th__top small { display: block; font-size: 0.76rem; color: var(--ink-faint); }
.th__top b { font-size: 0.9rem; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) { .th-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .th-grid { grid-template-columns: 1fr; } }

/* ===== THEME PAGE (/teme/{slug}, docs/14-tema-b.html); body reuses the proposals list styles ===== */
.tp-row { position: relative; display: flex; align-items: center; gap: 22px; }
.tp-icon { flex: none; width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: rgba(255,255,255,.14); font-size: 2.6rem; color: #fff; }
.tp-row .page-hero__desc { margin-top: 6px; }
/* Top right of the hero, level with the breadcrumb (like .mp-share; this hero starts 16px lower) */
.tp-share { position: absolute; top: 36px; right: 56px; z-index: 1; }
.tp-foot { position: relative; margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.tp-stats { display: flex; gap: 8px 32px; flex-wrap: wrap; color: #D1DAF0; font-size: 0.95rem; }
.tp-stats b { margin-right: 5px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: #fff; }
.tp-places a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 0.92rem; }
.tp-places a:hover { background: var(--parchment); color: var(--blue); }
.tp-places i { color: var(--blue); }
.tp-places span { flex: 1; }
.tp-places small { font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); }

/* ===== PROPOSAL FORM (/predlozi/novi and edit, docs/09-predlog-b.html) ===== */
.pf-head > .container { padding-top: 48px; padding-bottom: 44px; }
.pf-title { position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; color: #fff; }
.pf-sub { position: relative; margin-top: 14px; font-size: 1.02rem; color: #D1DAF0; }
.pf-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding-top: 32px; padding-bottom: 0; }
.pf-form > .alert { margin-bottom: 16px; }
.pf-field { margin-top: 16px; padding: 24px 26px 22px; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); }
.pf-field:first-of-type { margin-top: 0; }
.pf-field > label, .pf-field legend { display: block; padding: 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.pf-field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pf-hint { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 0.8rem; color: var(--ink-faint); }
.pf-hint b { font-weight: 600; white-space: nowrap; }
.pf-tpl { display: inline; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--blue); text-decoration: underline; cursor: pointer; }
.pf-tpl[hidden] { display: none; }
.pf-hint b.ok { color: #2E7D4F; }
.pf-err { display: none; margin-top: 8px; font-size: 0.84rem; font-weight: 600; color: var(--red-dark); }
.pf-draft { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--blue-light); color: var(--blue); font-weight: 600; font-size: 0.9rem; }
.pf-draft[hidden] { display: none; }
.pf-draft { flex-wrap: wrap; }
.pf-draft .btn { padding: 6px 12px; font-size: 0.82rem; }
.pf-field.invalid { box-shadow: 0 0 0 2px var(--red), var(--soft); }
.pf-field.invalid .pf-err { display: flex; gap: 6px; align-items: center; }
.pf-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.pf-theme { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--parchment); font-size: 0.9rem; font-weight: 600; line-height: 1.2; color: var(--ink-muted); cursor: pointer; }
.pf-theme input { position: absolute; opacity: 0; pointer-events: none; }
.pf-theme i { font-size: 1.5rem; color: var(--blue); }
.pf-theme:hover { background: var(--parchment-dark); }
.pf-theme:has(input:checked) { background: var(--blue); color: #fff; }
.pf-theme:has(input:checked) i { color: #fff; }
.pf-theme:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.pf-theme-desc { margin-top: 10px; min-height: 1.3em; font-size: 0.84rem; color: var(--ink-muted); }
/* Similar proposals and theme suggestion while typing (js/proposal-similar.js, #57) */
.pf-suggest-slot { margin-top: 10px; }
.pf-suggest-slot[hidden], .pf-similar-slot[hidden] { display: none; }
.pf-suggest { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px dashed var(--blue); border-radius: var(--pill); background: var(--blue-light); color: var(--blue); font: inherit; font-size: 0.86rem; cursor: pointer; }
.pf-suggest:hover { background: var(--white); }
.pf-similar-slot { margin-top: 14px; padding: 14px; border-radius: var(--r); background: var(--gold-light); border: 1px solid rgba(184, 134, 30, .28); }
.pf-similar__head { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.pf-similar__head > i { flex: none; margin-top: 1px; font-size: 1.3rem; color: var(--gold); }
.pf-similar__head b { display: block; font-size: 0.95rem; line-height: 1.3; }
.pf-similar__head span { display: block; margin-top: 2px; font-size: 0.82rem; line-height: 1.45; color: var(--ink-muted); }
.pf-similar ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.pf-sim { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--white); box-shadow: 0 1px 0 rgba(184, 134, 30, .18); }
.pf-sim__top { display: flex; gap: 10px; align-items: flex-start; }
.pf-sim__title { flex: 1; min-width: 0; font-weight: 700; line-height: 1.3; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf-sim__title:hover { text-decoration: underline; }
.pf-sim__votes { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--pill); background: var(--blue-light); color: var(--blue); font-size: 0.82rem; }
.pf-sim__text { margin: 0; font-size: 0.85rem; line-height: 1.45; color: var(--ink-muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-sim__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 0.76rem; color: var(--ink-faint); }
.pf-sim__meta span { display: inline-flex; align-items: center; gap: 4px; }
.pf-sim__actions { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-sim__actions .btn, .pf-sim__state { flex: 1 1 150px; justify-content: center; min-height: 44px; padding: 10px 14px; font-size: 0.88rem; }
.pf-sim__support { cursor: pointer; font: inherit; font-weight: 600; }   /* red .btn-primary, as on the proposal page */
.pf-sim__support:disabled { opacity: .6; cursor: progress; }
.pf-sim__open { color: var(--blue); border-color: var(--blue-light); }
.pf-sim__state { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--pill); background: var(--green-light); color: var(--green); font-weight: 600; }
.pf-sim__state--on { background: var(--blue-light); color: var(--blue); }   /* supported: the proposal page's "Подржавате" */
.pf-sim__msg { margin: 0; font-size: 0.8rem; line-height: 1.4; color: var(--ink-muted); }
.pf-sim__msg.is-error { color: var(--red); }
@media (prefers-reduced-motion: no-preference) { .pf-sim__state.is-new { animation: pf-sim-done .35s ease-out; } }
@keyframes pf-sim-done { from { transform: scale(.94); opacity: .4; } }
/* Wider screens: the two actions sit side by side at the card's right, sized to their text */
@media (min-width: 720px) { .pf-similar-slot { padding: 16px 20px; } .pf-sim__actions { justify-content: flex-end; } .pf-sim__actions .btn, .pf-sim__state { flex: 0 0 auto; min-height: 40px; padding: 8px 16px; } }
.pf-field textarea { display: block; width: 100%; margin-top: 10px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--parchment); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.55; resize: none; overflow: hidden; }
.pf-field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
#pf-title { font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.35; }
#pf-body { min-height: 240px; }
.pf-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.pf-side h2 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.pf-side h2 small { margin-left: 6px; font-family: var(--body); font-weight: 400; font-size: 0.82rem; color: var(--ink-faint); }
.pf-preview { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 18px 20px; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); }
.pf-preview__where { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--ink-faint); }
.pf-preview__where b { font-weight: 600; color: var(--ink-muted); }
.pf-preview__where i { color: var(--blue); }
.pf-preview__where .pl-nat { color: var(--red); }
.pf-preview__title { margin-top: 6px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pf-preview__title.empty { color: #A3AABA; font-weight: 500; }
.pf-preview .tag { margin-top: 12px; }
.pf-preview__votes { align-self: start; min-width: 64px; padding: 9px 8px; border-radius: 14px; background: var(--blue-light); color: var(--blue); text-align: center; }
.pf-preview__votes b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.pf-preview__votes small { display: block; margin-top: 3px; font-size: 0.7rem; opacity: .75; }
.pf-send { margin-top: 20px; }
.pf-send .alert { margin-bottom: 12px; }
.pf-send .btn { min-width: 300px; justify-content: center; height: 54px; padding: 0 32px; font-size: 1.02rem; }
/* Numbered steps (desktop, _WhereCards / _ProposalFields with ViewData["Steps"]) */
.pf-step { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--display); font-size: 0.9rem; font-weight: 700; vertical-align: 2px; }
.pf-field__sub { margin-top: 4px; font-size: 0.84rem; color: var(--ink-muted); }
.pf-wheres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.pf-wcard { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border-radius: 14px; background: var(--parchment); color: var(--ink); cursor: pointer; }
.pf-wcard input { position: absolute; opacity: 0; pointer-events: none; }
.pf-wcard i { flex: none; font-size: 1.6rem; color: var(--blue); }
.pf-wcard span { display: flex; flex-direction: column; min-width: 0; }
.pf-wcard b { font-weight: 600; font-size: 0.95rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-wcard small { margin-top: 2px; font-size: 0.78rem; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-wcard:hover { background: var(--parchment-dark); }
.pf-wcard:has(input:checked), .pf-wcard--other.on { background: var(--blue); color: #fff; }
.pf-wcard:has(input:checked) i, .pf-wcard:has(input:checked) small, .pf-wcard--other.on i, .pf-wcard--other.on small { color: #fff; }
.pf-wcard:has(input:focus-visible), .pf-wcard--other:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (max-width: 900px) { .pf-wheres { grid-template-columns: 1fr; } }
.pf-note { display: flex; gap: 10px; margin: 12px 4px 0; font-size: 0.84rem; color: var(--ink-muted); }
.pf-note i { flex: none; font-size: 1.2rem; color: var(--blue); }
/* An author's edit that was not saved (_RefusedEdit): the typed text, read-only, to copy */
.pf-unsaved { margin: 12px 0 20px; padding: 12px 14px; border: 1px solid var(--parchment-dark); border-radius: 12px; }
.pf-unsaved summary { cursor: pointer; font-weight: 600; }
.pf-unsaved label { display: grid; gap: 4px; margin-top: 10px; font-size: 0.84rem; color: var(--ink-muted); }
.pf-unsaved textarea { width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink); resize: vertical; }
.pf-tips { padding: 20px 22px; background: var(--white); border-radius: var(--r); }
.pf-tips ul { margin-top: 10px; list-style: none; display: grid; gap: 10px; }
.pf-tips li { display: flex; gap: 10px; font-size: 0.9rem; line-height: 1.45; color: var(--ink-muted); }
.pf-tips li i { flex: none; margin-top: 2px; font-size: 1.05rem; color: var(--blue); }
@media (max-width: 1024px) { .pf-body { grid-template-columns: 1fr; } .pf-side { position: static; } }
@media (max-width: 720px) { .pf-themes { grid-template-columns: 1fr 1fr; } }

/* Place picker (_WherePicker): a centred dialog; opens as #gde without JS, .open with JS */
.wp { position: fixed; inset: 0; z-index: 1002; visibility: hidden; }
.wp:target, .wp.open { visibility: visible; }
.wp__scrim { position: absolute; inset: 0; background: rgba(18,31,63,.45); opacity: 0; transition: opacity .2s; }
.wp:target .wp__scrim, .wp.open .wp__scrim { opacity: 1; }
.wp__panel { position: absolute; left: 50%; top: 50%; width: 520px; max-width: calc(100% - 40px); height: min(640px, 84vh); display: flex; flex-direction: column; background: var(--white); border-radius: 24px;
             transform: translate(-50%, -46%); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.wp:target .wp__panel, .wp.open .wp__panel { transform: translate(-50%, -50%); opacity: 1; }
.wp__grip { display: none; }
.wp__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 8px 4px 20px; }
.wp__head h2 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.wp__head .icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; }
.wp__search { position: relative; margin: 4px 16px 8px; display: flex; align-items: center; }
.wp__search i { position: absolute; left: 14px; font-size: 1.1rem; color: var(--ink-faint); }
.wp__search input { width: 100%; height: 46px; padding: 0 16px 0 42px; border: 0; border-radius: var(--pill); background: var(--parchment); font: inherit; font-size: 1rem; }
.wp__list { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.wp__opt { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; cursor: pointer; }
.wp__opt[hidden] { display: none; }
.wp__opt:hover { background: var(--parchment); }
.wp__opt input { position: absolute; opacity: 0; pointer-events: none; }
.wp__opt > i { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); font-size: 1.1rem; }
.wp__opt b { display: block; font-weight: 600; font-size: 0.98rem; }
.wp__opt small { display: block; font-size: 0.78rem; color: var(--ink-faint); }
.wp__opt:has(input:checked) { background: var(--blue-light); }
.wp__opt:has(input:checked) b { color: var(--blue); }
.wp__opt:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: -3px; }
.wp__opt--nat { position: sticky; top: 0; z-index: 1; margin-bottom: 6px; padding-bottom: 14px; background: var(--white); border-bottom: 1px solid var(--parchment-dark); border-radius: 12px 12px 0 0; }
.wp__empty { padding: 24px 12px; text-align: center; font-size: 0.9rem; color: var(--ink-muted); }
.wp__foot { padding: 10px 16px 16px; border-top: 1px solid var(--parchment-dark); }
.wp__foot .btn { width: 100%; justify-content: center; }
.wp.open .wp__foot { display: none; }
@media (prefers-reduced-motion: reduce) { .wp__panel, .wp__scrim { transition: none; } }

/* Server message replaces the default one */
.pf-err .field-validation-error ~ .pf-err__def { display: none; }

/* ===== SIGN-IN SCREENS (_AuthLayout, docs/12-nalog-b.html) ===== */
.auth-wrap { padding: 20px 20px 0; }
.auth { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 5fr 6fr; gap: 16px; align-items: stretch; }
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 64px 56px 48px; background: var(--blue); color: #fff; border-radius: var(--r-lg); }
.auth-aside__mark { position: absolute; right: -70px; bottom: -80px; width: 340px; fill: rgba(255,255,255,.07); pointer-events: none; }
.auth-aside h1 { position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 3.6vw, 3.3rem); line-height: 1.04; letter-spacing: -0.02em; color: #fff; }
.auth-aside__why { position: relative; margin-top: 16px; max-width: 34ch; font-size: 1.08rem; line-height: 1.5; color: #D1DAF0; }
.auth-perks { position: relative; margin-top: 40px; display: grid; gap: 18px; list-style: none; }
.auth-perks li { display: flex; align-items: center; gap: 14px; font-size: 1rem; }
.auth-perks span { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 1.3rem; }
.auth-aside__note { position: relative; margin-top: auto; padding-top: 40px; max-width: 40ch; display: flex; gap: 10px; font-size: 0.9rem; color: #C6D0EC; }
.auth-aside__note i { flex: none; font-size: 1.2rem; color: #fff; }
.auth-card { padding: 48px 56px 56px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--soft); }
.auth-card__in { max-width: 460px; margin: 0 auto; }
.auth-tabs { margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: var(--pill); background: var(--parchment); }
.auth-tabs a { height: 42px; display: grid; place-items: center; border-radius: var(--pill); font-family: var(--display); font-weight: 600; font-size: 0.96rem; color: var(--ink-muted); }
.auth-tabs a[aria-current="page"] { background: var(--blue); color: #fff; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-weight: 600; font-size: 0.9rem; color: var(--blue); }
.google-btn { width: 100%; height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid var(--border); border-radius: var(--pill); background: var(--white); font-family: var(--display); font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.google-btn:hover { background: var(--parchment); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; font-size: 0.8rem; color: var(--ink-faint); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--parchment-dark); }
.auth-card .alert, .m-auth .alert { margin: 0 0 14px; }
.auth-form .form-group { margin-top: 14px; margin-bottom: 0; display: block; }
.auth-form [hidden] { display: none; }
.auth-form .form-label, .account-form .form-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: var(--ink); text-transform: none; letter-spacing: 0; }
.auth-form .form-label a { font-weight: 600; font-size: 0.84rem; color: var(--blue); }
.auth-form .form-label small { font-weight: 400; font-size: 0.8rem; color: var(--ink-faint); }
.auth-form .form-input, .auth-form .form-select { display: block; width: 100%; height: 52px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--parchment); font: inherit; font-size: 1rem; color: var(--ink); }
.auth-form .form-input:focus, .auth-form .form-select:focus { outline: none; border-color: var(--blue); background: var(--white); }
.auth-form .form-input[readonly] { color: var(--ink-muted); }
.auth-form .form-hint { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--ink-faint); }
.auth-form .form-error { display: block; margin-top: 6px; font-size: 0.84rem; font-weight: 600; color: var(--red-dark); }
.auth-form .form-error:empty { display: none; }
.auth-form .input-validation-error { border-color: var(--red); background: var(--white); }
/* „Предложи надимак“ under a name field (#60, _NicknameSuggest + js/auth.js) */
.nick-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 12px; border: 1.5px solid var(--border); border-radius: var(--pill); background: var(--white); color: var(--blue); font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.nick-btn i { font-size: 1.05rem; }
.nick-btn:hover { border-color: var(--blue); }
.nick-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.nick-btn[hidden] { display: none; }
.auth-pw { position: relative; }
.auth-pw .form-input { padding-right: 52px; }
.auth-peek { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; color: var(--ink-muted); }
.auth-rules { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; list-style: none; font-size: 0.8rem; color: var(--ink-faint); }
.auth-rules li { display: flex; align-items: center; gap: 6px; transition: color .15s; }
.auth-rules li.ok { color: #1F7A45; font-weight: 600; }
.auth-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--parchment); cursor: pointer; }
.auth-switch b { display: block; font-weight: 600; font-size: 0.95rem; }
.auth-switch small { display: block; font-size: 0.8rem; color: var(--ink-faint); }
.auth-switch input { position: absolute; opacity: 0; pointer-events: none; }
.auth-switch__knob { flex: none; position: relative; width: 48px; height: 28px; border-radius: 14px; background: #C9CFDC; transition: background .15s; }
.auth-switch__knob::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.auth-switch:has(input:checked) .auth-switch__knob { background: var(--blue); }
.auth-switch:has(input:checked) .auth-switch__knob::after { transform: translateX(20px); }
.auth-switch:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.auth-consent { display: flex; gap: 12px; margin-top: 4px; font-size: 0.88rem; line-height: 1.45; color: var(--ink-muted); cursor: pointer; }
.auth-consent input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--blue); }
.auth-consent a { color: var(--blue); font-weight: 600; }
.auth-submit { width: 100%; justify-content: center; height: 52px; margin-top: 22px; font-size: 1rem; }
.auth-submit + .auth-submit { margin-top: 10px; }
.auth-more { margin-top: 18px; text-align: center; font-size: 0.9rem; }
.auth-more a { color: var(--blue); font-weight: 600; }
.auth-done { text-align: center; }
.auth-done__mark { width: 84px; height: 84px; margin: 8px auto 0; border-radius: 26px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 2.6rem; }
.auth-done__mark--bad { background: var(--red); }
.auth-done h2 { margin-top: 22px; font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1.1; }
.auth-done p { margin-top: 10px; color: var(--ink-muted); }
.auth-done .alert { margin-top: 16px; text-align: left; }
.auth-done__addr { display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: var(--pill); background: var(--white); box-shadow: var(--soft); font-weight: 600; word-break: break-all; }
.auth-done__small { font-size: 0.84rem; color: var(--ink-faint) !important; }
.auth-done .auth-submit:first-of-type { margin-top: 26px; }
@media (max-width: 1024px) { .auth { grid-template-columns: 1fr; } .auth-aside { padding: 44px 40px; } .auth-perks { margin-top: 28px; } }
@media (max-width: 720px) { .auth-wrap { padding: 12px 12px 0; } .auth-card { padding: 28px 20px 32px; } .auth-aside { padding: 32px 22px; } }

/* ===== ACCOUNT AREA (_AccountLayout, docs/15-moj-nalog-b.html) ===== */
.ac-head-wrap { padding: 20px 20px 0; }
.ac-head { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 36px 56px; background: var(--blue); color: #fff; border-radius: var(--r-lg); }
.ac-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.05; letter-spacing: -0.02em; color: #fff; }
.ac-head__hi { font-size: 0.92rem; color: #C6D0EC; }
.ac-avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue); font-family: var(--display); font-weight: 700; font-size: 1.6rem; }
.ac-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 32px; padding-bottom: 0; }
.ac-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; }
.ac-side nav { padding: 8px; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); }
.ac-side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 600; color: var(--ink-muted); }
.ac-side nav a i { font-size: 1.15rem; color: var(--blue); }
.ac-side nav a:hover { background: var(--parchment); }
.ac-side nav a[aria-current] { background: var(--blue-light); color: var(--blue); }
.ac-add { justify-content: center; }
.ac-out { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: var(--pill); font-weight: 600; color: var(--ink-muted); }
.ac-out:hover { background: var(--parchment-dark); }
.ac-view__head h2 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.2; }
.ac-view__head p { margin-top: 4px; max-width: 62ch; color: var(--ink-muted); }
.ac-view .alert, .m-ac__view .alert { margin-top: 16px; }
.ac-list { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.ac-card { display: block; padding: 20px 22px; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); }
a.ac-card:hover .ac-card__title { color: var(--blue); }
.ac-card--open { margin-top: 18px; padding: 24px 26px; }
.ac-card__title { display: block; margin-top: 14px; font-weight: 600; font-size: 1.06rem; line-height: 1.4; }
.ac-card--open .ac-card__title { font-family: var(--display); font-size: 1.5rem; line-height: 1.25; }
.ac-card__meta { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 0.82rem; color: var(--ink-faint); }
.ac-card__meta .votes { margin-left: auto; }
.ac-card__body { margin-top: 18px; }
.ac-card__body p { line-height: 1.7; overflow-wrap: anywhere; }
.ac-card__body p + p { margin-top: .9em; }
.ac-card__acts { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.ac-note { margin-top: 6px; white-space: pre-line; font-weight: 400; }
/* Why there is no edit (approved/rejected, #64): same look as the form's .pf-note */
.ac-hint { display: flex; gap: 10px; margin-top: 18px; font-size: 0.84rem; color: var(--ink-muted); }
.ac-hint i { flex: none; font-size: 1.2rem; color: var(--blue); }
/* Status track: each step owns the line leading into it */
.ac-track { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; font-size: 0.78rem; font-weight: 600; color: var(--ink-faint); }
.ac-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ac-track li span { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 2px solid var(--border); }
.ac-track li + li::before { content: ""; position: absolute; top: 10px; left: calc(-50% + 11px); right: calc(50% + 11px); height: 2px; background: var(--border); }
.ac-track li.done, .ac-track li.now { color: var(--blue); }
.ac-track li.done span { background: var(--blue); border-color: var(--blue); box-shadow: inset 0 0 0 4px var(--white); }
.ac-track li.now span { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-light); }
.ac-track li.done::before, .ac-track li.now::before { background: var(--blue) !important; }
.ac-track li.bad { color: var(--red-dark); }
.ac-track li.bad span { background: var(--red); border-color: var(--red); box-shadow: inset 0 0 0 4px var(--white); }
.ac-track li.bad::before { background: var(--red) !important; }
/* Merged into another proposal (#19): finished, but neither published here nor rejected */
.ac-track li.merged { color: var(--ink-muted); }
.ac-track li.merged span { background: var(--ink-faint); border-color: var(--ink-faint); box-shadow: inset 0 0 0 4px var(--white); }
.ac-track li.merged::before { background: var(--ink-faint) !important; }
.ac-rows { margin-top: 18px; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); overflow: hidden; }
.ac-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.ac-row + .ac-row { border-top: 1px solid var(--parchment-dark); }
a.ac-row:hover { background: var(--parchment); }
.ac-row > i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); }
.ac-row__t { flex: 1; min-width: 0; font-weight: 600; line-height: 1.4; }
.ac-row__t small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--ink-faint); }
.ac-row__d { flex: none; font-size: 0.82rem; color: var(--ink-faint); }
.ac-row--gone { color: var(--ink-faint); }
.ac-row--gone > i { background: var(--parchment-dark); color: var(--ink-faint); }
.ac-empty { margin-top: 18px; padding: 48px 24px; text-align: center; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); }
.ac-empty > i { font-size: 2.4rem; color: var(--blue); }
.ac-empty h3 { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.ac-empty p { margin-top: 6px; color: var(--ink-muted); }
.ac-empty .btn { margin-top: 18px; }
.ac-set { margin-top: 16px; padding: 24px 26px; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); }
.ac-set h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.ac-set > p { margin-top: 4px; font-size: 0.92rem; color: var(--ink-muted); }
.ac-set .form-group:first-of-type { margin-top: 18px; }
.ac-set__acts { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.ac-set--danger { box-shadow: 0 0 0 1.5px var(--red-light), var(--soft); }
.ac-facts { margin-top: 14px; display: grid; gap: 10px; }
.ac-facts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--parchment-dark); }
.ac-facts dt { color: var(--ink-faint); }
.ac-facts dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.ac-row-act { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--parchment-dark); }
.ac-row-act b { display: block; }
.ac-row-act span { display: block; font-size: 0.86rem; color: var(--ink-muted); }
.ac-row-act .btn { flex: none; }
.ac-danger { color: var(--red-dark); border-color: var(--red-light); }
.ac-danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.ac-warn { display: flex; gap: 10px; margin-bottom: 4px; padding: 12px 14px; border-radius: 14px; background: var(--blue-light); color: var(--blue); font-size: 0.9rem; }
.ac-warn i { flex: none; font-size: 1.15rem; }
@media (max-width: 1024px) { .ac-body { grid-template-columns: 1fr; } .ac-side { position: static; } }

/* ===== INFO PAGES (_InfoLayout, docs/16-info-b.html) ===== */
.in-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 36px; padding-bottom: 0; }
.in-side { position: sticky; top: 90px; }
.in-nav { display: grid; gap: 22px; }
.in-nav__grp span { display: block; padding: 0 14px 6px; font-weight: 600; font-size: 0.82rem; color: var(--ink-faint); }
.in-nav__grp a { display: block; padding: 9px 14px; border-radius: 12px; font-weight: 500; color: var(--ink-muted); }
.in-nav__grp a:hover { background: var(--white); color: var(--ink); }
.in-nav__grp a[aria-current] { background: var(--white); color: var(--blue); font-weight: 600; box-shadow: var(--soft); }
@media (max-width: 900px) { .in-body { grid-template-columns: 1fr; gap: 20px; } .in-side { position: static; } .in-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; } .in-nav__grp span { display: none; } }

/* Info page content (desktop and phone) */
.in-view { max-width: 760px; }
.in-view h2 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; }
.in-view h2:not(:first-child) { margin-top: 40px; }
.in-view p { line-height: 1.7; }
.in-view p + p { margin-top: .8em; }
.in-lead { font-size: 1.12rem; }
.in-muted { color: var(--ink-muted); }
.in-prose h2 + p, .in-prose h2 + ul { margin-top: 8px; }
.in-prose ul { list-style: disc; margin-top: 8px; padding-left: 20px; display: grid; gap: 6px; line-height: 1.6; }
.in-prose a, .in-view p a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.in-updated { font-size: 0.88rem; color: var(--ink-faint); }
.in-tally { margin-top: 24px; padding: 22px 24px; border-radius: var(--r); background: var(--white); box-shadow: var(--soft); font-size: 1.05rem; line-height: 1.6; }
.in-tally b { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.in-acts { display: grid; gap: 10px; margin-top: 16px; }
.in-acts > div { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; align-items: start; padding: 18px 20px; border-radius: var(--r); background: var(--white); }
.in-acts > div > span { grid-row: span 2; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); font-size: 1.5rem; }
.in-acts b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.in-acts p { font-size: 0.92rem; line-height: 1.5; color: var(--ink-muted); }
.in-next { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.in-steps { list-style: none; margin-top: 8px; display: grid; }
.in-steps li { position: relative; padding: 0 0 28px 64px; }
.in-steps li:last-child { padding-bottom: 0; }
.in-steps li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 3px; background: var(--blue); }
.in-steps li:last-child::before { display: none; }
.in-steps li > span { position: absolute; left: 0; top: 0; width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 1.3rem; }
.in-steps li:last-child > span { background: var(--red); }
.in-steps b { display: block; padding-top: 9px; font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.in-steps p { margin-top: 4px; color: var(--ink-muted); }
.in-who { margin-top: 14px; border-radius: var(--r); background: var(--white); box-shadow: var(--soft); overflow: hidden; }
.in-who div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 20px; font-size: 0.95rem; }
.in-who div + div { border-top: 1px solid var(--parchment-dark); }
.in-who span { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.86rem; }
.in-who .y { color: #1E7A46; }
.in-who .n { color: var(--ink-muted); }
.in-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.in-box { padding: 20px 22px; border-radius: var(--r); background: var(--white); }
.in-box h3 { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.in-box ul { list-style: none; margin-top: 10px; display: grid; gap: 8px; font-size: 0.93rem; line-height: 1.5; }
.in-box li { display: flex; gap: 8px; }
.in-box li i { flex: none; margin-top: 3px; }
.in-box--ok h3, .in-box--ok li i { color: #1E7A46; }
.in-box--no h3, .in-box--no li i { color: var(--red); }
.in-faq-box { margin-top: 12px; }
.in-faq-box ul { margin-top: 0; }
.in-reasons { margin-top: 12px; display: grid; gap: 8px; }
.in-reasons div { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 14px 18px; border-radius: 14px; background: var(--white); font-size: 0.93rem; line-height: 1.5; }
.in-reasons b { font-weight: 600; }
.in-reasons span { color: var(--ink-muted); }
.in-form { padding: 24px; border-radius: var(--r); background: var(--white); box-shadow: var(--soft); }
.in-form .form-group:first-child { margin-top: 0; }
.in-textarea { height: auto !important; min-height: 170px; padding: 12px 14px !important; resize: vertical; line-height: 1.6; }
.in-form .btn { margin-top: 18px; }
.in-sent { padding: 32px 24px; border-radius: var(--r); background: var(--white); text-align: center; }
.in-sent > i { font-size: 2.4rem; color: #1E7A46; }
.in-sent b { display: block; margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.in-sent p { margin-top: 4px; color: var(--ink-muted); }
.in-sent .btn { margin-top: 16px; }
.in-mail { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px 20px; border-radius: var(--r); background: var(--blue-light); }
.in-mail i { font-size: 1.5rem; color: var(--blue); }
.in-mail small { display: block; font-size: 0.82rem; color: var(--ink-muted); }
.in-mail a { font-weight: 600; color: var(--blue); overflow-wrap: anywhere; }
.in-hint { display: flex; gap: 10px; margin-top: 10px; padding: 14px 18px; border-radius: 14px; background: var(--white); font-size: 0.9rem; line-height: 1.5; color: var(--ink-muted); }
.in-hint i { flex: none; margin-top: 2px; font-size: 1.1rem; color: var(--blue); }
.in-table { overflow-x: auto; margin-top: 12px; border-radius: var(--r); background: var(--white); box-shadow: var(--soft); }
.in-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.in-table th { padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.82rem; color: var(--ink-muted); background: var(--parchment-dark); }
.in-table td { padding: 14px 16px; border-top: 1px solid var(--parchment-dark); vertical-align: top; line-height: 1.5; }
.in-table code { padding: 2px 8px; border-radius: 6px; background: var(--parchment); font-family: var(--body); font-weight: 600; font-size: 0.88rem; }
.in-kind { display: inline-block; padding: 2px 10px; border-radius: var(--pill); background: var(--blue-light); color: var(--blue); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.in-kind--a { background: #FFF1D6; color: #8A5A00; }

/* ===== MAP (/mapa, docs/17-mapa-b.html): the map fills a card, the panel floats on it ===== */
.mx-stage-wrap { padding: 20px 20px 0; }
.mx-stage { position: relative; max-width: 1320px; height: calc(100vh - 110px); min-height: 600px; margin: 0 auto; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--soft); }
.mx-stage #map { position: absolute; z-index: 0; inset: 0; }
.mx-panel { position: absolute; z-index: 500; top: 20px; left: 20px; bottom: 20px; width: 370px; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--white); box-shadow: 0 2px 6px rgba(26,31,46,.08), 0 16px 40px rgba(26,31,46,.12); }
.mx-panel__head { padding: 22px 22px 0; }
.mx-panel__head[hidden] { display: none; }
.mx-panel__head h1 { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1.05; letter-spacing: -0.02em; }
.mx-panel__head p { margin-top: 4px; font-size: 0.9rem; color: var(--ink-muted); }
.mx-panel__body { flex: 1; overflow-y: auto; padding: 16px 22px 20px; }
.mx-panel .mx-rail { margin: 0 -22px; padding: 0 22px; }
.mx-stage .leaflet-top.leaflet-left { left: auto; right: 10px; }
.mx-stage .leaflet-top .leaflet-control-zoom { margin-top: 20px; margin-right: 10px; border: 0; box-shadow: var(--soft); border-radius: 12px; overflow: hidden; }
.mx-stage .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; }
@media (max-width: 720px) { .mx-stage-wrap { padding: 12px 12px 0; } .mx-panel { top: auto; left: 10px; right: 10px; width: auto; height: 46%; } }

/* Map panel content (desktop panel and phone sheet), docs/17-mapa-b.html */
.leaflet-container { font: inherit; background: #EEF0F3; }
.leaflet-tile-pane { filter: grayscale(1) contrast(.82) brightness(1.08); }
.leaflet-control-attribution { font-size: 0.68rem; }
.leaflet-tooltip.mx-tip { padding: 6px 10px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.82rem; box-shadow: none; }
.leaflet-tooltip.mx-tip::before { display: none; }
.leaflet-tooltip.mx-tip small { margin-left: 6px; font-weight: 400; color: #C6D0EC; }
.leaflet-bar a { color: var(--ink); }
.mx-list { display: grid; gap: 14px; }
.mx-list[hidden], .mx-pl[hidden] { display: none; }
.mx-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--parchment); }
.mx-seg button { height: 36px; border-radius: 10px; font-weight: 600; font-size: 0.86rem; color: var(--ink-muted); }
.mx-seg button[aria-pressed="true"] { background: var(--white); color: var(--blue); box-shadow: var(--soft); }
.mx-rail { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.mx-rail::-webkit-scrollbar { display: none; }
.mx-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--pill); background: var(--parchment); font-weight: 600; font-size: 0.82rem; color: var(--ink-muted); }
.mx-chip i { font-size: 1rem; }
.mx-chip[aria-pressed="true"] { background: var(--blue); color: #fff; }
.mx-ptitle { margin-top: 4px; font-weight: 600; font-size: 0.95rem; }
.mx-rank { list-style: none; display: grid; gap: 2px; margin: -6px -10px 0; }
.mx-rank button { width: 100%; display: grid; grid-template-columns: 22px 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 10px; border-radius: 12px; text-align: left; }
.mx-rank button:hover { background: var(--parchment); }
.mx-rank .n { font-size: 0.78rem; font-weight: 600; color: var(--ink-faint); text-align: right; }
.mx-rank b { font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-rank em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 0.92rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.mx-meter { grid-column: 2 / 4; height: 4px; border-radius: 2px; background: var(--parchment); overflow: hidden; }
.mx-meter span { display: block; height: 100%; border-radius: 2px; background: var(--blue); }
.mx-note { font-size: 0.82rem; line-height: 1.5; color: var(--ink-muted); }
.mx-note a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mx-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.86rem; color: var(--blue); }
.mx-pl h2 { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; letter-spacing: -0.015em; }
.mx-pl__sub { margin-top: 2px; font-size: 0.86rem; color: var(--ink-faint); }
.mx-pl__gap { margin-top: 10px; }
.mx-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.mx-nums div { padding: 10px 12px; border-radius: 14px; background: var(--blue-light); }
.mx-nums b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; color: var(--blue); }
.mx-nums small { display: block; font-size: 0.76rem; line-height: 1.3; color: var(--ink-muted); }
.mx-pl h3 { margin-top: 16px; font-weight: 600; font-size: 0.9rem; }
.mx-props { display: grid; gap: 2px; margin-top: 6px; }
.mx-props a { display: flex; align-items: flex-start; gap: 10px; margin: 0 -10px; padding: 8px 10px; border-radius: 12px; }
.mx-props a:hover { background: var(--parchment); }
.mx-props a > span:first-child { flex: 1; min-width: 0; font-weight: 500; font-size: 0.88rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mx-props .votes { margin-left: 0; font-size: 0.85rem; padding: 4px 10px; }
.mx-none { margin-top: 6px; font-size: 0.88rem; color: var(--ink-muted); }
.mx-pl__acts { display: grid; gap: 8px; margin-top: 14px; }
.mx-pl__acts .btn { justify-content: center; white-space: normal; text-align: center; }

/* ===== LEADERBOARD (docs/18-rang-lista-b.html; rows and places box shared with the phone) ===== */
.lb-wrap { padding: 20px 20px 0; }
.lb-head { position: relative; overflow: hidden; max-width: 1320px; margin: 0 auto; padding: 44px 56px 28px; border-radius: var(--r-lg); background: var(--blue); color: #fff; }
.lb-head::after { content: ""; position: absolute; right: -90px; top: -120px; width: 420px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none; }
.lb-head h1 { position: relative; color: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; }
.lb-head > p { position: relative; margin-top: 8px; font-size: 1.05rem; color: #D1DAF0; }
.lb-filters { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lb-seg { display: inline-grid; grid-auto-flow: column; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.12); }
.lb-seg a { display: grid; place-items: center; height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 0.86rem; color: #D7DFF4; }
.lb-seg a:hover { color: #fff; }
.lb-seg a[aria-current] { background: #fff; color: var(--blue); }
.lb-rail { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lb-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--pill); background: rgba(255,255,255,.1); font-weight: 600; font-size: 0.82rem; color: #D7DFF4; }
.lb-chip:hover { background: rgba(255,255,255,.18); color: #fff; }
.lb-chip i { font-size: 1rem; }
.lb-chip[aria-current] { background: #fff; color: var(--blue); }
.lb-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-top: 28px; padding-bottom: 0; }
.lb-body--solo { grid-template-columns: minmax(0, 1fr); }
.lb-side { position: sticky; top: 90px; }
.lb-box h2 { padding: 0 10px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.lb-box__sub { padding: 0 10px 8px; font-size: 0.82rem; color: var(--ink-faint); }
@media (max-width: 1024px) { .lb-body { grid-template-columns: 1fr; } .lb-side { position: static; } }
/* Leaderboard rows: the bar is the share of first place's support */
.lb-rows { list-style: none; display: grid; gap: 8px; }
.lb-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 16px 20px 16px 12px; border-radius: var(--r); background: var(--white); }
.lb-row:hover .lb-row__t { color: var(--blue); }
.lb-row__n { grid-row: span 3; text-align: right; font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.lb-row__where { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); }
.lb-row__where span { display: inline-flex; align-items: center; gap: 5px; }
.lb-row__where i { color: var(--blue); }
.lb-row__where .nat { color: var(--red); }
.lb-row__th { font-weight: 500; color: var(--ink-faint); }
/* Stretched row (_LeaderRow): the title link covers the row; place and theme are links above it */
.lb-row__where b { font-weight: inherit; }
a.lb-row__th:hover, a.lb-row__th:active { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.lb-row__v.hot i { pointer-events: none; }
.lb-row__t { grid-column: 2; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.lb-row__v { grid-column: 3; grid-row: 1 / 3; align-self: center; text-align: right; font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.lb-row__v small { display: block; margin-top: 3px; font-family: var(--body); font-weight: 400; font-size: 0.72rem; color: var(--ink-faint); }
.lb-row__v.hot { color: #A8340F; }
.lb-row__v.hot i { display: inline-block; margin-right: 3px; font-size: 1rem; color: #F05A1A; transform-origin: 50% 92%; animation: flicker 1.7s ease-in-out infinite; }
.lb-row__v.hot i::before { color: #FFB627; opacity: 1; }
.lb-row__bar { grid-column: 2 / 4; display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.lb-row__bar > span { flex: 1; height: 6px; border-radius: 3px; background: var(--parchment); overflow: hidden; }
.lb-row__bar b { display: block; height: 100%; border-radius: 3px; background: var(--blue); }
/* The first three get room to breathe, not medals */
.lb-row.top { padding-top: 20px; padding-bottom: 20px; box-shadow: var(--soft); }
.lb-row.top .lb-row__n { font-size: 2.1rem; color: var(--blue); }
.lb-row.top .lb-row__t { font-size: 1.08rem; }
@media (prefers-reduced-motion: reduce) { .lb-row__v.hot i { animation: none; } }
.lb-box { padding: 20px 12px 10px; border-radius: var(--r); background: var(--white); box-shadow: var(--soft); }
.lb-pl { list-style: none; display: grid; gap: 2px; }
.lb-pl a { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 9px 10px; border-radius: 12px; }
.lb-pl a:hover { background: var(--parchment); }
.lb-pl a:hover b { color: var(--blue); }
.lb-pl .n { font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); text-align: right; }
.lb-pl b { font-weight: 600; font-size: 0.93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pl em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--blue); text-align: right; font-variant-numeric: tabular-nums; }
.lb-pl small { grid-column: 2 / 4; font-size: 0.76rem; color: var(--ink-faint); }
.lb-pl__none { padding: 10px; font-size: 0.88rem; color: var(--ink-muted); }
.lb-more { display: grid; justify-items: center; gap: 10px; margin-top: 18px; }
.lb-more p { font-size: 0.85rem; color: var(--ink-faint); }
.lb-empty { padding: 36px 24px; border-radius: var(--r); background: var(--white); text-align: center; }
.lb-empty b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.lb-empty p { margin-top: 4px; color: var(--ink-muted); }
.lb-empty .btn { margin-top: 14px; }
/* Tabs above the filters: proposals or the most active users (?prikaz=korisnici) */
.lb-tabs { position: relative; display: flex; gap: 22px; margin-top: 22px; border-bottom: 1px solid rgba(255,255,255,.16); }
.lb-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 0 2px 10px; margin-bottom: -1px; border-bottom: 3px solid transparent; font-weight: 600; color: #D7DFF4; }
.lb-tabs a:hover { color: #fff; }
.lb-tabs a i { font-size: 1.15rem; }
.lb-tabs a[aria-current] { border-color: #fff; color: #fff; }
/* Users view: place picker (a select on the blue head) */
.lb-place { display: inline-flex; align-items: center; gap: 8px; }
.lb-place__field { position: relative; display: inline-flex; align-items: center; height: 44px; border-radius: 14px; background: rgba(255,255,255,.12); color: #fff; }
.lb-place__field i { position: absolute; pointer-events: none; font-size: 1rem; }
.lb-place__field i:first-child { left: 14px; }
.lb-place__field i:last-child { right: 12px; font-size: 0.8rem; }
.lb-place__field select { appearance: none; height: 100%; min-width: 220px; max-width: 100%; padding: 0 36px 0 38px; border: 0; border-radius: inherit; background: transparent; font: inherit; font-weight: 600; font-size: 0.9rem; color: #fff; cursor: pointer; }
.lb-place__field select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-place__field option { color: var(--ink); background: var(--white); }
/* Users rows: position, avatar, name with rank, XP */
.lb-users { list-style: none; display: grid; gap: 8px; }
.lb-user { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr) auto 64px; gap: 14px; align-items: center; padding: 12px 20px 12px 8px; border-radius: var(--r); background: var(--white); }
.lb-user.top { box-shadow: var(--soft); }
.lb-user__n { text-align: right; font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.lb-user.top .lb-user__n { color: var(--blue); font-size: 1.8rem; }
.lb-user__av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--blue); color: #fff; font-weight: 700; font-size: 0.9rem; }
.lb-user__who { display: grid; gap: 2px; min-width: 0; }
.lb-user__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.lb-user__name:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.lb-user__xp { text-align: right; font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.lb-user__xp small { display: block; margin-top: 3px; font-family: var(--body); font-weight: 400; font-size: 0.72rem; color: var(--ink-faint); }
.lb-user__who .rk-chip { margin-left: 0; }
.lb-user__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 0.82rem; color: var(--ink-muted); }
.lb-user__meta > span, .lb-user__meta > a { display: inline-flex; align-items: center; gap: 4px; }
.lb-user__meta a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.lb-user__meta i { color: var(--ink-faint); }
.lb-user__meta > [data-since] { flex-basis: 100%; } /* "Члан од" always on its own line */
/* Counters and badges in fixed columns, under the header row */
.lb-user__stats, .lb-users-head__stats { display: grid; grid-template-columns: repeat(3, 84px) 112px; align-items: center; }
.lb-user__stats > [data-count] { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-variant-numeric: tabular-nums; }
.lb-user__stats > [data-count] i { color: var(--ink-faint); }
.lb-user__stats > [data-count] b { font-weight: 600; }
.lb-user__bd { display: flex; justify-content: center; gap: 4px; }
.lb-bd { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--parchment); color: var(--blue); font-size: 1rem; }
.lb-bd--more { font-size: 0.72rem; font-weight: 700; color: var(--ink-muted); }
.lb-users-head { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 14px; padding: 0 20px 8px 124px; font-size: 0.72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.lb-users-head__stats span { text-align: center; }
.lb-users-head > span:last-child { text-align: right; }
/* Narrow windows: the counters go under the name */
@media (max-width: 900px) {
    .lb-users-head { display: none; }
    .lb-user { grid-template-columns: 44px 44px minmax(0, 1fr) 64px; }
    .lb-user__stats { grid-column: 3 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px 16px; }
    .lb-user__bd { justify-content: flex-start; }
}

/* ===== SURVEYS page layout (desktop) ===== */
.sv-wrap { padding: 20px 20px 0; }
.sv-head { position: relative; overflow: hidden; max-width: 1320px; margin: 0 auto; padding: 44px 56px 40px; border-radius: var(--r-lg); background: var(--blue); color: #fff; }
.sv-head::after { content: ""; position: absolute; right: -90px; top: -120px; width: 420px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none; }
.sv-head > * { position: relative; }
.sv-head h1 { color: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1.06; letter-spacing: -0.02em; max-width: 24ch; }
.sv-head > p { margin-top: 10px; max-width: 62ch; font-size: 1.05rem; line-height: 1.55; color: #D1DAF0; }
.sv-head .sv-meta { margin-bottom: 14px; color: #C6D0EC; }
.sv-head .sv-meta i, .sv-head .sv-meta .nat { color: #fff; }
/* Top right, level with the breadcrumb, like .tp-share (the same 44px hero top); beats `.sv-head > *` */
.sv-head > .sv-share { position: absolute; top: 36px; right: 56px; z-index: 1; }
/* The share buttons above (.mp-share, .tp-share, .sv-share) sit over the hero: the lines that reach their height
   (breadcrumb, the first block, the title) keep 160px clear on the right, so a long name never runs under the button */
.mp-head .page-hero__breadcrumb, .mp-head__main > div:first-child,
.page-hero:has(.tp-share) .page-hero__breadcrumb, .page-hero:has(.tp-share) .tp-row,
.sv-head:has(> .sv-share) > .sv-crumbs, .sv-head:has(> .sv-share) > .sv-meta, .sv-head:has(> .sv-share) > h1 { padding-right: 160px; }
/* Narrow windows: the hero padding drops to 22px (see the 720px block above), so does the button's inset */
@media (max-width: 720px) {
  .mp-share { right: 22px; }
  .tp-share { top: 22px; right: 22px; }
}
.sv-crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 0.88rem; color: #C0CBE7; }
.sv-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sv-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; font-size: 0.92rem; color: #C6D0EC; }
.sv-facts span { display: inline-flex; align-items: center; gap: 6px; }
.sv-tabs { display: inline-grid; grid-auto-flow: column; margin-top: 24px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.12); }
.sv-tabs a { display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; color: #D7DFF4; }
.sv-tabs a:hover { color: #fff; }
.sv-tabs small { opacity: .75; }
.sv-tabs a[aria-current] { background: #fff; color: var(--blue); }
.sv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 28px; padding-bottom: 0; }
.sv-grid .sv-empty { grid-column: 1 / -1; }
@media (max-width: 860px) { .sv-grid { grid-template-columns: 1fr; } }
.sv-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-top: 28px; padding-bottom: 0; }
.sv-body > div { max-width: 760px; }
.sv-side { position: sticky; top: 90px; display: grid; gap: 14px; }
.sv-card { padding: 22px; border-radius: var(--r); background: var(--white); box-shadow: var(--soft); }
.sv-prog b { font-family: var(--display); font-weight: 700; }
.sv-prog .sv-bar { margin-top: 8px; }
.sv-card .btn { width: 100%; justify-content: center; height: 52px; margin-top: 16px; font-size: 1rem; }
.sv-card__note { margin-top: 12px; font-size: 0.82rem; line-height: 1.45; color: var(--ink-faint); }
.sv-others h2 { margin-bottom: 6px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.sv-others a { display: block; padding: 10px 0; border-top: 1px solid var(--parchment-dark); font-weight: 600; font-size: 0.92rem; line-height: 1.4; }
.sv-others a:first-of-type { border-top: 0; }
.sv-others a:hover { color: var(--blue); }
.sv-others small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--ink-faint); }
@media (max-width: 1024px) { .sv-body { grid-template-columns: 1fr; } .sv-side { position: static; } }

/* Surveys: cards, questions and results (docs/19-ankete-b.html, docs/20-anketa-b.html), desktop and phone */
.sv-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.82rem; font-weight: 600; color: var(--ink-muted); }
.sv-meta span { display: inline-flex; align-items: center; gap: 5px; }
.sv-meta i { color: var(--blue); }
.sv-meta .nat { color: var(--red); }
/* Status badges under the title: deadline / scheduled / closed, plus "Попунили сте" beside it */
.sv__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-due, .sv-mine { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--pill); font-size: 0.78rem; font-weight: 600; line-height: 1.3; background: #E3F4EA; color: #1E7A46; }
.sv-due i, .sv-mine i { font-size: 0.95rem; }
.sv-due--soon { background: var(--red-light); color: var(--red-dark); }
.sv-due--scheduled { background: var(--gold-light); color: #7A5300; }
.sv-due--closed { background: var(--parchment-dark); color: var(--ink-muted); }
.sv-mine { background: var(--blue-light); color: var(--blue); }
.sv { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border-radius: var(--r); background: var(--white); box-shadow: var(--soft); }
.sv:hover h3 { color: var(--blue); }
.sv__top { display: flex; align-items: center; gap: 10px; }
.sv h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
/* Three lines on the card; the survey page shows it whole */
.sv__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: 0.92rem; line-height: 1.5; color: var(--ink-muted); }
/* Two counters and the button, always on one row */
.sv__foot { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--parchment-dark); font-size: 0.84rem; color: var(--ink-faint); }
.sv__foot b { font-family: var(--display); font-weight: 700; color: var(--ink); }
.sv__stats { display: flex; gap: 12px; min-width: 0; overflow: hidden; white-space: nowrap; }
.sv__stats > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sv__stats i { margin-right: 4px; font-size: 1rem; vertical-align: -2px; }
.sv__go { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; color: var(--blue); }
/* Closed: the leading answer is the teaser */
.sv-lead { padding: 12px 14px; border-radius: 14px; background: var(--parchment); font-size: 0.86rem; }
.sv-lead small { display: block; color: var(--ink-faint); }
.sv-lead b { display: block; margin-top: 2px; font-weight: 600; }
.sv-lead .sv-bar { margin-top: 8px; }
.sv-bar { height: 8px; border-radius: 4px; background: var(--parchment-dark); overflow: hidden; }
.sv-bar span { display: block; height: 100%; border-radius: 4px; background: var(--blue); }
.sv-empty { padding: 36px 24px; border-radius: var(--r); background: var(--white); text-align: center; color: var(--ink-muted); }

.sq-list { list-style: none; display: grid; gap: 14px; }
.sq { padding: 22px 24px; border-radius: var(--r); background: var(--white); border: 0; min-width: 0; }
.sq legend { float: left; width: 100%; font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.sq legend + * { clear: both; }
.sq__n { display: block; margin-bottom: 4px; font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); }
.sq__n em { font-style: normal; font-weight: 500; }
.sq.bad { box-shadow: inset 0 0 0 2px var(--red); }
.sq__err { margin-top: 10px; font-size: 0.85rem; font-weight: 600; color: var(--red); }
.sq__err[hidden] { display: none; }
.sq-opts { display: grid; gap: 8px; padding-top: 14px; }
.sq-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border); cursor: pointer; line-height: 1.4; }
.sq-opt:hover { border-color: var(--blue); }
.sq-opt input { flex: none; width: 20px; height: 20px; accent-color: var(--blue); }
.sq-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }
.sq-opt:has(input:focus-visible) { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.sq-hint { clear: both; padding-top: 4px; font-size: 0.82rem; color: var(--ink-faint); }
.sq-hint + .sq-opts, .sq-hint + .sq-rank { padding-top: 10px; }
.sq-scale { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding-top: 14px; }
.sq-scale label { position: relative; }
.sq-scale input { position: absolute; opacity: 0; inset: 0; }
.sq-scale span { display: grid; place-items: center; height: 48px; border-radius: 12px; border: 1.5px solid var(--border); font-family: var(--display); font-weight: 700; cursor: pointer; }
.sq-scale label:hover span { border-color: var(--blue); }
.sq-scale input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.sq-scale input:focus-visible + span { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.sq-ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.8rem; color: var(--ink-faint); }
.sq-rank { list-style: none; display: grid; gap: 6px; padding-top: 14px; }
.sq-rank li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--parchment); }
.sq-rank b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--display); font-size: 0.85rem; }
.sq-rank span { flex: 1; font-weight: 500; }
.sq-rank button { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--white); color: var(--ink-muted); font-size: 1.05rem; }
.sq-rank button:hover:not(:disabled) { color: var(--blue); }
.sq-rank button:disabled { opacity: .35; cursor: default; }
.sq-rank li.moved { animation: sq-moved .5s ease; }
@keyframes sq-moved { from { background: var(--blue-light); } }
.sq textarea { display: block; width: 100%; min-height: 110px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--white); font: inherit; line-height: 1.55; resize: vertical; }
.sq textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
[data-progress] { transition: width .25s ease; }

.sr-thanks { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r); background: #E3F4EA; color: #145A33; }
.sr-thanks:focus { outline: none; }
.sr-thanks i { flex: none; font-size: 1.8rem; }
.sr-thanks b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.sr-thanks span { font-size: 0.9rem; }
.sr-note { padding: 14px 18px; border-radius: var(--r); background: var(--parchment-dark); color: var(--ink-muted); }
.sr-note--bad { margin-bottom: 14px; background: var(--red-light); color: var(--red-dark); font-weight: 600; }
.sr-h { margin: 22px 0 12px; font-family: var(--display); font-weight: 600; font-size: 1.4rem; }
.sr-list { display: grid; gap: 14px; }
.sr { padding: 22px 24px; border-radius: var(--r); background: var(--white); }
.sr h3 { font-weight: 600; font-size: 1.02rem; line-height: 1.4; }
.sr__sub { margin-top: 2px; font-size: 0.82rem; color: var(--ink-faint); }
.sr-rows { display: grid; gap: 12px; margin-top: 14px; }
.sr-row__top { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.sr-row__top b { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.sr-row .sv-bar { margin-top: 6px; }
.sr-row:not(.lead) .sv-bar span { background: #7D93C9; }
.sr-you { display: inline-flex; align-items: center; margin: 0 8px; padding: 1px 8px; border-radius: var(--pill); background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 600; vertical-align: 1px; }
.sr-quotes .sr-you { margin-left: 0; }
.sr-hist { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; height: 120px; margin-top: 16px; }
.sr-hist div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.sr-hist span { display: block; border-radius: 6px 6px 0 0; background: #7D93C9; min-height: 3px; }
.sr-hist div.on span { background: var(--red); }
.sr-hist small { display: block; margin-top: 4px; text-align: center; font-weight: 600; font-size: 0.8rem; color: var(--ink-muted); }
.sr-avg { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; font-size: 0.9rem; color: var(--ink-muted); }
.sr-avg b { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--blue); }
.sr-quotes { display: grid; gap: 8px; margin-top: 14px; }
.sr-quotes p { padding: 12px 14px; border-radius: 14px; background: var(--parchment); font-size: 0.92rem; line-height: 1.5; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .sq-rank li.moved { animation: none; } [data-progress] { transition: none; } }

/* Home: open surveys (cards from /ankete) and the no-proposals message */
/* Home: one or two survey cards need less air than a full section; the next section starts closer too */
.home-surveys-band { padding: 40px 0 0; }
.home-surveys-band + .section { padding-top: 56px; }
.home-surveys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .home-surveys { grid-template-columns: 1fr; } }
.home-empty { display: grid; justify-items: center; gap: 4px; padding: 40px 24px; border-radius: var(--r); background: var(--white); text-align: center; }
.home-empty > i { font-size: 2.2rem; color: var(--blue); }
.home-empty b { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.home-empty p { color: var(--ink-muted); }
.home-empty .btn { margin-top: 12px; }

/* ===== ERROR PAGE (/greska/{code}) ===== */
.er-wrap { padding: 20px 20px 0; }
.er { position: relative; overflow: hidden; max-width: 1320px; margin: 0 auto; padding: 64px 56px 56px; border-radius: var(--r-lg); background: var(--blue); color: #fff; }
.er::after { content: ""; position: absolute; right: -90px; top: -120px; width: 420px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none; }
.er > * { position: relative; }
.er__code { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; color: #C6D0EC; }
.er h1 { margin-top: 6px; color: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1.06; letter-spacing: -0.02em; max-width: 20ch; }
.er__text { margin-top: 12px; max-width: 56ch; font-size: 1.08rem; line-height: 1.55; color: #D1DAF0; }
.er-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 28px; padding: 6px 6px 6px 18px; border-radius: var(--pill); background: #fff; }
.er-search i { font-size: 1.2rem; color: var(--ink-faint); }
.er-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; font: inherit; color: var(--ink); }
.er-search input:focus { outline: none; }
.er-search:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.er-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.er-nav .btn { background: rgba(255,255,255,.12); border-color: transparent; color: #fff; }
.er-nav .btn:hover { background: rgba(255,255,255,.2); }

/* ==================== Proposal photos: form field (_ProposalPhotoField), gallery and dialog (_ProposalGallery) ==================== */
.pf-label { display: block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.pf-label small { margin-left: 6px; font-family: var(--body); font-weight: 400; font-size: 0.82rem; color: var(--ink-faint); }
.pf-photo-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pf-photo-list:empty { display: none; }
.pf-photo { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: var(--parchment); }
.pf-photo img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--parchment-dark); }
.pf-photo__alt span { display: block; font-size: 0.78rem; font-weight: 600; color: var(--ink-muted); }
.pf-photo__alt input { display: block; width: 100%; margin-top: 4px; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--white); font: inherit; font-size: 0.92rem; color: var(--ink); }
.pf-photo__alt input:focus { outline: none; border-color: var(--blue); }
.pf-photo__rm { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--white); color: var(--red-dark); font-size: 1.1rem; cursor: pointer; }
.pf-photo__rm:hover { background: var(--red-light); }
.pf-photo__rm:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pf-photo-add { position: relative; margin-top: 12px; cursor: pointer; }
.pf-photo-add[hidden] { display: none; }
.pf-photo-add input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pf-photo-add:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.pf-photo-add.busy { opacity: .6; cursor: progress; }
.pf-photo-add.busy i { animation: pf-spin 1s linear infinite; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
.pf-photos .pf-hint { display: block; }
.pf-photo-wait { margin-top: 10px; font-size: 0.86rem; font-weight: 600; color: var(--blue); }
.pf-photo-wait[hidden] { display: none; }
.pf-err .field-validation-error + .pf-err__def { display: none; }
.pf-preview__media { grid-column: 1 / -1; position: relative; }
.pf-preview__media[hidden] { display: none; }
.pf-preview__count { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(20,24,38,.72); color: #fff; font-size: 0.78rem; font-weight: 600; line-height: 1.2; }
.pf-preview__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; overscroll-behavior-x: contain; }
.pf-preview__track::-webkit-scrollbar { display: none; }
.pf-preview__track > .pf-preview__photo { flex: 0 0 100%; scroll-snap-align: start; border-radius: 0; }
.pf-preview__photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--parchment); }
.pf-preview__photo[hidden] { display: none; }

.pg { position: relative; margin-top: 28px; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
.pg--1 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
.pg--2 { grid-auto-rows: 260px; }
.pg--3 .pg__item:first-child { grid-row: span 2; }
.pg__item { display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--parchment-dark); cursor: zoom-in; }
.pg__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.pg--1 .pg__item img { height: auto; max-height: 520px; }
.pg__item:hover img { transform: scale(1.02); }
.pg__item:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pg__count { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: var(--pill); background: rgba(18,31,63,.7); color: #fff; font-size: 0.78rem; font-weight: 600; pointer-events: none; }
.ac-card .pg { margin: 16px 0 0; }

.pg-box { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12,18,36,.94); color: #fff; }
.pg-box::backdrop { background: rgba(12,18,36,.6); }
.pg-box[open] { display: flex; align-items: center; justify-content: center; }
.pg-box__fig { margin: 0; max-width: calc(100vw - 160px); max-height: calc(100vh - 100px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pg-box__fig img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.pg-box__fig figcaption { font-size: 0.95rem; color: #D1DAF0; text-align: center; }
.pg-box__count { position: absolute; top: 22px; left: 24px; font-size: 0.9rem; color: #D1DAF0; }
.pg-box__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem; cursor: pointer; }
.pg-box__btn:hover { background: rgba(255,255,255,.22); }
.pg-box__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pg-box__close { top: 14px; right: 16px; }
.pg-box__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.pg-box__next { right: 20px; top: 50%; transform: translateY(-50%); }
/* ===== SUCCESS STORIES (/uspesne-price, home and place blocks, proposal link) ===== */
.section-header__title .ic--green { background: #E8F5ED; color: #1A7A3D; }
.st-list { padding-top: 40px; padding-bottom: 0; }
.st-band { padding-top: 40px; }
.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.st-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); transition: box-shadow .15s; }
.st-card:hover { box-shadow: var(--shadow-md); }
.st-card__img { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--parchment-dark); color: var(--ink-faint); font-size: 2.6rem; }
.st-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-card__body { padding: 18px 20px 20px; }
.st-card__title { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; overflow-wrap: anywhere; }
.st-card__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.86rem; color: var(--ink-muted); }
.st-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.st-pager { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--ink-muted); font-size: 0.9rem; }
.st-head .tag--done { margin-top: 4px; }
.st-article { min-width: 0; }
.st-text { margin-top: 32px; }
.st-article > .st-gal:first-child { margin-top: 0; }
.st-gal { margin-top: 28px; }
.st-gal__h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.st-gal__h small { font-family: var(--body); font-size: 0.85rem; font-weight: 600; color: var(--ink-faint); }
.st-gal__tag { display: inline-block; padding: 4px 14px; border-radius: var(--pill); background: var(--parchment-dark); color: var(--ink); }
.st-gal--posle .st-gal__tag { background: #E8F5ED; color: #1A7A3D; }
.st-gal__grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.st-gal__grid--one { grid-template-columns: minmax(0, 1fr); }
.st-gal figure { margin: 0; }
.st-gal__item { display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--parchment-dark); }
.st-gal__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.st-gal__grid--one .st-gal__item img { aspect-ratio: 16 / 9; }
.st-gal__item:hover img { transform: scale(1.03); }
.st-gal figcaption { margin-top: 4px; font-size: 0.78rem; color: var(--ink-faint); }
.st-proposal { margin-top: 28px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r); background: var(--white); box-shadow: var(--soft); color: var(--ink); }
.st-proposal:hover { box-shadow: var(--shadow-md); }
.st-proposal > i:first-child { font-size: 1.8rem; color: var(--gold); }
.st-proposal--story > i:first-child { color: #1A7A3D; }
.st-proposal span { flex: 1; min-width: 0; }
.st-proposal small { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); }
.st-proposal b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.st-cta h2 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.st-cta p { margin: 8px 0 18px; color: var(--ink-muted); font-size: 0.95rem; line-height: 1.5; }
.st-cta .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
.st-cta .btn + .btn { margin-top: 10px; }
@media (max-width: 1024px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .st-grid { grid-template-columns: minmax(0, 1fr); } }

/* Lightbox (js/story.js) */
.st-lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; background: rgba(10,14,26,.92); animation: st-lb-in .18s ease-out; }
.st-lb[hidden] { display: none; }
.st-lb-open, .st-lb-open body { overflow: hidden; }
.st-lb__fig { grid-column: 2; margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 0 24px; min-height: 0; }
.st-lb__img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.st-lb__cap { margin-top: 12px; color: #E2E7F2; font-size: 0.92rem; text-align: center; }
.st-lb__btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: rgba(255,255,255,.12); }
.st-lb__btn:hover { background: rgba(255,255,255,.22); }
.st-lb__btn:focus-visible { outline-color: #fff; }
.st-lb__x { position: absolute; top: 16px; right: 16px; }
.st-lb__prev { grid-column: 1; grid-row: 1; justify-self: center; }
.st-lb__next { grid-column: 3; grid-row: 1; justify-self: center; }
.st-lb__fig { grid-row: 1; }
@keyframes st-lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .st-lb { animation: none; } .st-gal__item img, .st-card { transition: none; } .st-gal__item:hover img { transform: none; } }

/* Author names linking to the public profile (_UserLink) */
.user-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.user-link:hover { text-decoration-thickness: 2px; }

/* Public profile /korisnik/{handle} (place-page hero) */
.up-head__main { position: relative; display: flex; align-items: center; gap: 24px; }
.up-head__main > div { min-width: 0; }
.up-av { flex: none; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.14); color: #fff; font-family: var(--display); font-weight: 600; font-size: 2.2rem; }
.up-name { margin-top: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.up-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.95rem; color: #D1DAF0; }
.up-meta > * { display: inline-flex; align-items: center; gap: 6px; }
.up-meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.up-head .mp-facts { position: relative; margin-top: 26px; }
.up-body { padding-top: 40px; padding-bottom: 0; }
.ac-set__profile { margin-top: 14px; font-size: 0.92rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.ac-set__profile a { color: var(--blue); font-weight: 600; }


/* "Završi profil" (#49): progress card and avatar on /nalog/podesavanja, reminder after sign-in */
.pc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pc-count { font-family: var(--display); font-weight: 600; color: var(--blue); }
.pc-bar { display: block; width: 100%; height: 8px; margin-top: 12px; border: 0; border-radius: var(--pill); overflow: hidden; background: var(--parchment-dark); appearance: none; }
.pc-bar::-webkit-progress-bar { background: var(--parchment-dark); border-radius: var(--pill); }
.pc-bar::-webkit-progress-value { background: var(--blue); border-radius: var(--pill); }
.pc-bar::-moz-progress-bar { background: var(--blue); border-radius: var(--pill); }
.pc-xp { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.9rem; font-weight: 600; color: #7A5300; }
.pc-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; padding: 0; }
.pc-step__link { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.pc-step__link i { font-size: 1.3rem; color: var(--ink-faint); }
.pc-step__link span { font-weight: 600; }
.pc-step__link small { font-size: 0.8rem; color: var(--ink-muted); }
.pc-step--done .pc-step__link { border-color: #BFE5CF; background: #EBF7F1; }
.pc-step--done .pc-step__link i { color: #22A855; }
.pc-step:not(.pc-step--done) .pc-step__link:hover { border-color: var(--blue); }
.av-set .alert { margin-top: 12px; }
.av-row { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.av-img { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--blue-light); color: var(--blue); font-family: var(--display); font-weight: 600; font-size: 1.6rem; }
.av-acts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.av-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.av-form .form-label { flex-basis: 100%; margin: 0; }
.av-form .form-input { width: auto; max-width: 320px; }
/* Avatar crop dialog (#65, js/avatar-crop.js + Cropper.js): the picture in the same circle as the avatar, two previews */
.avc { width: min(660px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 24px 26px; border: 0; border-radius: var(--r); background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); }
.avc::backdrop { background: rgba(12,18,36,.6); }
.avc__title { font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.avc__help { margin-top: 4px; font-size: 0.9rem; color: var(--ink-muted); }
.avc__body { display: flex; align-items: flex-start; gap: 26px; margin-top: 18px; }
.avc__stage { flex: none; width: 360px; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); background: var(--blue-night); }
.avc__stage:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.avc__stage img { display: block; max-width: 100%; }
.avc__label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.avc__previews { display: flex; align-items: flex-end; gap: 16px; margin-top: 10px; }
.avc__pv { flex: none; overflow: hidden; border-radius: 50%; background: var(--blue-light); }
.avc__pv--lg { width: 120px; height: 120px; }
.avc__pv--sm { width: 40px; height: 40px; }
.avc__zoom { display: flex; align-items: center; gap: 10px; width: 360px; margin-top: 14px; }
.avc__zoom input { flex: 1; min-width: 0; accent-color: var(--blue); }
.avc__zbtn { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--border); background: var(--white); color: var(--ink); cursor: pointer; }
.avc__zbtn:hover { border-color: var(--ink-faint); }
.avc__zbtn:disabled { opacity: .4; cursor: default; }
.avc__acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.avc__acts .btn:disabled { opacity: .5; cursor: default; }
/* Cropper's frame is the circle: round frame and drag face, a white ring, the corners outside it dimmed */
.avc .cropper-view-box, .avc .cropper-face { border-radius: 50%; }
.avc .cropper-view-box { outline: 0; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.avc .cropper-face { background: transparent; }
.avc .cropper-modal { background: var(--blue-night); opacity: .6; }
@media (max-width: 700px) {
  .avc__body { flex-direction: column; }
  .avc__stage, .avc__zoom { width: min(360px, 100%); }
}
@media (prefers-reduced-motion: no-preference) { .avc[open] { animation: avc-in .18s ease-out; } }
@keyframes avc-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.pr-remind { background: var(--gold-light); border-bottom: 1px solid #EBD9A6; }
.pr-remind__in { display: flex; align-items: center; gap: 14px; max-width: var(--max-width); margin: 0 auto; padding: 10px 24px; }
.pr-remind__icon { font-size: 1.5rem; color: var(--gold); }
.pr-remind__text { flex: 1; font-size: 0.92rem; color: var(--ink); }
.pr-remind__close { margin: 0; }
/* Ranks and badges (#47): the chip beside a comment author, the rank with its XP bar and the badges (profile, settings) */
.cm__who .rk-chip, .rk-chip { display: inline-flex; align-items: center; margin-left: 8px; padding: 1px 9px; border-radius: var(--pill); background: var(--gold-light); color: #7A5A12; font-size: 0.74rem; font-weight: 600; line-height: 1.6; vertical-align: 1px; white-space: nowrap; }
.up-progress { margin-bottom: 40px; padding: 24px 26px; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); }
.rk__head { display: flex; align-items: center; gap: 14px; }
.rk__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-light); color: var(--gold); font-size: 1.6rem; }
.rk__who { min-width: 0; display: flex; flex-direction: column; }
.rk__who small { font-size: 0.8rem; color: var(--ink-faint); }
.rk__name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.rk__xp { margin-left: auto; font-family: var(--display); font-weight: 600; color: var(--blue); white-space: nowrap; }
.rk-bar { margin-top: 14px; height: 10px; border-radius: var(--pill); background: var(--parchment-dark); overflow: hidden; }
.rk-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #D9A93A); }
.rk__next { margin-top: 8px; font-size: 0.88rem; color: var(--ink-muted); }
.rk__sub { margin-top: 20px; font-weight: 600; font-size: 0.92rem; }
.bd-list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.bd { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--parchment); }
.bd > i { flex: none; font-size: 1.6rem; color: var(--blue); }
.bd > span { min-width: 0; display: flex; flex-direction: column; }
.bd b { font-size: 0.92rem; }
.bd small { font-size: 0.8rem; color: var(--ink-muted); }
.bd-empty { margin-top: 6px; font-size: 0.88rem; color: var(--ink-faint); }
.rk-card .rk { margin-top: 18px; }
/* ===== "ШТА СЛЕДИ" after sending a proposal (Pages/Proposals/Sent) ===== */
.ps { padding: 20px 20px 0; }
.ps-head { position: relative; max-width: 860px; padding: 44px 56px 40px; border-radius: var(--r-lg); background: var(--blue); color: #fff; }
.ps-head__mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: rgba(255,255,255,.14); font-size: 2rem; }
.ps-head h1 { color: #fff; margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; }
.ps-head__title { margin-top: 10px; font-size: 1.05rem; color: #D1DAF0; overflow-wrap: anywhere; }
.ps-body { max-width: 860px; margin-top: 16px; padding: 32px 36px; background: var(--white); border-radius: var(--r); box-shadow: var(--soft); }
.ps-body h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.ps-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
.ps-steps li { display: flex; gap: 14px; }
.ps-steps__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--blue-light); color: var(--blue); font-size: 1.3rem; }
.ps-steps b { font-weight: 600; font-size: 1.02rem; }
.ps-steps p { margin-top: 4px; color: var(--ink-muted); line-height: 1.5; }
.ps-share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ps-share .btn[disabled] { opacity: .55; cursor: not-allowed; }
.ps-small { font-size: 0.84rem; }
.ps-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--parchment-dark); }

/* Rich text from the admin editor (theme descriptions): paragraphs, lists, links */
.rich-text > * + * { margin-top: 0.5em; }
.rich-text ul, .rich-text ol { padding-left: 1.3em; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rich-text strong { font-weight: 700; }
.rich-text em { font-style: italic; }
.pd-text ul, .pd-text ol { font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.pd-text p + ul, .pd-text p + ol, .pd-text ul + p, .pd-text ol + p { margin-top: 1em; }
.pg__n { display: none; }   /* phone strip only (mobile.css) */
/* Proposal page head: photo count next to the place, links to the gallery */
.pd-photos { position: relative; display: inline-flex; align-items: center; gap: 7px; margin: 12px 0 0 8px; padding: 7px 14px; border-radius: var(--pill); background: rgba(255,255,255,.12); font-size: 0.9rem; font-weight: 600; color: #fff; vertical-align: middle; }
.pd-photos:hover { background: rgba(255,255,255,.22); }
.pd-photos:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#fotografije { scroll-margin-top: 90px; }
/* Settings: the "Završite profil" step links and the avatar forms (#62, back to #avatar) land below the sticky nav */
#avatar, #home-place-group { scroll-margin-top: 90px; }
#DisplayName { scroll-margin-top: 130px; }   /* the input: keep its label in view */

/* Searchable place list (js/select-search.js): the select becomes a text box with a filtered list */
.ss { position: relative; }
.ss__input { cursor: text; }
.ss__list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); max-height: 288px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(26,31,46,.16); text-align: left; }
.ss__list li { padding: 9px 12px; border-radius: 10px; cursor: pointer; color: var(--ink); font-size: 0.95rem; font-weight: 500; line-height: 1.3; }
.ss__list li.on { background: var(--blue-light); color: var(--blue); }
.ss__list li[aria-selected="true"] { font-weight: 700; }
.ss__list .ss__none { color: var(--ink-muted); }
.ss__list .ss__empty { cursor: default; color: var(--ink-faint); }
.lb-place__field .ss { height: 100%; }
.lb-place__field .ss__input { appearance: none; height: 100%; padding: 0 36px 0 38px; border: 0; border-radius: inherit; background: transparent; font: inherit; font-weight: 600; color: #fff; }
.lb-place__field .ss__input::placeholder { color: rgba(255,255,255,.7); }
.lb-place__field .ss__input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-place__field .ss__input { min-width: 240px; font-size: 0.9rem; }
