/* help.gscore.eu - spolecny vzhled. Hlavicka, menu a pruh s nadpisem jako www.gscore.eu (Open Sans, cervena #ff2949, menu #3a4349). */
:root {
  --bg: #f4f3f3; --panel: #ffffff; --fg: #1d2126; --muted: #5d6670; --line: #e3dfe0;
  --accent: #e6183c; --accent-soft: #fde8ec; --ok: #1f7a4a; --ok-soft: #e3f3ea; --warn: #9a5b00; --warn-soft: #fbf0d9;
  --blue: #1d5fa8; --blue-soft: #e4eefa;
  --font: "Open Sans", Arial, Helvetica, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.6; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* hlavicka jako gscore.eu */
.site-head { background: #000; color: #fff; padding-inline: 16px; }
.site-head .in { max-width: 1160px; margin: 0 auto; min-height: 105px; display: flex; align-items: center; gap: 12px 25px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 25px; text-decoration: none; color: #fff; margin-right: auto; }
.brand img { display: block; width: 210px; height: auto; max-width: 52vw; }
.brand span { border-left: 1px solid #4b575f; padding-left: 25px; font-size: 20px; font-weight: 600; line-height: 1.15; white-space: nowrap; }
.hright { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 13px; }
.hright a.hb { display: inline-block; height: 40px; line-height: 40px; padding: 0 20px; background: #31393e; color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 600; }
.hright a.hb.red { background: #ff2949; }
.hright a.hb.mobile { display: inline-flex; align-items: center; gap: 10px; }
.hright a.hb:hover, .hright a.hb:focus-visible { background: #161b1f; outline: none; }
.hright .sep { display: inline-block; background: #4b575f; height: 35px; width: 1px; margin: 0 6px; }
.lang a { color: #fff; opacity: .5; text-decoration: none; text-transform: uppercase; font-weight: 700; padding: 0 4px; }
.lang a[aria-current="true"] { opacity: 1; text-decoration: underline; }
.lang a:hover { opacity: 1; }
.site-menu { background: #3a4349; padding-inline: 16px; position: relative; z-index: 20; }
.site-menu .in { max-width: 1160px; margin: 0 auto; display: flex; }
.site-menu a { position: relative; color: #fff; text-decoration: none; padding: 15px 22px; line-height: 22px; margin-top: 4px; white-space: nowrap; letter-spacing: -.3px; font-size: 15px; }
.site-menu a + a::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; margin: auto; width: 1px; height: 26px; background: #4b575f; }
.site-menu a[aria-current="page"], .site-menu a:hover, .site-menu a:focus-visible { background: #161b1f; border-radius: 3px 3px 0 0; outline: none; }
.site-menu a[aria-current="page"] { font-weight: 700; }
/* podmenu (Portal: Pro poradatele / Pro hrace) jako rozbalovaci menu gscore.eu */
.has-sub { position: relative; display: flex; }
.has-sub + a::before, a + .has-sub > a::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; margin: auto; width: 1px; height: 26px; background: #4b575f; }
.has-sub.on > a, .has-sub:hover > a { background: #161b1f; border-radius: 3px 3px 0 0; }
.has-sub.on > a { font-weight: 700; }
.sub { display: none; position: absolute; top: 100%; left: 0; z-index: 30; background: #3a4349; min-width: 100%; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.sub a { display: block; margin: 0 !important; padding: 10px 22px !important; border-radius: 0 !important; }
.sub a::before { display: none !important; }
.site-menu a[aria-current="page"]::before, .site-menu a:hover::before, .site-menu a[aria-current="page"] + a::before, .site-menu a:hover + a::before { display: none; }
.band { background: #31393e; padding-inline: 16px; }
.band .in { max-width: 1160px; margin: 0 auto; padding-block: 16px; color: #fff; font-size: 24px; font-weight: 700; line-height: 1.25; }
.burger { display: none; width: 44px; height: 40px; margin-left: 6px; background: #31393e; border: 0; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: #fff; content: ""; transition: transform .2s, top .2s; }
.burger span { top: 19px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.burger:focus-visible { outline: 2px solid #ff2949; outline-offset: 2px; }
/* uzsi obrazovka: text vedle loga v jednom radku se uz nevejde - schovat */
@media (max-width: 900px) { .brand span { display: none; } }
/* telefon: hamburger menu - menu se rozbali pod hlavickou jako svisly seznam */
@media (max-width: 760px) {
  .brand span, .hright a.hb, .hright .sep { display: none; }
  .site-head .in { min-height: 72px; }
  .burger { display: inline-block; }
  .site-menu { display: none; padding-inline: 0; }
  .site-menu.open { display: block; }
  .site-menu .in { flex-direction: column; }
  .site-menu a { margin-top: 0; padding: 13px 16px; border-top: 1px solid #4b575f; border-radius: 0; border-left: 4px solid transparent; }
  .site-menu a + a::before { display: none; }
  .site-menu a[aria-current="page"] { border-left-color: #ff2949; border-radius: 0; }
  .has-sub { display: block; }
  .has-sub::before, .has-sub > a::before { display: none !important; }
  .sub { display: block; position: static; background: #31393e; }
  .sub a { padding-left: 32px !important; }
}

/* obsah */
main { padding-inline: 16px; }
.page { max-width: 1160px; margin: 0 auto; padding-block: 24px 64px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); }
h1 { font-weight: 800; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
.lead { color: var(--muted); margin: 0; font-size: 17px; }
h2 { font-size: 24px; line-height: 1.2; margin: 34px 0 12px; text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.25; margin: 0; }

.search { position: relative; margin-top: 18px; max-width: 600px; }
.search input { width: 100%; font: inherit; border: 1px solid var(--line); background: var(--panel); color: var(--fg); padding: 11px 14px; }
.search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.results { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; background: var(--panel); border: 1px solid var(--line); border-top: 0; max-height: 60vh; overflow: auto; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.results a { display: block; padding: 9px 14px; border-top: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.results a:first-child { border-top: 0; }
.results a:hover, .results a:focus-visible { background: var(--accent-soft); outline: none; }
.results small { display: block; color: var(--muted); font-size: 13px; }
.results p { margin: 0; padding: 10px 14px; color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 24px; }
.pillar { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 18px; display: grid; gap: 8px; align-content: start; text-decoration: none; color: inherit; }
.pillar:hover, .pillar:focus-visible { border-color: var(--accent); outline: none; }
.pillar .k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.pillar h3 { font-size: 21px; }
.pillar p { margin: 0; color: var(--muted); }
.pillar small { color: var(--muted); font-size: 13px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; min-width: 0; }
.card .chip { align-self: flex-start; }
/* stav navodu vzdy vpravo dole v kartě */
.card > small:last-child { margin-top: auto; align-self: flex-end; padding-top: 6px; }
a.card:hover, a.card:focus-visible { border-color: var(--accent); outline: none; }
.card time, .card small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); justify-self: start; white-space: nowrap; }
.chip.m { background: var(--blue-soft); color: var(--blue); }
.chip.a { background: var(--ok-soft); color: var(--ok); }
.chip.cs { background: #eceaea; color: var(--muted); }

.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; margin-top: 20px; }
.side { position: sticky; top: 16px; align-self: start; display: grid; gap: 3px; font-size: 15px; }
.side b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.side b ~ b { margin-top: 14px; }
.side a, .side button { display: block; text-align: left; font: inherit; color: var(--fg); background: none; border: 0; border-left: 2px solid var(--line); text-decoration: none; padding: 5px 8px; cursor: pointer; }
.side a:hover, .side button:hover, .side a:focus-visible, .side button:focus-visible { border-left-color: var(--accent); background: var(--accent-soft); outline: none; }
.side button[aria-pressed="true"] { border-left-color: var(--accent); font-weight: 700; }
.year { font-size: 22px; margin: 34px 0 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
[data-group]:first-child > .year { margin-top: 0; }
.list { background: var(--panel); border: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 14px; padding: 11px 16px; border-top: 1px solid var(--line); text-decoration: none; color: var(--fg); align-items: baseline; }
.list a:first-child { border-top: 0; }
.list a:hover, .list a:focus-visible { background: var(--accent-soft); outline: none; }
.list time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.list a[hidden] { display: none; }

/* clanek a navod */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; margin-top: 20px; }
.doc.single { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 16px; align-self: start; font-size: 15px; }
.toc b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 8px; color: var(--fg); text-decoration: none; border-left: 2px solid var(--line); }
.toc a:hover, .toc a:focus-visible { border-left-color: var(--accent); background: var(--accent-soft); outline: none; }
.prose { min-width: 0; display: grid; gap: 30px; background: var(--panel); border: 1px solid var(--line); padding: 24px 28px; }
.prose > section { display: grid; gap: 12px; min-width: 0; }
.prose h2 { margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 23px; }
.prose h3 { font-size: 18px; margin: 8px 0 0; }
.prose p, .prose ul, .prose ol { margin: 0; max-width: 76ch; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 5px; }
.article { background: var(--panel); border: 1px solid var(--line); padding: 24px 28px; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.article h2 { font-size: 21px; margin: 22px 0 8px; }
.article h3 { font-size: 18px; margin: 18px 0 6px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 3px 0; }
.article p { margin: 8px 0; }
.updated { color: var(--muted); font-size: 14px; margin-top: 18px; text-align: right; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* prvky prevzate z navodu */
.btn { display: inline-block; font-weight: 600; white-space: nowrap; padding: 0 7px; border: 1px solid var(--line); background: #f7f6f6; border-radius: 3px; font-size: .93em; }
.note, .warn, .new { padding: 10px 14px; max-width: 76ch; border-left: 4px solid; }
.note { border-color: var(--line); background: #f8f7f7; }
.warn { border-color: var(--warn); background: var(--warn-soft); }
.new { border-color: var(--ok); background: var(--ok-soft); }
.tbl { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; background: var(--panel); }
th, td { text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line); }
.tag { display: inline-block; padding: 0 7px; border-radius: 9px; font-size: 13px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.tag.g { background: var(--ok-soft); color: var(--ok); }
.axis { display: flex; height: 26px; line-height: 26px; font-size: 12px; text-align: center; border: 1px solid var(--line); max-width: 560px; }
.axis span { overflow: hidden; white-space: nowrap; border-right: 1px solid var(--bg); }
.axis .c { background: var(--ok-soft); color: var(--ok); }
.axis .u { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* aplikace */
.rel { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-top: 0; }
.rel:first-of-type { border-top: 1px solid var(--line); }
.rel .v { font-size: 26px; font-weight: 800; line-height: 1; }
.rel h3 { margin: 0 0 8px; }
.rel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rel li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; }
.rel li .chips { display: inline-flex; gap: 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters button { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--panel); color: var(--fg); padding: 4px 12px; border-radius: 14px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--fg); color: #fff; border-color: var(--fg); }
.soon { background: var(--panel); border: 1px dashed #c9c4c5; padding: 18px; color: var(--muted); max-width: 76ch; }

.site-foot { border-top: 1px solid var(--line); background: #fff; padding-inline: 16px; color: var(--muted); font-size: 14px; }
.site-foot .in { max-width: 1160px; margin: 0 auto; padding-block: 18px 28px; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

@media (max-width: 860px) {
  .layout, .doc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .side, .toc { position: static; }
  .toc ol { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .list a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rel { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .rel li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .prose, .article { padding: 18px 16px; }
}
@media print { .site-head, .site-menu, .site-foot, .toc, .side, .search { display: none; } .prose, .article { border: 0; } }

/* video navody (z gScore.eu, videa jen cesky) */
.vtoc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.vtoc a { font-size: 14px; padding: 4px 12px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); text-decoration: none; }
.vtoc a:hover, .vtoc a:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.vcards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.vcard { padding: 0 0 14px; gap: 6px; }
.vcard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); margin-bottom: 6px; }
.vcard h3, .vcard p { margin-left: 14px; margin-right: 14px; }
.vcard h3 { margin-top: 0; margin-bottom: 0; font-size: 16px; }
.vnote { margin: 10px 0 0; padding: 8px 12px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.video { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; margin: 20px 0 6px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vlink { margin: 0 0 22px; font-size: 14px; }
.vprose { max-width: 960px; margin-bottom: 10px; }
