/* ===== NOC Cenník v2 – tabs + public + clubs ===== */
:root{
  --accent:#274fff;
  --wd-head:#eaf0ff;
  --we-head:#fff8d9;
  --head-top:#f6f8fe;
  --sticky:#f0f3ff;
  --row-alt:#f8f9ff;
  --border:#e6eaf8;
  --text:#141820;
}

.cnc-tabs table:not(.u-table-entity),
.cnc-tabs th:not(.u-table-cell),
.cnc-tabs td:not(.u-table-cell){ border:none; }

/* ---------- TABS ---------- */
.cnc-tabs{ max-width:1100px; margin:32px auto; padding:0 16px; }
.cnc-tabs-bar{
  display:flex; gap:8px; background:#fff; padding:6px; border-radius:14px;
  border:1px solid var(--border); box-shadow:0 6px 28px rgba(39,79,255,.06); margin-bottom:16px; width:fit-content;
}
.cnc-tab{
  appearance:none; border:0; background:transparent; cursor:pointer;
  padding:10px 16px; border-radius:10px; font-weight:800; color:#445;
}
.cnc-tab:hover{ background:#f4f6ff; }
.cnc-tab.is-active,
.cnc-tab.is-active:hover{ background:var(--accent); color:#fff; box-shadow:0 6px 18px rgba(39,79,255,.25); }

@media (max-width:600px){
  .cnc-tabs-bar{ margin-left:auto; margin-right:auto; }
}

.cnc-tabpanels{ margin-top:12px; }
.cnc-panel{ display:none; }
.cnc-panel.is-active{ display:block; }

/* ---------- spoločné bloky ---------- */
.cnc-grid{ display:flex; flex-direction:column; gap:32px; margin:0 auto 32px; max-width:100%; }
.cnc-block{
  width:100%; background:#fff; border-radius:24px; box-shadow:0 6px 28px rgba(39,79,255,.08);
  padding:22px 18px; border-left:8px solid var(--accent);
}
.cnc-title{ margin:0 0 12px; font-weight:900; font-size:1.6rem; color:var(--accent); letter-spacing:0; }

.cnc-table-wrap{ position:relative; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.cnc-table-wrap:before{
  content:"← Posuňte pre viac →";
  position:absolute; top:-20px; left:50%;
  transform:translateX(-50%); font-size:0.85rem; color:#888; white-space:nowrap; display:none;
}
@media (max-width:768px){ .cnc-table-wrap:before{ display:block; } }

.cnc-table{
  width:100%; min-width:760px; border-collapse:separate; border-spacing:0; font-size:1.02rem; color:var(--text);
}
.cnc-table thead th{
  position:sticky; top:0; background:var(--head-top); color:var(--accent);
  text-align:center; padding:10px 8px; border-bottom:2px solid var(--border); font-weight:800; z-index:2;
  white-space:normal; word-break:break-word; overflow-wrap:anywhere;
}
.cnc-table thead th.cnc-corner{ z-index:5; }
.cnc-sub{ display:block; font-size:.86em; color:#6e78a9; font-weight:500; }
.cnc-sub.only-sub{ margin-top:4px; }

.cnc-sticky{
  position:sticky; left:0; background:var(--sticky) !important; text-align:left !important;
  z-index:4; min-width:120px; max-width:260px; font-weight:800 !important; border-right:2px solid var(--border);
  white-space:normal; word-break:break-word; overflow-wrap:anywhere;
}

.cnc-table tbody td{
  padding:10px 8px; border-bottom:1px solid var(--border); text-align:center; background:#fff; font-weight:600; transition:background .2s ease;
  white-space:normal; word-break:break-word; overflow-wrap:anywhere;
}
.cnc-table tbody tr:nth-child(even) td{ background:var(--row-alt); }
.cnc-table tbody tr:hover td{ background:#eef2ff !important; }
.cnc-table .left{ text-align:left; }

/* ---------- PUBLIC ---------- */
.cnc-table-public{ min-width:720px; }
.cnc-note{ margin:10px 0 0; color:#4a5169; font-size:.95rem; display:none; }

.cnc-half{ margin-top:10px; background:#f8faff; border-radius:16px; padding:12px; border:1px solid #e9edff; }
.cnc-half-title{ font-weight:800; margin-bottom:10px; color:#1b1f2b; }
.cnc-half-prices{ display:flex; gap:10px; flex-wrap:wrap; }
.cnc-chip{
  display:flex; justify-content:space-between; align-items:center; gap:8px;
  background:#fff; border:1px solid #e5e9ff; width:100%;
  border-radius:12px; padding:10px 14px; box-shadow:0 2px 10px rgba(39,79,255,.05);
}
.cnc-chip-label{ color:#445; font-weight:700; }
.cnc-chip-val{
  color:var(--accent); font-weight:900; letter-spacing:-.2px;
  background:#f2f5ff; padding:6px 10px; border-radius:999px; min-width:86px; text-align:center;
}

/* Doplatky – chips zoskupené */
.cnc-doplatky{ display:flex; flex-direction:column; gap:8px; }
.cnc-lane-block{ margin-top:8px; }

/* Ostatné */
.cnc-others{ margin-top:16px; }
.cnc-others-title{ margin:0 0 8px; font-size:1.1rem; font-weight:900; color:#1b1f2b; letter-spacing:0; }
.cnc-table-others{ min-width:520px; }

/* ---------- INFO BOX (WYSIWYG) ---------- */
.cnc-info{
  margin-top:14px; display:flex; gap:12px; align-items:flex-start;
  background:#f7f9ff; border:1px solid #e2e8ff; border-radius:16px; padding:14px;
}
.cnc-info-icon{
  flex:0 0 auto; width:28px; height:28px; border-radius:50%;
  background:var(--accent); color:#fff; font-weight:900; display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 16px rgba(39,79,255,.25);
}
.cnc-info-title{ font-weight:900; margin:0 0 6px; color:#1b1f2b; }
.cnc-info-content :where(p,ul,ol){ margin:.35em 0; }
.cnc-info-body{ line-height:1.45; }

.cnc-info.is-collapsed .cnc-info-content{ max-height:160px; overflow:hidden; position:relative; }
.cnc-info.is-collapsed .cnc-info-content::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:48px;
  background:linear-gradient(to bottom, rgba(247,249,255,0), rgba(247,249,255,1));
}
.cnc-info-toggle{
  appearance:none; border:0; background:#eef2ff; color:#274fff; font-weight:800;
  border-radius:999px; padding:8px 12px; margin-top:10px; cursor:pointer;
}
.cnc-info.is-expanded .cnc-info-content{ max-height:none; overflow:visible; }
.cnc-info.is-expanded .cnc-info-content::after{ display:none; }

/* ---------- responsive ---------- */
@media (max-width:900px){
  .cnc-table{ font-size:.98rem; }
  .cnc-table thead th, .cnc-table tbody td{ padding:8px 6px; }
  .cnc-sticky{ min-width:90px; max-width:140px; }
}

@media (max-width:600px){
  .cnc-table,
  .cnc-table-others{ table-layout:fixed; width:max-content; min-width:0 !important; }
  .cnc-table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .cnc-table th, .cnc-table td,
  .cnc-table-others th, .cnc-table-others td{
    width:100px !important; min-width:100px !important; max-width:100px !important;
    white-space:normal !important; word-break:break-word !important; overflow-wrap:anywhere !important;
    overflow:visible; text-overflow:clip; box-sizing:border-box;
  }
  .cnc-sticky,
  .cnc-table th.cnc-sticky, .cnc-table td.cnc-sticky,
  .cnc-table-others th.cnc-sticky, .cnc-table-others td.cnc-sticky{
    width:100px !important; min-width:100px !important; max-width:100px !important;
  }
}

.cnc-empty{ color:#666; }

/* --- Info obsah: vizuál pre WYSIWYG blok --- */
.cnc-info-content .noc-notes{ display:flex; flex-direction:column; gap:12px; }
.cnc-info-content .nn-group{
  background:#fff; border:1px solid #e7ebff; border-radius:12px; padding:12px 14px;
  box-shadow:0 2px 8px rgba(39,79,255,.04);
}
.cnc-info-content .nn-title{ margin:0 0 6px; font-size:1rem; line-height:1.4; color:#274fff; font-weight:800; }
.cnc-info-content .nn-list{ margin:0; padding:0; list-style:none; }
.cnc-info-content .nn-list li{ position:relative; padding-left:26px; margin:.4em 0; line-height:1.45; font-size:1rem; }
/* Zjednotenie veľkostí – prebije inline font-size z kopírovaného textu */
.cnc-info-content :where(.nn-list li, .nn-title, p) *:not(.nn-badge){ font-size:inherit !important; line-height:inherit !important; }
/* Logá (MultiSport…) na výšku textu */
.cnc-info-content img{ height:1.4em !important; width:auto !important; vertical-align:middle; margin:0 .15em; }
.cnc-info-content .nn-list li::before{
  content:"✓"; position:absolute; left:0; top:0.05em; font-size:0.95em; color:#274fff;
  background:#eef2ff; border-radius:4px; width:18px; height:18px;
  display:flex; align-items:center; justify-content:center; font-weight:900;
}
.cnc-info-content .nn-badge{
  display:inline-block; margin-left:.35em; padding:.15em .5em; border-radius:999px;
  background:#f0f3ff; color:#274fff; font-weight:800; font-size:.85em; border:1px solid #e2e7ff;
}
.cnc-info-content .nn-callout{ border-left:4px solid #274fff; background:#f6f8ff; padding:10px 12px; border-radius:10px; }
@media (max-width:600px){
  .cnc-info-content .nn-group{ padding:10px 12px; }
  .cnc-info-content .nn-title{ font-size:.98rem; }
}
