/*
Theme Name: SBF 2026
Theme URI: https://sbf.sk/
Description: Child téma pre sbf.sk — nová štruktúra a vzhľad (Variant A). Rodičovská téma SKT Strong sa nemení, takže jej aktualizácie nič neprepíšu.
Author: SBF
Template: skt-strong
Version: 0.1.0
Requires PHP: 7.4
Text Domain: skt-strong-sbf
*/

/* Prototyp nového sbf.sk — Variant A (tmavá modrá + červená, kondenzované nadpisy).
   Toto je statický prototyp, nie WordPress téma. Farby a typografia sú zdrojom pre child tému. */

:root {
  --navy: #101A29;
  --navy-2: #1A2736;
  --ink: #1B232E;
  --body: #414E5C;
  --soft: #6B7785;
  --line: #DCE2E8;
  --ground: #F3F5F7;
  --white: #FFFFFF;
  --red: #C0261F;
  --red-ink: #97201A;
  --red-wash: #FBEEEC;
  --blue: #1B4F8A;
  --blue-wash: #EAF1F9;
  --green: #1C6B4B;
  --green-wash: #E6F1EC;
  --amber-wash: #FDF3E7;
  --amber-ink: #8A5A00;

  --disp: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --wrap: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }

a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: #123763; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

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

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--ink);
  padding: .6rem 1rem; z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- hlavička ---------- */
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 1.4rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex: none; }
.brand-logo {
  width: auto; height: 56px; flex: none; display: block;
}
.brand .mark {
  width: 48px; height: 48px; background: var(--red); color: #fff; flex: none;
  display: grid; place-items: center;
  font-family: var(--disp); font-weight: 700; font-size: 1.3rem; letter-spacing: .02em;
}
.brand-text b {
  display: block; font-family: var(--disp); font-weight: 700; font-size: 1.3rem;
  text-transform: uppercase; color: var(--navy); line-height: 1.05; letter-spacing: .02em;
}
.brand-text > span { display: block; font-size: .84rem; color: var(--soft); line-height: 1.2; }

.top-tools { display: flex; align-items: center; gap: .8rem; margin-left: auto; }
.searchbox {
  display: flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line); padding: .45rem .6rem; background: var(--white);
}
.searchbox input {
  border: 0; outline: 0; font: inherit; font-size: .94rem; width: 12rem;
  color: var(--ink); background: transparent;
}
.searchbox button {
  border: 0; background: none; font: inherit; font-size: 1rem; color: var(--soft);
  cursor: pointer; padding: 0 .2rem;
}
.top-en {
  font-family: var(--disp); text-transform: uppercase; font-size: .95rem; letter-spacing: .08em;
  color: var(--ink); text-decoration: none; border: 1px solid var(--line); padding: .45rem .6rem;
}
.top-en:hover { border-color: var(--navy); color: var(--navy); }

.btn {
  display: inline-block; font-family: var(--disp); text-transform: uppercase; font-weight: 600;
  font-size: 1.02rem; letter-spacing: .05em; padding: .62rem 1.05rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-ink); color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: #47566B; color: #E7ECF2; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- lista s hlavnym menu ---------- */
.navbar {
  background: var(--navy);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
}
.nav > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: nowrap; align-items: stretch;
}
.nav li { position: relative; }
.nav > ul > li > a {
  display: flex; align-items: center; gap: .3rem;
  padding: .85rem .8rem;
  font-family: var(--disp); text-transform: uppercase; font-size: 1.06rem; font-weight: 500;
  letter-spacing: .04em; color: #DCE4EE; text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav > ul > li > a:hover { background: var(--navy-2); color: #fff; }
.nav > ul > li:focus-within > a { background: var(--navy-2); color: #fff; }
.nav > ul > li.current-menu-item > a,
.nav > ul > li.current-menu-ancestor > a,
.nav > ul > li.current_page_item > a,
.nav > ul > li.current_page_ancestor > a { color: #fff; border-bottom-color: var(--red); }
.nav > ul > li.menu-item-has-children > a::after { content: "\25BE"; font-size: .7em; opacity: .7; }

/* rozbalovaci panel: jeden blok so zoznamom, bez vyskakovania do strán */
.nav .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 70;
  list-style: none; margin: 0; padding: .4rem 0;
  min-width: 20rem; max-width: 27rem;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red);
  box-shadow: 0 14px 30px rgba(16, 26, 41, .18);
}
.nav > ul > li:hover > .sub-menu { display: block; }
.nav > ul > li:focus-within > .sub-menu { display: block; }
.nav > ul > li:last-child > .sub-menu { left: auto; right: 0; }
.nav .sub-menu a {
  display: block; padding: .5rem 1rem;
  font-family: var(--text); text-transform: none; font-size: 1rem; line-height: 1.3;
  color: var(--ink); text-decoration: none;
}
.nav .sub-menu a:hover { background: var(--ground); color: var(--red-ink); }
.nav .sub-menu > li + li > a { border-top: 1px solid var(--line); }

/* tretia uroven je vnoreny zoznam v tom istom paneli */
.nav .sub-menu .sub-menu {
  display: block; position: static; min-width: 0; max-width: none;
  border: 0; border-top: 1px solid var(--line); box-shadow: none;
  padding: .2rem 0 .3rem; background: var(--ground);
}
.nav .sub-menu .sub-menu a {
  padding: .36rem 1rem .36rem 1.7rem; font-size: .94rem; color: var(--body); border-top: 0;
}
.nav .sub-menu .sub-menu a::before { content: "\2013  "; color: var(--soft); }

.burger { display: none; }
.sbf-toggle { display: none; }   /* prepínač úrovne je len na mobile */
.burger-lines { position: relative; display: block; width: 18px; height: 2px; background: currentColor; }
.burger-lines::before, .burger-lines::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.burger-lines::before { top: -6px; }
.burger-lines::after { top: 6px; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: #E7ECF2; padding-block: 2.2rem; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.2rem; align-items: start; }
.eyebrow { font-family: var(--disp); text-transform: uppercase; letter-spacing: .16em; font-size: .86rem; color: #9DB0C6; }
.hero h1 {
  font-family: var(--disp); font-weight: 700; text-transform: uppercase; color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.02; margin: .4rem 0 .7rem; text-wrap: balance;
}
.hero .facts { display: flex; flex-direction: column; gap: .25rem; color: #C3CEDC; }
.hero .facts b { color: #fff; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }

.status { background: var(--navy-2); border-left: 4px solid var(--red); padding: 1rem 1.15rem; }
.status .row { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem 0; border-bottom: 1px solid #263449; color: #B9C6D6; }
.status .row:last-child { border-bottom: 0; }
.status .row b { color: #fff; font-family: var(--mono); font-size: .92rem; }
.pill {
  font-family: var(--disp); text-transform: uppercase; font-size: .82rem; letter-spacing: .08em;
  background: #3A2A18; color: #E8B65C; padding: .1rem .5rem;
}
.pill-open { background: #14301F; color: #7FD3A3; }

/* ---------- sekcie ---------- */
main { padding-block: 2.2rem 3rem; display: flex; flex-direction: column; gap: 2.6rem; }
.sec > h2 {
  display: flex; align-items: baseline; gap: .8rem; margin: 0 0 .2rem;
  font-family: var(--disp); text-transform: uppercase; font-weight: 600; letter-spacing: .03em;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--navy);
}
.sec > h2::before { content: ""; width: 2rem; height: 4px; background: var(--red); flex: none; }
.sec > h2 .more { margin-left: auto; font-family: var(--text); text-transform: none; font-size: .92rem; font-weight: 600; letter-spacing: 0; }
.sec .lead { margin: .1rem 0 1.1rem 2.8rem; color: var(--soft); }
h1.page-title {
  font-family: var(--disp); text-transform: uppercase; font-weight: 700; color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.06; margin: 0 0 .3rem;
}
.crumb { padding-block: .7rem; font-size: .88rem; color: var(--soft); background: var(--white); border-bottom: 1px solid var(--line); }
.crumb a { color: var(--soft); }

/* karty aktualít */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .thumb { aspect-ratio: 16 / 9; background: #C9D3DD; position: relative; }
.card .thumb span {
  position: absolute; left: .6rem; bottom: .6rem; font-family: var(--disp); text-transform: uppercase;
  font-size: .76rem; letter-spacing: .09em; background: var(--red); color: #fff; padding: .14rem .5rem;
}
.card .rubrika {
  margin: 0; padding: .55rem 1rem .1rem;
  font-family: var(--disp); text-transform: uppercase; font-size: .84rem; letter-spacing: .1em;
  color: var(--red-ink); border-top: 4px solid var(--red);
}
.card .in { padding: .4rem 1rem 1rem; }
.card .thumb + .in { padding-top: .85rem; }
.card time { font-family: var(--mono); font-size: .8rem; color: var(--soft); }
.card h3 { font-family: var(--disp); font-weight: 600; font-size: 1.24rem; line-height: 1.16; margin: .3rem 0 .4rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--red-ink); }
.card p { margin: 0; font-size: .95rem; }

/* zoznam aktualít po rokoch */
.year { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0 .2rem; }
.year b { font-family: var(--mono); font-size: .86rem; letter-spacing: .08em; color: var(--ink); }
.year i { flex-grow: 1; height: 1px; background: var(--line); }
.year em { font-family: var(--mono); font-style: normal; font-size: .8rem; color: var(--soft); }
.postlist { display: flex; flex-direction: column; }
.postlist article { display: grid; grid-template-columns: 7rem 1fr; gap: 1.2rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.postlist time { font-family: var(--mono); font-size: .9rem; color: var(--soft); font-variant-numeric: tabular-nums; }
.postlist h3 { margin: 0 0 .15rem; font-family: var(--disp); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.postlist h3 a { color: var(--ink); text-decoration: none; }
.postlist h3 a:hover { color: var(--red-ink); }
.postlist p { margin: 0; font-size: .95rem; color: var(--body); }

/* rozcestníky */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem; }
.tile { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: .85rem .95rem 1rem; text-decoration: none; display: block; }
.tile:hover { border-top-color: var(--red); }
.tile b { display: block; font-family: var(--disp); text-transform: uppercase; font-size: 1.08rem; color: var(--navy); line-height: 1.12; }
.tile span { font-size: .88rem; color: var(--soft); }

/* dokumenty */
.doc-layout { display: grid; grid-template-columns: 16rem 1fr; gap: 1.8rem; align-items: start; }
.filters { background: var(--white); border: 1px solid var(--line); padding: 1rem 1.1rem; }
.filters h3 { font-family: var(--disp); text-transform: uppercase; font-size: .9rem; letter-spacing: .09em; color: var(--soft); margin: 0 0 .4rem; }
.filters ul { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.filters li { display: flex; justify-content: space-between; gap: .6rem; padding: .18rem 0; font-size: .95rem; }
.filters li b { font-family: var(--mono); font-size: .82rem; color: var(--soft); font-weight: 400; }
.filters a { text-decoration: none; color: var(--ink); }
.filters a:hover { color: var(--red-ink); }
.filters li.on a { color: var(--red-ink); font-weight: 600; }

.bigsearch { display: flex; gap: .6rem; background: var(--white); border: 2px solid var(--navy); padding: .7rem .8rem; }
.bigsearch input { border: 0; outline: 0; font: inherit; width: 100%; color: var(--ink); background: transparent; }

.doclist { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.docrow { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: .9rem; align-items: center; background: var(--white); border: 1px solid var(--line); padding: .7rem .85rem; text-decoration: none; }
.docrow:hover { border-color: var(--navy); }
.docrow .kind { font-family: var(--disp); font-size: .8rem; letter-spacing: .06em; text-align: center; padding: .3rem 0; background: var(--red-wash); color: var(--red-ink); }
.docrow .kind.xlsx { background: var(--green-wash); color: var(--green); }
.docrow .kind.docx { background: var(--blue-wash); color: var(--blue); }
.docrow b { display: block; font-size: 1rem; color: var(--ink); font-weight: 600; }
.docrow span { font-family: var(--mono); font-size: .8rem; color: var(--soft); }

/* tabuľky */
.tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--disp); text-transform: uppercase; font-size: .84rem; letter-spacing: .08em; color: var(--soft); background: var(--ground); }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* kluby */
.clubgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .7rem; }
.club { background: var(--white); border: 1px solid var(--line); padding: .7rem .85rem; }
.club b { display: block; font-family: var(--disp); text-transform: uppercase; font-size: 1.04rem; color: var(--navy); letter-spacing: .02em; line-height: 1.15; }
.club span { font-size: .86rem; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chip { font-size: .9rem; border: 1px solid var(--line); background: var(--white); padding: .3rem .7rem; text-decoration: none; color: var(--body); cursor: pointer; }
.chip:hover { border-color: var(--navy); color: var(--ink); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* prázdne stavy a poznámky */
.empty { background: var(--amber-wash); border-left: 4px solid var(--amber-ink); padding: .8rem 1rem; color: var(--amber-ink); font-size: .95rem; }
.note-proto { background: #FFF8DC; border: 1px solid #E3D08A; color: #6B5312; padding: .7rem 1rem; font-size: .9rem; }
.muted { color: var(--soft); }
.mono { font-family: var(--mono); }

/* článok */
.article { background: var(--white); border: 1px solid var(--line); padding: 1.6rem 1.8rem 2rem; max-width: 52rem; }
.article h1 { font-family: var(--disp); text-transform: none; font-weight: 700; color: var(--navy); font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.12; margin: 0 0 .4rem; }
.article .meta { font-family: var(--mono); font-size: .86rem; color: var(--soft); margin-bottom: 1.2rem; }
.article p { max-width: 62ch; }

/* pätička */
.foot { background: var(--navy); color: #AFBCCB; padding-block: 2rem; margin-top: auto; }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.foot h3 { font-family: var(--disp); text-transform: uppercase; font-size: .95rem; letter-spacing: .1em; color: #fff; margin: 0 0 .5rem; }
.foot p { margin: .2rem 0; font-size: .94rem; }
.foot a { color: #CFDAE7; }
.partners { display: flex; flex-wrap: wrap; gap: .45rem; }
.partners span { font-size: .8rem; border: 1px solid #38465A; padding: .25rem .5rem; color: #8FA0B3; }
.foot-bottom { border-top: 1px solid #263449; margin-top: 1.4rem; padding-top: .9rem; font-size: .86rem; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

/* ---------- mobil ---------- */
@media (max-width: 1080px) {
  .top-in { flex-wrap: wrap; row-gap: .7rem; }
  .top-tools { order: 3; width: 100%; }
  .searchbox { flex-grow: 1; }
  .searchbox input { width: 100%; }
  .burger {
    display: inline-flex; align-items: center; gap: .6rem; margin-left: auto;
    font-family: var(--disp); text-transform: uppercase; font-size: 1.05rem; letter-spacing: .06em;
    border: 1px solid var(--line); background: var(--white); color: var(--ink);
    padding: .55rem .85rem; cursor: pointer;
  }
  .navbar { position: static; }
  .nav { display: none; }
  .nav.open { display: block; padding-block: .3rem .8rem; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav > ul > li > a { padding: .85rem 3rem .85rem .2rem; font-size: 1.15rem; border-bottom: 0; }
  .nav > ul > li.menu-item-has-children > a::after { content: ""; }
  .nav .sub-menu {
    display: none; position: static; min-width: 0; max-width: none;
    border: 0; box-shadow: none; background: transparent; padding: 0 0 .5rem;
  }
  .nav li.sbf-open > .sub-menu { display: block; }
  .nav .sub-menu a { color: #C6D2E0; padding: .5rem .2rem .5rem 1rem; border-top: 0; }
  .nav .sub-menu a:hover { background: transparent; color: #fff; }
  .nav .sub-menu > li + li > a { border-top: 1px dotted rgba(255, 255, 255, .14); }
  .nav .sub-menu .sub-menu { background: transparent; border: 0; padding-left: .8rem; }
  .nav .sub-menu .sub-menu a { color: #A9B7C7; }
  .nav .sbf-toggle {
    display: grid;
    position: absolute; right: 0; top: .3rem;
    width: 2.7rem; height: 2.7rem; display: grid; place-items: center;
    background: transparent; border: 1px solid rgba(255, 255, 255, .18); color: #DCE4EE;
    font-family: var(--disp); font-size: 1.25rem; line-height: 1; cursor: pointer;
  }
  .nav li.sbf-open > .sbf-toggle { background: var(--red); border-color: var(--red); color: #fff; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* úzky mobil: lupa + siete + EN v jednom rade, registrácia pod nimi na celú šírku (inak pretečie displej) */
@media (max-width: 560px) {
  .top-tools { flex-wrap: wrap; gap: .6rem; }
  .searchbox { flex: 1 1 8rem; min-width: 0; }
  .top-tools .btn { flex: 1 0 100%; justify-content: center; text-align: center; }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .postlist article { grid-template-columns: 1fr; gap: .2rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .article { padding: 1.1rem 1.1rem 1.4rem; }
}

/* ================= WordPress-špecifické ================= */

.entry-content { max-width: 60rem; overflow-wrap: break-word; }  /* dlhé adresy a slová sa zalomia, stránka nepretečie */
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--disp); text-transform: uppercase; color: var(--navy);
  letter-spacing: .02em; line-height: 1.15; margin: 2rem 0 .6rem;
}
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.12rem; }
.entry-content p, .entry-content li { max-width: 62ch; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content table { background: var(--white); }
.entry-content img { border: 1px solid var(--line); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* odkazy na súbory v obsahu stránok (dokumenty) */
.entry-content .wp-block-file,
.entry-content p > a[href$=".pdf"],
.entry-content li > a[href$=".pdf"],
.entry-content p > a[href$=".xlsx"],
.entry-content li > a[href$=".xlsx"],
.entry-content p > a[href$=".doc"],
.entry-content li > a[href$=".docx"] {
  font-weight: 600;
}
.entry-content .wp-block-file {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  background: var(--white); border: 1px solid var(--line); padding: .6rem .8rem; margin-block: .4rem;
}
.entry-content .wp-block-file a { text-decoration: none; }
.entry-content .wp-block-file a:hover { text-decoration: underline; }
.entry-content .wp-block-file__button { display: none; }
.entry-content .wp-block-file::before {
  content: "PDF"; font-family: var(--disp); font-size: .8rem; letter-spacing: .06em;
  background: var(--red-wash); color: var(--red-ink); padding: .2rem .5rem; flex: none;
}

/* stránkovanie */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.6rem; }
.pagination .page-numbers, .nav-links .page-numbers {
  font-family: var(--disp); font-size: 1.05rem; padding: .35rem .75rem;
  background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.pagination .current, .nav-links .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* výsledky hľadania */
.hit { background: var(--white); border: 1px solid var(--line); padding: .9rem 1rem; }
.hit h2 { font-family: var(--disp); font-size: 1.24rem; margin: 0 0 .2rem; }
.hit h2 a { color: var(--ink); text-decoration: none; }
.hit .meta { font-family: var(--mono); font-size: .8rem; color: var(--soft); }

/* admin bar nech nelepí hlavičku */
body.admin-bar .top { top: 32px; }


/* ---------- ikony ---------- */
.ico { flex: none; vertical-align: -.18em; }
.sec > h2 .more .ico, .more .ico { vertical-align: -.2em; margin-left: .25rem; }
.searchbox button { display: grid; place-items: center; color: var(--soft); }
.searchbox button:hover { color: var(--red-ink); }

/* ---------- značkové ikony sociálnych sietí ---------- */
.socials { display: flex; align-items: center; gap: .4rem; }
.soc {
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; text-decoration: none; flex: none;
  transition: transform .12s ease, filter .12s ease;
}
.soc:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }
.soc-facebook { background: #1877F2; }
.soc-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.soc-tiktok { background: #010101; }
.soc-youtube { background: #FF0000; }
.soc-x { background: #000; }
.soc-whatsapp { background: #25D366; }
.socials-top .soc { width: 2.1rem; height: 2.1rem; }
.foot-social {
  display: flex; align-items: center; gap: .8rem;
  border-top: 1px solid #263449; margin-top: 1.4rem; padding-top: 1.1rem;
}
.foot-social > span {
  font-family: var(--disp); text-transform: uppercase; letter-spacing: .1em;
  font-size: .9rem; color: #fff;
}

/* ---------- zdieľanie článku ---------- */
.share {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.share-label {
  font-family: var(--disp); text-transform: uppercase; letter-spacing: .1em;
  font-size: .9rem; color: var(--soft); margin-right: .2rem;
}
.share-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem; border: 1px solid var(--line); background: var(--white);
  font: inherit; font-size: .95rem; color: var(--ink); text-decoration: none; cursor: pointer;
  border-radius: 999px;
}
.share-btn:hover { border-color: var(--navy); color: var(--ink); }
/* značkové tlačidlá musia prebiť biele pozadie .share-btn, inak sú biele na bielom */
.share .share-btn.soc-facebook { background: #1877F2; color: #fff; border-color: transparent; }
.share .share-btn.soc-x { background: #000; color: #fff; border-color: transparent; }
.share .share-btn.soc-whatsapp { background: #25D366; color: #fff; border-color: transparent; }
.share .share-btn.soc-facebook:hover,
.share .share-btn.soc-x:hover,
.share .share-btn.soc-whatsapp:hover { color: #fff; filter: brightness(1.12); }
.share-btn.share-mail:hover { border-color: var(--blue); color: var(--blue); }
.share-btn.share-copy.done { border-color: var(--green); color: var(--green); }

/* ---------- partneri a povinné zverejnenie ---------- */
.partners-strip { background: var(--white); border-top: 1px solid var(--line); padding-block: 2rem; }
.partners-strip h2 {
  font-family: var(--disp); text-transform: uppercase; font-weight: 600; letter-spacing: .06em;
  font-size: 1.1rem; color: var(--soft); margin: 0 0 1.2rem;
  display: flex; align-items: center; gap: .8rem;
}
.partners-strip h2::after { content: ""; flex-grow: 1; height: 1px; background: var(--line); }
.partner-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1.6rem 2.4rem;
}
.partner { margin: 0; text-align: center; max-width: 100%; }
.partner img { max-height: 120px; width: auto; max-width: 100%; height: auto; }
.partner figcaption { font-size: .8rem; color: var(--soft); margin-top: .35rem; }
.partner-note {
  margin-top: 1.4rem; padding-top: 1rem; border-top: 1px dashed var(--line);
  font-size: .95rem; color: var(--body); max-width: 70ch; margin-inline: auto; text-align: center;
}
.partner-note p { margin: .2rem 0; max-width: none; }

/* ---------- jemné doladenie ---------- */
.card { transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.card:hover {
  border-color: var(--navy);
  box-shadow: 0 10px 24px rgba(16, 26, 41, .1);
  transform: translateY(-2px);
}
.tile { transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.tile:hover { box-shadow: 0 8px 18px rgba(16, 26, 41, .08); transform: translateY(-2px); }
.docrow { transition: border-color .12s ease, background .12s ease; }
.docrow:hover { background: var(--blue-wash); }
.hero { background-image: linear-gradient(180deg, #12203300 0%, #0B121D 100%); }
.status { border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  .card, .tile, .soc, .docrow { transition: none; }
  .card:hover, .tile:hover, .soc:hover { transform: none; }
}


/* ---------- blok o federácii na titulke ---------- */
.sec-about { background: var(--white); border: 1px solid var(--line); padding: 1.6rem 1.8rem 1.8rem; }
.sec-about > h2 { margin-bottom: 1rem; }
.about-grid { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1.8rem; align-items: start; }
.about-crest img {
  width: 100%; height: auto; max-width: 150px; border: 0; margin: 0; display: block;
}
.about-text { font-size: 1rem; }
.about-text p { margin: 0 0 .8rem; max-width: 70ch; color: var(--body); }
.about-text p:last-child { margin-bottom: 0; }

/* obsah stránok: nadpisy v obsahu nesmú prerastať nadpisy šablóny */
.entry-content h1 {
  font-family: var(--disp); text-transform: uppercase; font-weight: 600; letter-spacing: .02em;
  color: var(--navy); font-size: 1.5rem; line-height: 1.2; margin: 1.8rem 0 .6rem;
}
.entry-content img.alignleft {
  float: left; margin: .2rem 1.2rem .8rem 0; max-width: 150px; height: auto; border: 0;
}
.entry-content img.alignright { float: right; margin: .2rem 0 .8rem 1.2rem; max-width: 150px; height: auto; border: 0; }
.entry-content img.aligncenter { display: block; margin: .8rem auto; border: 0; }

@media (max-width: 760px) {
  .sec-about { padding: 1.1rem 1.1rem 1.3rem; }
  .about-grid { grid-template-columns: 1fr; gap: 1rem; }
  .about-crest img { max-width: 110px; }
  .entry-content img.alignleft, .entry-content img.alignright { float: none; margin: .6rem 0; max-width: 120px; }
}


/* kompaktné zdieľanie hore pri článku — len ikony */
/* hlavička článku: dátum a rubrika vľavo, zdieľanie vpravo, čiara oddeľuje od obsahu (a od prvého obrázka) */
.article-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem;
  margin: 0 0 1.5rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line);
}
.article .article-head .meta { margin: 0; }
.share-compact { margin: 0; padding-top: 0; border-top: 0; gap: .35rem; }
.share-compact .share-label { font-size: .82rem; }
.share-compact .share-btn { padding: .4rem; border-radius: 50%; width: 2.2rem; height: 2.2rem; justify-content: center; }
.share-compact .share-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }


/* =========================================================
   FORMULÁRE — jeden vzhľad pre registráciu na turnaj (bootstrap-lite
   v našom plugine), Formidable aj bežné WP formuláre.
   ========================================================= */

.entry-content form:not(.cmreg):not(.frm-show-form),
.frm_forms {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem 1.5rem 1.6rem;
  margin-block: 1.2rem;
  max-width: 64rem;
}
.entry-content form:not(.cmreg):not(.frm-show-form) form,
.frm_forms .frm_forms { border: 0; padding: 0; margin: 0; }

/* polia */
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="url"],
.entry-content input[type="number"],
.entry-content input[type="date"],
.entry-content input[type="password"],
.entry-content input[type="search"],
.entry-content select,
.entry-content textarea,
.frm_forms input[type="text"],
.frm_forms input[type="email"],
.frm_forms input[type="tel"],
.frm_forms input[type="url"],
.frm_forms input[type="number"],
.frm_forms input[type="date"],
.frm_forms select,
.frm_forms textarea,
.form-control, .custom-select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #C3CCD6;
  border-radius: 2px;
  padding: .55rem .7rem;
  width: 100%;
  max-width: 100%;
  /* box-shadow tu zámerne nenulujeme — Formidable ho používa na rozpoznanie automatického vyplnenia lapača botov */
  height: auto;
  line-height: 1.35;
}
.entry-content textarea, .frm_forms textarea { min-height: 7rem; }

/* vlastná šípka pri roletkách, aby nesplývala s textom */
.entry-content select,
.frm_forms select,
.custom-select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%),
                    linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 55%, calc(100% - .7rem) 55%;
  background-size: .35rem .35rem, .35rem .35rem;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.entry-content input:focus, .entry-content select:focus, .entry-content textarea:focus,
.frm_forms input:focus, .frm_forms select:focus, .frm_forms textarea:focus,
.form-control:focus, .custom-select:focus {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--navy);
}

/* menovky a skupiny */
.entry-content label, .frm_forms label, .frm_primary_label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: .25rem;
}
.form-group, .frm_form_field { margin-bottom: 1rem; }
.form-row, .frm_grid_container { display: grid; gap: .8rem 1rem; }
.entry-content .form-row > [class*="col"] { min-width: 0; }
.frm_required { color: var(--red-ink); }
.entry-content small, .frm_description { color: var(--soft); font-size: .88rem; }

/* zaškrtávacie polia nech nie sú na celú šírku */
.entry-content input[type="checkbox"],
.entry-content input[type="radio"],
.frm_forms input[type="checkbox"],
.frm_forms input[type="radio"] {
  width: auto; margin-right: .4rem; accent-color: var(--red);
}
.entry-content .form-check, .frm_checkbox, .frm_radio { display: flex; align-items: baseline; gap: .1rem; }
.entry-content .form-check label, .frm_checkbox label, .frm_radio label { font-weight: 400; }

/* tlačidlá vo formulároch */
.entry-content button,
.entry-content input[type="submit"],
.entry-content .btn,
.frm_forms .frm_button_submit,
.frm_forms input[type="submit"],
.frm_forms button[type="submit"] {
  font-family: var(--disp);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .05em;
  font-size: 1.02rem;
  padding: .62rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  width: auto;
}
.entry-content button:hover,
.entry-content input[type="submit"]:hover,
.frm_forms .frm_button_submit:hover,
.frm_forms input[type="submit"]:hover {
  background: var(--red-ink);
  color: #fff;
}
/* druhotné tlačidlá (pridať riadok, zmazať) */
.entry-content .btn-secondary,
.entry-content .btn-light,
.entry-content .btn-outline-secondary,
.entry-content button.btn-link {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.entry-content .btn-secondary:hover,
.entry-content .btn-light:hover,
.entry-content .btn-outline-secondary:hover { background: var(--navy); color: #fff; }
.entry-content .btn-danger { background: var(--red-ink); color: #fff; }
.entry-content .btn-success { background: var(--green); color: #fff; }

/* hlásenia */
.entry-content .alert, .frm_message, .frm_error_style, .frm_success_style {
  border: 0; border-left: 4px solid var(--blue);
  background: var(--blue-wash); color: var(--ink);
  padding: .8rem 1rem; margin-block: 1rem; border-radius: 0;
}
.entry-content .alert-success, .frm_success_style { border-left-color: var(--green); background: var(--green-wash); color: var(--green); }
.entry-content .alert-danger, .frm_error_style, .frm_blank_field { border-left-color: var(--red); background: var(--red-wash); color: var(--red-ink); }
.entry-content .alert-warning { border-left-color: var(--amber-ink); background: var(--amber-wash); color: var(--amber-ink); }
.frm_error { color: var(--red-ink); font-size: .9rem; margin-top: .2rem; }

/* tabuľka prihlásených boxerov v registrácii */
.entry-content table.table { background: var(--white); border-collapse: collapse; width: 100%; }
.entry-content table.table th {
  font-family: var(--disp); text-transform: uppercase; font-size: .84rem; letter-spacing: .08em;
  color: var(--soft); background: var(--ground); border-bottom: 1px solid var(--line); padding: .55rem .7rem;
  text-align: left;
}
.entry-content table.table td { border-bottom: 1px solid var(--line); padding: .5rem .7rem; vertical-align: middle; }
.entry-content table.table-striped tbody tr:nth-child(odd) { background: #FAFBFC; }

/* riadok boxera: mriežka namiesto bootstrapových stĺpcov */
.entry-content .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem 1rem; }
.entry-content .row > * { min-width: 0; }
.entry-content .input-group { display: flex; gap: .4rem; align-items: stretch; }
.entry-content .input-group > .form-control { flex-grow: 1; }
.entry-content .input-group-append .btn { white-space: nowrap; }
.entry-content .hidden { display: none; }

/* skupina polí jedného boxera dostane jemný rám, aby bolo vidno, kde končí */
.entry-content form > .row + .row { border-top: 1px dashed var(--line); padding-top: .9rem; margin-top: .9rem; }

@media (max-width: 760px) {
  .entry-content form:not(.cmreg):not(.frm-show-form), .frm_forms { padding: 1rem 1rem 1.2rem; }
  .entry-content .row { grid-template-columns: 1fr; }
}


/* =========================================================
   REGISTRÁCIA NA TURNAJ — vzhľad formulára dodáva plugin
   (coolmedia-register 1.3, css/register.css); téma mu dá svoje farby a písmo
   a upraví hlavičku turnaja, ktorá je v obsahu stránky.
   ========================================================= */

.entry-content .cmreg,
.entry-content .cmreg-closed,
.entry-content .cmreg-admin-note {
  --cmreg-accent: var(--red);
  --cmreg-accent-ink: var(--red-ink);
  --cmreg-ink: var(--ink);
  --cmreg-body: var(--body);
  --cmreg-soft: var(--soft);
  --cmreg-line: var(--line);
  --cmreg-ground: var(--ground);
  --cmreg-focus: var(--blue);
  --cmreg-ok: var(--green);
  --cmreg-ok-wash: var(--green-wash);
  --cmreg-disp: var(--disp);
}

/* stránka s formulárom ide na celú šírku, nie do stĺpca pre text */
.entry-content:has(.cmreg, .cmreg-closed) { max-width: none; }
/* staršia verzia registračného pluginu (produkcia 1.2.1) nemá triedu .cmreg — poznáme ju podľa formulára #register */
.entry-content:has(> form#register) { max-width: none; }
.entry-content > form#register { max-width: none; }

/* hlavička turnaja: menší nadpis = názov súťaže, väčší = dátum a miesto */
.entry-content:has(.cmreg, .cmreg-closed) > h3.wp-block-heading:first-of-type {
  margin: .3rem 0 .1rem;
  font-size: 1rem;
  letter-spacing: .12em;
  color: var(--red);
}
.entry-content:has(.cmreg, .cmreg-closed) > h2.wp-block-heading:first-of-type {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.05;
  color: var(--navy);
}

/* odkaz na druhú jazykovú verziu ako malý prepínač vpravo */
.entry-content:has(.cmreg, .cmreg-closed) > p:first-child:has(> a[href*="registration"], > a[href*="registracia"]) {
  float: right;
  margin: .2rem 0 .6rem 1rem;
}
.entry-content:has(.cmreg, .cmreg-closed) > p:first-child > a[href*="registration"],
.entry-content:has(.cmreg, .cmreg-closed) > p:first-child > a[href*="registracia"] {
  display: inline-block;
  padding: .3rem .75rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-family: var(--disp);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .9rem;
  text-decoration: none;
}
@media (max-width: 560px) {
  .entry-content:has(.cmreg, .cmreg-closed) > p:first-child:has(> a[href*="registration"], > a[href*="registracia"]) {
    float: none;
    margin: 0 0 .8rem;
  }
}
.entry-content:has(.cmreg, .cmreg-closed) > p:first-child > a[href*="registration"]:hover,
.entry-content:has(.cmreg, .cmreg-closed) > p:first-child > a[href*="registracia"]:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}


/* dlaždice podstránok s ikonou (inc/org.php → sbf_subpage_tiles) */
.tiles-ico { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-top: 1.4rem; }
.tile-ico { display: flex; align-items: flex-start; gap: .85rem; }
.tile .tile-badge {
  flex: none; display: grid; place-items: center;
  width: 2.7rem; height: 2.7rem; border-radius: 50%;
  background: var(--blue-wash); color: var(--blue);
  transition: background-color .12s ease, color .12s ease;
}
.tile-ico:hover .tile-badge { background: var(--red); color: #fff; }
.tile .tile-txt { display: grid; gap: .3rem; padding-top: .15rem; color: inherit; font-size: inherit; }
.tile .tile-txt > span { font-size: .9rem; color: var(--soft); line-height: 1.35; }


/* =========================================================
   FORMIDABLE (Ohlásenie účasti, Nahlásenie výsledkov, Registrácia člena)
   Rovnaký vzhľad ako registrácia na turnaj. Formidable štýluje cez premenné,
   tie prepíšeme farbami a písmom témy („body" = silnejšie ako štýl pluginu).
   ========================================================= */

body .frm_style_formidable-style.with_frm_style,
body .with_frm_style {
  --font: var(--text);
  --font-size: 1rem;
  --base-font-size: 1rem;
  --label-color: var(--ink);
  --weight: 600;
  --required-color: var(--red-ink);
  --label-padding: 0 0 .3rem 0;
  --description-font-size: .88rem;
  --description-color: var(--soft);
  --field-font-size: 1rem;
  --field-height: 2.75rem;
  --line-height: 1.3;
  --field-pad: 0 .75rem;
  --field-margin: 0;
  --text-color: var(--ink);
  --border-color: #C3CCD6;
  --bg-color: #fff;
  --bg-color-active: #fff;
  --border-color-active: var(--blue);
  --border-radius: 2px;
  --border-color-error: var(--red);
  --text-color-error: var(--ink);
  --bg-color-disabled: var(--ground);
  --check-font-size: 1rem;
  --check-label-color: var(--ink);
  --section-font-size: 1.25rem;
  --section-color: var(--ink);
  --section-weight: 700;
  --section-pad: 1.3rem 0 .2rem 0;
  --section-mar-top: 1.4rem;
  --section-mar-bottom: .9rem;
  --section-border-color: var(--line);
  --section-border-width: 1px;
  --repeat-icon-color: currentColor;
  --submit-font-size: 1.05rem;
  --submit-bg-color: var(--red);
  --submit-border-color: var(--red);
  --submit-text-color: #fff;
  --submit-weight: 700;
  --submit-border-radius: 0;
  --submit-padding: .7rem 1.5rem;
  --submit-margin: 0;
  --submit-shadow-color: transparent;
  --submit-hover-bg-color: var(--red-ink);
  --submit-hover-color: #fff;
  --submit-hover-border-color: var(--red-ink);
  --submit-active-bg-color: var(--red-ink);
  --submit-active-color: #fff;
  --submit-active-border-color: var(--red-ink);
  --error-bg: var(--red-wash);
  --error-border: transparent;
  --error-text: var(--red-ink);
  --error-font-size: .95rem;
  --success-bg-color: var(--green-wash);
  --success-border-color: transparent;
  --success-text-color: var(--green);
  --success-font-size: 1rem;
  --progress-active-bg-color: var(--red);
  --toggle-on-color: var(--red);
  --slider-color: var(--red);
  --slider-bar-color: var(--red);
  --date-head-bg-color: var(--navy);
  --date-head-color: #fff;
  --date-band-color: var(--red);
}

/* karta ako pri registrácii na turnaj */
.entry-content .frm_forms.with_frm_style {
  border-top: 4px solid var(--red);
  padding: 1.5rem 1.6rem 1.6rem;
  max-width: none;
}
.entry-content .with_frm_style fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.entry-content .with_frm_style .frm_form_field { margin-bottom: 0; }
.entry-content .with_frm_style .frm_fields_container { row-gap: 1.1rem; column-gap: 1.1rem; }

/* menovky: prvé písmeno veľké (v nastavení formulára sú malými), jednotná veľkosť */
.entry-content .with_frm_style .frm_primary_label {
  font-size: .92rem; font-weight: 600; line-height: 1.3; color: var(--ink);
}
.entry-content .with_frm_style .frm_primary_label::first-letter { text-transform: uppercase; }

/* polia: rovnaká výška ako v registrácii */
.entry-content .with_frm_style input[type="text"],
.entry-content .with_frm_style input[type="email"],
.entry-content .with_frm_style input[type="tel"],
.entry-content .with_frm_style input[type="url"],
.entry-content .with_frm_style input[type="number"],
.entry-content .with_frm_style input[type="password"],
.entry-content .with_frm_style select {
  height: 2.75rem; padding: 0 .75rem; line-height: 1.2;
  border: 1px solid #C3CCD6; border-radius: 2px;
  font: inherit; font-size: 1rem; color: var(--ink); background-color: #fff;
}
/* POZOR: box-shadow polí nemeníme. Formidable pri automatickom vyplnení dáva poľu vnútorný tieň
   a podľa neho spozná, že lapač botov vyplnil prehliadač, nie bot (formidable.js onHoneypotFieldChange).
   Lapač botov (skryté pole) skrýva Formidable sám, nesiahame naň. */
.entry-content .with_frm_style select { padding-right: 2rem; }
.entry-content .with_frm_style textarea { padding: .6rem .75rem; line-height: 1.45; }
.entry-content .with_frm_style input:focus,
.entry-content .with_frm_style select:focus,
.entry-content .with_frm_style textarea:focus {
  outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); box-shadow: none;
}

/* nadpisy sekcií ako v registrácii */
.entry-content .with_frm_style .frm_section_heading h3,
.entry-content .with_frm_style .frm-show-form .frm_section_heading h3[class*="frm_pos_"] {
  font-family: var(--disp); text-transform: uppercase; letter-spacing: .04em;
  font-size: 1.25rem; font-weight: 700; color: var(--ink);
}
/* HTML bloky vo formulári (napr. „Adresa pre doručenie…") ako medzinadpis */
.entry-content .with_frm_style .frm_html_container {
  padding-top: 1rem; border-top: 1px solid var(--line);
  color: var(--body); font-size: .95rem;
}
.entry-content .with_frm_style .frm_html_container strong,
.entry-content .with_frm_style .frm_html_container b {
  font-family: var(--disp); text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; color: var(--ink);
}

/* prepínače a zaškrtávanie ako klikateľné štítky */
.entry-content .with_frm_style .frm_opt_container { display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-content .with_frm_style .frm_radio,
.entry-content .with_frm_style .frm_checkbox { display: block; margin: 0; }
.entry-content .with_frm_style .frm_radio label,
.entry-content .with_frm_style .frm_checkbox label {
  display: flex; align-items: center; gap: .55rem;
  min-height: 2.75rem; padding: .55rem .85rem; margin: 0;
  background: #fff; border: 1px solid #C3CCD6; border-radius: 2px;
  font-size: .98rem; font-weight: 400; line-height: 1.3; color: var(--ink); cursor: pointer;
}
.entry-content .with_frm_style .frm_radio label:hover,
.entry-content .with_frm_style .frm_checkbox label:hover { border-color: var(--navy); }
.entry-content .with_frm_style .frm_radio label:has(input:checked),
.entry-content .with_frm_style .frm_checkbox label:has(input:checked) {
  border-color: var(--navy); background: var(--blue-wash); box-shadow: inset 0 0 0 1px var(--navy);
}
.entry-content .with_frm_style input[type="radio"],
.entry-content .with_frm_style input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem; margin: 0; flex: none; accent-color: var(--red);
}
/* dlhý súhlas so spracovaním údajov: blok cez celú šírku */
.entry-content .with_frm_style .frm_checkbox:only-child { flex: 1 1 100%; }
.entry-content .with_frm_style .frm_checkbox:only-child label { align-items: flex-start; background: var(--ground); font-size: .92rem; }
.entry-content .with_frm_style .frm_checkbox:only-child input { margin-top: .15rem; }

/* opakované riadky (športovci) ako bloky, tlačidlá pridať/zmazať obtiahnuté */
.entry-content .with_frm_style .frm_repeat_sec {
  padding: .9rem 1rem 1rem; margin: 0 0 .7rem;
  background: #FAFBFC; border: 1px solid var(--line);
}
.entry-content .with_frm_style .frm_repeat_buttons { display: flex; flex-wrap: wrap; gap: .5rem; align-self: end; }
/* display nechávame na Formidable (skrýva „pridať“ vo všetkých riadkoch okrem posledného);
   na stred zarovnáva výška riadku, v kontajneri s flexom sú tlačidlá aj tak blokové */
.entry-content .with_frm_style .frm_repeat_buttons .frm_button,
.entry-content .with_frm_style .frm_repeat_buttons a {
  height: 2.75rem; line-height: calc(2.75rem - 2px); padding: 0 .9rem; margin: 0;
  white-space: nowrap;
  background: #fff; color: var(--navy);
  border: 1px solid var(--navy); border-radius: 0; box-shadow: none;
  font-family: var(--text); font-size: .92rem; font-weight: 600; text-transform: none; letter-spacing: 0;
  text-decoration: none;
}
.entry-content .with_frm_style .frm_repeat_buttons .frm_add_form_row:hover { background: var(--navy); color: #fff; }
.entry-content .with_frm_style .frm_repeat_buttons .frm_remove_form_row { border-color: #E3B7B2; color: var(--red-ink); }
.entry-content .with_frm_style .frm_repeat_buttons .frm_remove_form_row:hover { background: var(--red-wash); border-color: var(--red-ink); }
.entry-content .with_frm_style .frm_repeat_buttons svg { width: 1.05em; height: 1.05em; fill: currentColor; vertical-align: middle; margin: -.12em .4rem 0 0; }

.entry-content .with_frm_style .frm_submit button:hover,
.entry-content .with_frm_style .frm_submit button:focus,
.entry-content .with_frm_style .frm_submit input[type="submit"]:hover {
  background: var(--red-ink); border-color: var(--red-ink); color: #fff;
}
/* skryté prvky Formidable (napr. náhradné tlačidlo „pridať riadok") nech ostanú skryté */
.entry-content .with_frm_style .frm_hidden,
.entry-content .with_frm_style .frm_repeat_buttons.frm_hidden { display: none; }

/* nahrávanie súborov */
.entry-content .with_frm_style .frm_dropzone {
  max-width: none; border: 1px dashed #AEB9C6; border-radius: 2px; background: #FAFBFC;
}
.entry-content .with_frm_style .frm_dropzone .dz-message { color: var(--body); }
.entry-content .with_frm_style .frm_dropzone .frm_upload_text,
.entry-content .with_frm_style .frm_dropzone .dz-message button,
.entry-content .with_frm_style .frm_dropzone .dz-message > span:not(.frm_small_text) {
  font-family: var(--text); font-size: 1rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--navy);
}
.entry-content .with_frm_style .frm_dropzone .frm_small_text { font-size: .82rem; color: var(--soft); }
.entry-content .with_frm_style .frm_dropzone .frmsvg { color: var(--blue); fill: currentColor; }
.entry-content .with_frm_style .frm_dropzone:hover { border-color: var(--navy); background: var(--blue-wash); }
.entry-content .with_frm_style input[type="file"] { font: inherit; font-size: .95rem; }

/* odoslanie: čiara nad, tlačidlo ako v registrácii */
.entry-content .with_frm_style .frm_submit {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem;
  margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
}
.entry-content .with_frm_style .frm_submit button,
.entry-content .with_frm_style .frm_submit input[type="submit"] {
  background: var(--red); border: 1px solid var(--red); color: #fff;
  padding: .7rem 1.5rem; font-size: 1.05rem;
  min-height: 2.9rem; margin: 0;
  font-family: var(--disp); text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  border-radius: 0; box-shadow: none;
}

/* chyby a potvrdenie */
.entry-content .with_frm_style .frm_error { font-size: .88rem; color: var(--red-ink); margin-top: .3rem; }
.entry-content .with_frm_style .frm_blank_field input,
.entry-content .with_frm_style .frm_blank_field select { border-color: var(--red); }

@media (max-width: 760px) {
  .entry-content .frm_forms.with_frm_style { padding: 1rem .85rem 1.1rem; }
  .entry-content .with_frm_style .frm_repeat_sec { padding: .75rem .7rem .8rem; }
  .entry-content .with_frm_style .frm_repeat_buttons { width: 100%; }
  .entry-content .with_frm_style .frm_repeat_buttons a { flex: 1 1 auto; text-align: center; }
  /* nahrávanie súboru v jednom riadku: ikona vľavo, text a limit vpravo */
  .entry-content .with_frm_style .frm_dropzone .dz-message {
    display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .75rem; align-items: center;
    padding: .7rem .8rem; margin: 0; text-align: left;
  }
  .entry-content .with_frm_style .frm_dropzone .dz-message > .frmsvg { grid-row: 1 / span 3; width: 1.5rem; height: 1.5rem; margin: 0; }
  .entry-content .with_frm_style .frm_dropzone .dz-message > * { margin: 0; }
  .entry-content .with_frm_style .frm_dropzone .frm_upload_text button { text-align: left; line-height: 1.3; }
  .entry-content .with_frm_style .frm_dropzone .frm_small_text p { margin: .1rem 0 0; }
  .entry-content .with_frm_style .frm_opt_container { flex-direction: column; }
  .entry-content .with_frm_style .frm_submit button { width: 100%; }
}

/* „Čo je nové“ na titulke: články aj nové dokumenty na stránkach (zápisnice, zmluvy…) */
.novinky { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 2rem; }
.novinky li {
  display: grid; grid-template-columns: 6.2rem 7.5rem 1fr; align-items: baseline; gap: .1rem .8rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line);
}
.novinky time { font-family: var(--mono); font-size: .82rem; color: var(--soft); white-space: nowrap; }
.novinka-druh {
  font-family: var(--disp); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--red-ink);
  border: 1px solid var(--line); border-radius: 2px; padding: .1rem .4rem; text-align: center;
}
.novinky li > a { font-weight: 600; color: var(--ink); text-decoration: none; }
.novinky li > a:hover, .novinka-kde:hover { text-decoration: underline; }
.novinky li > a:hover { color: var(--red-ink); }
.novinka-kde { grid-column: 3; font-size: .84rem; color: var(--soft); text-decoration: none; }
.novinka-kde:hover { color: var(--body); }
@media (max-width: 860px) {
  .novinky { grid-template-columns: 1fr; }
  .novinky li { grid-template-columns: 6.2rem 1fr; }
  .novinka-druh { grid-column: 1; grid-row: 2; }
  .novinky li > a { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .novinka-kde { grid-column: 2; grid-row: 3; }
}

/* tabuľky v obsahu článku/stránky (blok Tabuľka): rovnaké šírky stĺpcov vo viacerých tabuľkách a viditeľná spodná čiara */
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table table {
  table-layout: fixed; width: 100%; min-width: 30rem;
  background: var(--white); border: 1px solid var(--line);
}
.entry-content .wp-block-table th, .entry-content .wp-block-table td { border-bottom: 1px solid var(--line); }
.entry-content .wp-block-table tbody tr:last-child td { border-bottom: 0; }
.entry-content .wp-block-table thead th { background: var(--ground); font-family: var(--disp); text-transform: uppercase; letter-spacing: .04em; }

/* logo projektu na začiatku článku (napr. Generácia OLYMP) */
.entry-content .is-style-sbf-logo-clanku { max-width: 300px; margin: 0 0 1.2rem; }
.entry-content .is-style-sbf-logo-clanku img { width: 100%; height: auto; }
