/* uradne.sk – public site (layout/public), after the IDSK3-style design template.
   Tokens: primary P100–P600, neutrals N, spacing 15/20/30/40/60/100 px, focus #D96E00 (3 px, offset 2 px).
   Loaded only by layout/public, after site-chrome.css; no Bootstrap, no idsk.css.
   The fonts, the tokens and the chrome shared with the application (gov bar, header, buttons, footer) are in
   site-chrome.css; this file has the public pages. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}
@media (min-width: 731px) {
  body { font-size: 1.1875rem; line-height: 28px; }
}

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

h1, h2, h3, h4 { color: var(--p600); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 36px; line-height: 45px; }
h2 { font-size: 24px; line-height: 35px; }
h3 { font-size: 20px; line-height: 26px; }
h4 { font-size: 19px; line-height: 24px; }
@media (min-width: 731px) {
  h1 { font-size: 48px; line-height: 55px; font-weight: 900; }
  h2 { font-size: 36px; line-height: 45px; }
  h3 { font-size: 24px; line-height: 35px; }
  h4 { font-size: 20px; line-height: 26px; }
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

a { color: var(--p500); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--p600); text-decoration-thickness: 2px; }

/* Focus: site-chrome.css; white on the dark call-to-action box as on the dark chrome. */
.cta :focus-visible { outline-color: #fff; }

/* Wrap, skip link, visually hidden, gov bar, header and buttons: site-chrome.css. */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s1); }
.btn-row--spaced { margin-top: 24px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: var(--s2) 0 0; font-size: 16px; line-height: 24px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; }
.breadcrumbs li + li::before {
  content: ""; width: 7px; height: 7px; margin: 0 12px 0 10px;
  border-top: 2px solid var(--n600); border-right: 2px solid var(--n600); transform: rotate(45deg);
}
.breadcrumbs a { color: var(--p500); }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: var(--s6) 0; }
.section--surface { background: var(--p100); }
.section--tight { padding: 0; }
.section__head { max-width: 760px; margin-bottom: var(--s4); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 19px; line-height: 28px; color: var(--text); }
@media (min-width: 731px) { .lead { font-size: 24px; line-height: 36px; } }
.muted { color: var(--muted); }

/* Hero */
.hero { background: var(--p100); color: var(--text); padding: var(--s5) 0 var(--s6); border-bottom: 1px solid var(--p200); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s5); align-items: center; }
.hero h1 { color: var(--p600); }
.hero .lead { max-width: 620px; }
.hero__eyebrow { display: block; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--p500); margin-bottom: var(--s1); }
.hero .btn-row { margin-top: var(--s3); }
.hero__panel { background: #fff; color: var(--text); border: 1px solid var(--p200); border-radius: var(--radius); padding: var(--s3); }
.hero__panel h2 { font-size: 24px; line-height: 35px; margin-bottom: var(--s1); }
.hero__note { font-size: 14px; line-height: 20px; color: var(--muted); margin: var(--s1) 0 0; }
/* Hero panel with an odd number of figures (home page: 3): the last one takes the whole row. */
.hero__panel .stats li:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.stats li { margin: 0; padding: var(--s2) 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; min-width: 0; }
.stats li:nth-child(odd) { padding-right: var(--s1); border-right: 1px solid var(--line); }
.stats li:nth-child(even) { padding-left: var(--s2); }
.stats img { width: 32px; height: 36px; flex-shrink: 0; }
.stats strong { display: block; font-size: 28px; line-height: 1.15; font-weight: 900; color: var(--p600); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats span { font-size: 16px; line-height: 24px; color: var(--muted); }
.stats div { min-width: 0; }
.stats .stat__growth { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--positive); }

/* Five counters in their own section. The icon has its own row, kept for the organizations counter, which has
   no icon in the template, so that every number in the row of five starts at the same height. */
.stats--wide { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); border-top: 0; }
.stats--wide li,
.stats--wide li:nth-child(odd),
.stats--wide li:nth-child(even) {
  display: grid; grid-template-rows: 44px repeat(3, auto); align-content: start; justify-items: start; gap: 4px;
  padding: var(--s3) var(--s2); border: 1px solid var(--p200); border-radius: var(--radius); background: #fff;
}
.stats--wide img { grid-row: 1; margin-bottom: 8px; }
.stats--wide strong { grid-row: 2; font-size: 32px; }
.stats--wide .stat__label { grid-row: 3; }
.stats--wide .stat__growth { grid-row: 4; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.cards > li { margin: 0; }
.card {
  position: relative; height: 100%;
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--n300); border-radius: var(--radius);
  padding: var(--s3);
  transition: border-color .15s, background-color .15s;
}
.card:hover { border-color: var(--p400); background: var(--p100); }
.card__icon { width: 48px; height: 48px; }
.card__shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--n300); }
.card h3, .card .h3 { font-size: 20px; line-height: 26px; margin: 8px 0 0; }
.card h3 a, .card .h3 a { color: var(--p600); text-decoration: none; }
.card h3 a::after, .card .h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:hover, .card .h3 a:hover { text-decoration: underline; }
.card h3 a:focus-visible, .card .h3 a:focus-visible { outline: 0; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card p { margin: 0; font-size: 16px; line-height: 24px; color: var(--muted); }
.card__more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--p500); font-size: 16px; line-height: 24px; }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; background: #fff; }
.benefits li { margin: 0; padding: var(--s4) var(--s3) var(--s4) 0; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s1); align-items: start; }
.benefits li + li { padding-left: var(--s3); border-left: 1px solid var(--line); }
.benefits img { width: 56px; height: 46px; margin: 0; grid-row: 1 / span 2; object-fit: contain; }
.benefits h3 { font-size: 20px; line-height: 26px; margin-bottom: 6px; }
.benefits p { margin: 0; font-size: 16px; line-height: 24px; color: var(--muted); }
/* Home page: the strip between the head of "Čo získate po prihlásení" and its cards. */
.section__head + .benefits li { padding-top: 0; }
.benefits + .cards { margin-top: var(--s2); }

/* Steps ("Ako začať") */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin: 0 0 var(--s4); padding: 0; list-style: none; }
.steps li { counter-increment: step; margin: 0; padding: var(--s3); background: #fff; border: 1px solid var(--p200); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 10px;
  font-size: 48px; line-height: 1; font-weight: 900; color: var(--p400);
}
.steps h3 { font-size: 20px; line-height: 26px; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 16px; line-height: 24px; color: var(--muted); }

/* Organizations (row that scrolls inside itself). The 5 px around the cards keep a card's focus outline (3 px,
   offset 2 px) inside the scrolling box, which would clip it; the negative margin keeps the cards in line with
   the text. */
.orgs {
  display: flex; flex-wrap: nowrap; gap: 12px; margin: 0 -5px; padding: 5px 5px var(--s1); list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 5px;
  scrollbar-width: thin; scrollbar-color: var(--p400) var(--p100);
}
.orgs::-webkit-scrollbar { height: 10px; }
.orgs::-webkit-scrollbar-track { background: var(--p100); border-radius: 5px; }
.orgs::-webkit-scrollbar-thumb { background: var(--p400); border-radius: 5px; }
.orgs li {
  flex: 0 0 140px; min-width: 0; scroll-snap-align: start; margin: 0;
  background: #fff; border: 1px solid var(--n300); border-radius: var(--radius);
  text-align: center; font-size: 14px; line-height: 20px; color: var(--text);
}
.orgs li > a, .orgs li > div { display: flex; flex-direction: column; align-items: center; height: 100%; padding: var(--s1) 10px 14px; }
.orgs li > a { color: inherit; text-decoration: none; border-radius: var(--radius); }
.orgs li > a:hover { background: var(--p100); }
.orgs li > a:hover .orgs__name { text-decoration: underline; }
.orgs img { width: 56px; height: 64px; object-fit: contain; margin: 0 auto 8px; }
.orgs span { display: block; }
.orgs__name { font-weight: 600; color: var(--p600); overflow-wrap: anywhere; }
.orgs__type { margin-top: 2px; color: var(--muted); }
.orgs__count { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--p500); }
.type-summary { max-width: 760px; margin: var(--s3) auto 0; text-align: center; font-size: 16px; line-height: 24px; color: var(--muted); }
ul.type-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; padding: 0; list-style: none; }
ul.type-summary li { margin: 0; }

/* Integrations */
.links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.panel { background: #fff; border: 1px solid var(--p200); border-radius: var(--radius); padding: var(--s3); }
.panel h3 { margin-bottom: var(--s1); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li { margin: 0; padding: 6px 12px; border-radius: var(--radius); background: var(--p100); border: 1px solid var(--p200); font-size: 16px; line-height: 24px; }
.tag-list--spaced { margin-bottom: 1em; }
.section__note { max-width: 760px; margin: var(--s3) 0 0; font-size: 16px; line-height: 24px; color: var(--muted); }

/* Call to action band */
.cta { background: var(--p600); color: #fff; border-radius: var(--radius); padding: var(--s4); display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.cta h2 { margin-bottom: 6px; font-size: 24px; line-height: 35px; color: #fff; }
.cta p { margin: 0; color: #fff; }
.cta a:not(.btn) { color: #fff; }
.cta .btn { background: #fff; border-color: #fff; color: var(--p600); flex-shrink: 0; }
.cta .btn:hover { background: var(--p100); border-color: var(--p100); color: var(--p600); }
/* On a surface section (Služby): the template's white box. Its text and button are the light-background ones
   (the dark band's white text would be invisible on white). */
.cta--light { background: #fff; color: var(--text); }
.cta--light h2 { color: var(--p600); }
.cta--light p { color: var(--text); }
.cta--light a:not(.btn) { color: var(--p500); }
.cta--light .btn { background: var(--p400); border-color: var(--p400); color: #fff; }
.cta--light .btn:hover { background: var(--p500); border-color: var(--p500); color: #fff; }
.cta--light :focus-visible { outline-color: var(--focus); }

/* Login box on the home page */
.login-box { max-width: 640px; background: #fff; border: 1px solid var(--p200); border-radius: var(--radius); padding: var(--s4); }
.login-box h2 { font-size: 24px; line-height: 35px; }
.login-box .sf-form { max-width: none; }
.login-box .btn-row { margin-top: var(--s2); font-size: 16px; line-height: 24px; }

/* ---------- Sub-pages ---------- */
.page-head { background: var(--p100); padding: 0 0 var(--s4); border-bottom: 1px solid var(--p200); }
.page-head h1 { margin-top: var(--s3); margin-bottom: var(--s1); }
.page-head .lead { max-width: 780px; margin: 0; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.prose { max-width: 720px; min-width: 0; overflow-wrap: break-word; }
.prose h2 { font-size: 24px; line-height: 35px; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose li::marker { color: var(--p400); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--n300); text-align: left; vertical-align: top; }

.aside-box { background: var(--p100); border: 1px solid var(--p200); border-radius: var(--radius); padding: var(--s3); min-width: 0; }
.aside-box h2 { font-size: 24px; line-height: 35px; }
.aside-box .sf-form { max-width: none; }

.contact-list { list-style: none; padding: 0; margin: 0 0 1em; }
.contact-list li { margin-bottom: 8px; }
.tag-list a, .contact-list a { display: inline-block; padding: 2px 0; min-height: 26px; }
.inset { border-left: 6px solid var(--p400); padding: 4px 0 4px var(--s2); margin: 0 0 var(--s4); max-width: 760px; }
.photo-placeholder { border-radius: var(--radius); overflow: hidden; background: var(--p100); }

/* FAQ accordion on <details> */
.faq-group { margin-bottom: var(--s5); }
.faq-group h2 { font-size: 24px; line-height: 35px; padding-bottom: 10px; border-bottom: 2px solid var(--p600); }
.faq { border-top: 1px solid var(--n300); }
.faq details { border-bottom: 1px solid var(--n300); }
.faq summary, .prose .btn-link, .prose .panel-title a {
  cursor: pointer; list-style: none; position: relative;
  padding: var(--s2) 52px var(--s2) 0; font-weight: 700; font-size: 19px; line-height: 28px; color: var(--p500);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .prose .btn-link[data-toggle="collapse"]::after, .prose .panel-title a[data-toggle="collapse"]::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1;
}
.faq details[open] summary::after,
.prose .btn-link[data-toggle="collapse"][aria-expanded="true"]:not(.collapsed)::after,
.prose .panel-title a[data-toggle="collapse"][aria-expanded="true"]:not(.collapsed)::after { content: "–"; }
.faq summary:hover { color: var(--p600); }
.faq details > div { padding: 0 0 var(--s2); max-width: 820px; }
.faq details > div > :last-child { margin-bottom: 0; }

/* Bootstrap collapse markup in DB page content (toggled by public-site.js) */
.collapse:not(.show) { display: none; }

/*
 * DB page content inside .prose: the FAQ's Bootstrap 4 cards (.card > .card-header > h2 > button.btn.btn-link,
 * .collapse > .card-body) and the privacy policy's Bootstrap 3 panels (.panel > .panel-heading > .panel-title > a,
 * .panel-collapse > .panel-body) look like the .faq accordion above, not like this site's cards, panels and buttons.
 * The +/– sign follows aria-expanded, except on a trigger still marked .collapsed (the DB markup is not consistent).
 */
.prose .accordion, .prose .panel-group { margin: 0 0 var(--s4); border-top: 1px solid var(--n300); }
.prose .card, .prose .panel {
  position: static; display: block; height: auto; gap: 0; margin: 0; padding: 0;
  background: none; border: 0; border-bottom: 1px solid var(--n300); border-radius: 0; transition: none;
}
.prose .card:hover, .prose .panel:hover { background: none; border-color: var(--n300); }
.prose .card:focus-within { outline: 0; }
.prose .card p { margin: 0 0 1em; font-size: inherit; line-height: inherit; color: inherit; }
.prose .card h3 a::after { content: none; }
.prose .card-header, .prose .panel-heading { margin: 0; padding: 0; background: none; border: 0; }
.prose .card-header > h1, .prose .card-header > h2, .prose .card-header > h3, .prose .card-header > h4,
.prose .card-header > h5, .prose .card-header > h6, .prose .panel-title { margin: 0; font-size: inherit; line-height: inherit; }
.prose .btn-link, .prose .panel-title a {
  display: block; width: 100%; min-height: 0; margin: 0; gap: 0;
  background: none; border: 0; border-radius: 0; font-family: inherit;
  text-align: left; text-decoration: none; white-space: normal;
}
.prose .btn-link:hover, .prose .panel-title a:hover { background: none; color: var(--p600); text-decoration: underline; }
.prose .card-body, .prose .panel-body { padding: 0 0 var(--s2); }
.prose .card-body > :last-child, .prose .panel-body > :last-child { margin-bottom: 0; }
/* Other content of DB pages: embeds never wider than the column; text pasted with its own font (Arial spans
   from a word processor) in the site's font. Sizes and colours set in the content stay. */
.prose iframe, .prose video, .prose embed, .prose object { max-width: 100%; }
.prose video { height: auto; }
.prose [style*="font-family"] { font-family: inherit !important; }

/* ---------- Feedback strip ---------- */
.feedback { background: var(--p100); color: var(--text); border-top: 1px solid var(--p200); }
.feedback .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: var(--s2); padding-bottom: var(--s2); }
.feedback p { margin: 0; }
.feedback a { color: var(--p500); font-weight: 700; }

/* ---------- Footer (dark): site-chrome.css ---------- */

/* ---------- Forms ---------- */
.sf-form { display: grid; gap: var(--s2); max-width: 640px; }
.sf-field { display: grid; gap: 6px; }
.sf-field label { font-weight: 700; color: var(--text); }
.sf-field input, .sf-field textarea, .sf-field select {
  width: 100%; padding: 10px 12px; min-height: 48px; border: 2px solid var(--n600); border-radius: var(--radius);
  font: inherit; font-size: 16px; line-height: 24px; background: #fff; color: var(--text);
}
.sf-field input:focus-visible, .sf-field textarea:focus-visible, .sf-field select:focus-visible { border-color: var(--p600); }
.sf-field textarea { min-height: 140px; resize: vertical; }
.sf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 24px; }
.sf-check input { width: 28px; height: 28px; margin: 0; flex-shrink: 0; accent-color: var(--p400); }
.sf-submit {
  justify-self: start; min-height: 48px; padding: 11px 24px; border: 2px solid var(--p400); border-radius: var(--radius);
  background: var(--p400); color: #fff; font: inherit; font-weight: 700; font-size: 16px; line-height: 24px; cursor: pointer;
}
.sf-submit:hover { background: var(--p500); border-color: var(--p500); }
.sf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.sf-msg { margin: 0; padding: 12px 14px; border-radius: var(--radius); white-space: pre-line; }
/* Empty: no box and no grid gap, but not display:none, which would keep the live region out of the accessibility
   tree, so that the first message put into it might not be announced. Out of the grid flow, with no padding,
   border or margin. */
[data-form-message]:empty {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden;
  clip-path: inset(50%);
}
.sf-ok { background: var(--positive-light); color: var(--positive-dark); border-left: 5px solid var(--positive); }
.sf-chyba { background: var(--alert-light); color: var(--alert-dark); border-left: 5px solid var(--alert); }
.form-note { font-size: 16px; line-height: 24px; color: var(--muted); margin: 0; }
.sf-submit[disabled] { opacity: .6; cursor: progress; }

/* ---------- Responsive ---------- */
/* The header is sticky: an anchor (#prihlasenie, #formular) must not end up under it. */
html { scroll-padding-top: 90px; }

@media (max-width: 960px) {
  .hero__grid, .content-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .cards, .stats--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--wide li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* Two per row, both with an icon, and the organizations counter alone: no row to keep for a missing icon. */
  .stats--wide li, .stats--wide li:nth-child(odd), .stats--wide li:nth-child(even) { grid-template-rows: repeat(4, auto); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .benefits li, .benefits li + li { padding: var(--s2) 0; border-left: 0; }
  .benefits li + li { border-top: 1px solid var(--line); }
  .section__head + .benefits li + li { padding-top: var(--s2); }

  /* The header (logo, menu button, navigation): site-chrome.css. */
}

@media (max-width: 730px) {
  .section { padding: var(--s5) 0; }
  .section__head { margin-bottom: var(--s3); }
  .hero { padding: var(--s4) 0 var(--s5); }
  .hero__panel, .login-box { padding: var(--s2); }
  .cards, .links-grid { grid-template-columns: minmax(0, 1fr); }
  .stats li { flex-direction: column; align-items: flex-start; gap: 6px; padding: var(--s1) 0; }
  .stats li:nth-child(odd) { padding-right: 10px; }
  .stats li:nth-child(even) { padding-left: var(--s1); }
  .stats strong, .stats--wide strong { font-size: 24px; }
  .stats--wide { gap: 12px; }
  .stats--wide li, .stats--wide li:nth-child(odd), .stats--wide li:nth-child(even) { padding: var(--s1); }
  .cta { flex-direction: column; align-items: flex-start; padding: var(--s3) var(--s2); }
  .orgs { gap: 8px; }
  .orgs li { flex-basis: 120px; }
  .aside-box, .panel { padding: var(--s2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
