/*
Theme Name: No Deposit Bonus
Template: astra
Description: Dětské téma Astra pro web No Deposit Bonus: světlý redakční vzhled, jeden sloupec, vlastní hlavička a patička.
Version: 1.3.0
Author: No Deposit Bonus
Text Domain: astra-child-ndb
*/

/* ==========================================================================
   Tokeny. Jeden podklad, jeden inkoust, jeden akcent, jeden sloupec.
   ========================================================================== */

:root {
  --ndb-paper: #f6f2e9;
  --ndb-surface: #efe9dc;
  --ndb-card: #fbf8f1;
  --ndb-ink: #1c1a17;
  --ndb-muted: #4f483e;
  --ndb-accent: #a31822;
  --ndb-accent-dark: #86121b;
  --ndb-rule: #d8cfbe;
  --ndb-rule-strong: #b9ae9a;
  --ndb-foot: #23201a;
  --ndb-measure: 1120px;
  --ndb-gutter: clamp(16px, 4vw, 32px);
  --ndb-gap: 32px;
  --ndb-font-display: Georgia, 'Times New Roman', serif;
  --ndb-font-ui: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ndb-radius: 8px;
}

/* ==========================================================================
   Základ
   ========================================================================== */

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

html {
  background: var(--ndb-paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ndb-paper);
  color: var(--ndb-ink);
  font-family: var(--ndb-font-display);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--ndb-font-display);
  font-weight: 700;
  line-height: 1.22;
  color: var(--ndb-ink);
  overflow-wrap: break-word;
}

p,
li,
td,
th,
dd {
  overflow-wrap: break-word;
}

p {
  margin: 0 0 16px;
}

strong {
  font-weight: 700;
  color: var(--ndb-ink);
}

a {
  color: var(--ndb-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ndb-accent-dark);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.ndb-table-scroll:focus-visible {
  outline: 2px solid var(--ndb-ink);
  outline-offset: 2px;
}

.ndb-skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  font-family: var(--ndb-font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--ndb-paper);
  background: var(--ndb-ink);
  border-radius: var(--ndb-radius);
}

.ndb-skip:focus {
  top: 8px;
  color: var(--ndb-paper);
}

/* Jeden sloupec pro hlavičku, obsah i patičku: společné hrany. */
.ndb-wrap {
  width: 100%;
  max-width: var(--ndb-measure);
  margin-inline: auto;
  padding-inline: var(--ndb-gutter);
}

/* ==========================================================================
   Hlavička a navigace
   ========================================================================== */

.ndb-site-header {
  position: relative;
  z-index: 40;
  background: var(--ndb-paper);
  border-bottom: 1px solid var(--ndb-rule);
}

.ndb-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "brand age toggle"
    "nav   nav nav";
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
  padding-block: 12px 2px;
}

.ndb-brand-wrap {
  grid-area: brand;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  min-width: 0;
}

.ndb-brand {
  font-family: var(--ndb-font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ndb-ink);
  text-decoration: none;
}

.ndb-brand:hover {
  color: var(--ndb-accent);
}

.ndb-brand-tag {
  font-family: var(--ndb-font-ui);
  font-size: 14px;
  color: var(--ndb-muted);
}

.ndb-age-badge {
  grid-area: age;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  font-family: var(--ndb-font-ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #f7f2e9;
  background: #4a4438;
  border-radius: 999px;
}

.ndb-nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-family: var(--ndb-font-ui);
  font-size: 16px;
  font-weight: 700;
  color: var(--ndb-ink);
  background: var(--ndb-surface);
  border: 1px solid var(--ndb-rule-strong);
  border-radius: var(--ndb-radius);
  cursor: pointer;
}

.ndb-nav-toggle:hover {
  border-color: var(--ndb-ink);
}

.ndb-nav {
  grid-area: nav;
  min-width: 0;
}

.ndb-nav > ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ndb-nav li {
  margin: 0;
}

.ndb-nav > ul > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.ndb-nav a {
  display: block;
  padding: 10px 10px;
  font-family: var(--ndb-font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ndb-ink);
  text-decoration: none;
  white-space: nowrap;
}

.ndb-nav a:hover,
.ndb-nav a:focus-visible {
  color: var(--ndb-accent);
}

.ndb-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  margin: 0 0 0 -8px;
  padding: 0;
  color: var(--ndb-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.ndb-sub-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.ndb-nav li.is-open > .ndb-sub-toggle::before {
  transform: translateY(2px) rotate(-135deg);
}

.ndb-sub-toggle:hover {
  color: var(--ndb-accent);
}

.ndb-nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 264px;
  max-width: 344px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--ndb-card);
  border: 1px solid var(--ndb-rule-strong);
  border-radius: var(--ndb-radius);
  box-shadow: 0 10px 24px rgba(28, 26, 23, 0.12);
}

.ndb-nav-sub a {
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 500;
  white-space: normal;
}

.ndb-nav-sub a:hover,
.ndb-nav-sub a:focus-visible {
  background: var(--ndb-surface);
}

.ndb-nav li.is-open > .ndb-nav-sub {
  display: block;
}

.ndb-nav-sub .ndb-nav-hub > a {
  font-weight: 700;
}

.ndb-nav-sub .ndb-nav-hub:not(:first-child) {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--ndb-rule);
}

.ndb-nav-sub .ndb-nav-child > a {
  padding-left: 28px;
}

@media (min-width: 1024px) {
  .ndb-nav li:hover > .ndb-nav-sub,
  .ndb-nav li:focus-within > .ndb-nav-sub {
    display: block;
  }

  .ndb-nav > ul > li:nth-last-child(-n+2) > .ndb-nav-sub {
    left: auto;
    right: 0;
  }
}

@media (max-width: 1023px) {
  .ndb-nav-toggle {
    display: inline-flex;
  }

  .ndb-nav {
    display: none;
  }

  .ndb-nav.is-open {
    display: block;
    padding-bottom: 12px;
  }

  .ndb-nav > ul {
    flex-direction: column;
    gap: 0;
  }

  .ndb-nav > ul > li {
    flex-wrap: wrap;
    border-top: 1px solid var(--ndb-rule);
  }

  .ndb-nav > ul > li > a {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 4px;
  }

  .ndb-sub-toggle {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .ndb-nav-sub {
    position: static;
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
    padding: 0 0 8px 14px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ndb-nav-sub a {
    padding: 10px 4px;
  }
}

/* ==========================================================================
   Obsah: tok bloků na jednom sloupci
   ========================================================================== */

.ndb-main {
  padding-top: 14px;
  padding-bottom: 56px;
}

.ndb-main > * {
  margin-block: 0;
}

.ndb-main > * + * {
  margin-top: var(--ndb-gap);
}

.ndb-crumb {
  font-family: var(--ndb-font-ui);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ndb-muted);
}

.ndb-crumb a {
  color: var(--ndb-ink);
  text-decoration: none;
}

.ndb-crumb [aria-current] {
  color: var(--ndb-ink);
}

.ndb-crumb a:hover {
  color: var(--ndb-accent);
  text-decoration: underline;
}

.ndb-main > .ndb-crumb + .ndb-hero {
  margin-top: 12px;
}

.ndb-hero-kicker {
  margin: 0 0 6px;
  font-family: var(--ndb-font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ndb-accent);
}

.ndb-hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ndb-standfirst {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ndb-muted);
}

.ndb-main > .ndb-hero + .ndb-lead-in,
.ndb-main > .ndb-lead-in + .ndb-board {
  margin-top: 16px;
}

.ndb-lead-in {
  padding-left: 16px;
  color: var(--ndb-muted);
  border-left: 3px solid var(--ndb-accent);
  line-height: 1.55;
}

/* Obsah strany */
.ndb-toc {
  padding: 16px 20px;
  background: var(--ndb-card);
  border: 1px solid var(--ndb-rule);
  border-radius: var(--ndb-radius);
}

.ndb-toc-title {
  margin: 0 0 8px;
  font-family: var(--ndb-font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--ndb-ink);
}

.ndb-toc ol {
  columns: 2;
  column-gap: 32px;
  column-rule: 1px solid var(--ndb-rule);
  margin: 0;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.55;
}

.ndb-toc li {
  margin: 0 0 4px;
  break-inside: avoid;
}

.ndb-toc a {
  color: var(--ndb-ink);
  text-decoration: none;
}

.ndb-toc a:hover {
  color: var(--ndb-accent);
  text-decoration: underline;
}

/* Sekce průvodce */
.ndb-sec h2,
.ndb-faq-block h2,
.ndb-onward h2,
.ndb-care h2 {
  margin: 0 0 16px;
  padding-bottom: 8px;
  font-size: 26px;
  border-bottom: 1px solid var(--ndb-rule);
}

.ndb-sec h3 {
  margin: 28px 0 14px;
  font-size: 20px;
  line-height: 1.25;
}

.ndb-sec h2 + h3 {
  margin-top: 4px;
}

.ndb-sec ul,
.ndb-sec ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.ndb-sec li {
  margin: 0 0 6px;
}

.ndb-sec > :last-child,
.ndb-faq-block > :last-child,
.ndb-care > :last-child {
  margin-bottom: 0;
}

/* Obrázek jako inline SVG */
.ndb-fig {
  margin: 24px 0;
  padding: 12px;
  background: var(--ndb-card);
  border: 1px solid var(--ndb-rule);
  border-radius: var(--ndb-radius);
}

.ndb-fig svg {
  display: block;
  width: 100%;
  height: auto;
}

.ndb-fig figcaption {
  margin-top: 8px;
  font-family: var(--ndb-font-ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ndb-muted);
}

/* Tabulky: linky 1px, bez zebry, posuv uvnitř vlastního obalu */
.ndb-table-scroll {
  box-sizing: border-box;
  max-width: 100%;
  margin: 16px 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ndb-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-family: var(--ndb-font-ui);
  font-size: 15px;
  line-height: 1.45;
}

.ndb-table th,
.ndb-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid var(--ndb-rule);
}

.ndb-table th {
  font-size: 14px;
  font-weight: 700;
  vertical-align: bottom;
  background: var(--ndb-surface);
  border-bottom-color: var(--ndb-rule-strong);
}

.ndb-table tbody tr {
  background: transparent;
}

.ndb-table-cmp th:first-child,
.ndb-table-cmp td:first-child {
  font-family: var(--ndb-font-display);
}

@media (max-width: 1023px) {
  .ndb-table-cmp {
    min-width: 840px;
  }
}

.ndb-table-note {
  margin: 8px 0 16px;
  font-family: var(--ndb-font-ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ndb-muted);
}

/* Časté otázky */
.ndb-faq-item {
  margin: 0 0 8px;
  background: var(--ndb-card);
  border: 1px solid var(--ndb-rule);
  border-radius: var(--ndb-radius);
}

.ndb-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  font-family: var(--ndb-font-ui);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ndb-ink);
  cursor: pointer;
  list-style: none;
}

.ndb-faq-q::-webkit-details-marker {
  display: none;
}

.ndb-faq-q::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--ndb-accent);
}

.ndb-faq-item[open] > .ndb-faq-q::after {
  content: "\2212";
}

.ndb-faq-q:hover {
  color: var(--ndb-accent);
}

.ndb-faq-a {
  padding: 0 16px 14px;
}

.ndb-faq-a p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.6;
}

.ndb-faq-a p:last-child {
  margin-bottom: 0;
}

/* Blok péče a licenční poznámka */
.ndb-care {
  padding: 20px;
  background: var(--ndb-card);
  border: 1px solid var(--ndb-rule);
  border-left: 4px solid var(--ndb-accent);
  border-radius: var(--ndb-radius);
}

.ndb-care-box {
  font-size: 16px;
  line-height: 1.6;
}

.ndb-care-box p {
  margin: 0 0 8px;
}

.ndb-care-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.ndb-care-box li {
  margin: 0 0 4px;
}

.ndb-licence {
  margin: 24px 0;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.6;
  background: var(--ndb-card);
  border: 1px solid var(--ndb-rule);
  border-left: 4px solid var(--ndb-ink);
  border-radius: var(--ndb-radius);
}

.ndb-warning {
  margin: 0;
  padding-top: 16px;
  font-family: var(--ndb-font-ui);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ndb-ink);
  border-top: 1px solid var(--ndb-rule-strong);
}

/* Číst dál */
.ndb-onward ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ndb-onward a {
  display: inline-block;
  padding: 7px 14px;
  font-family: var(--ndb-font-ui);
  font-size: 15px;
  line-height: 1.35;
  color: var(--ndb-ink);
  text-decoration: none;
  border: 1px solid var(--ndb-rule-strong);
  border-radius: 999px;
}

.ndb-onward a:hover {
  color: var(--ndb-accent);
  border-color: var(--ndb-accent);
}

/* Kalkulačka */
.ndb-calc {
  margin: 0 0 24px;
  padding: 20px;
  background: var(--ndb-card);
  border: 1px solid var(--ndb-rule);
  border-radius: var(--ndb-radius);
}

.ndb-calc label {
  display: block;
  margin: 12px 0 4px;
  font-family: var(--ndb-font-ui);
  font-size: 15px;
  color: var(--ndb-ink);
}

.ndb-calc label:first-child {
  margin-top: 0;
}

.ndb-calc input {
  display: block;
  width: 100%;
  max-width: 260px;
  min-height: 44px;
  padding: 8px 12px;
  font-family: var(--ndb-font-ui);
  font-size: 16px;
  color: var(--ndb-ink);
  background: var(--ndb-paper);
  border: 1px solid var(--ndb-rule-strong);
  border-radius: 6px;
}

.ndb-calc input:focus {
  border-color: var(--ndb-ink);
}

.ndb-calc button {
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 20px;
  font-family: var(--ndb-font-ui);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: #fffaf3;
  background: var(--ndb-accent);
  border: 2px solid var(--ndb-accent);
  border-radius: var(--ndb-radius);
  cursor: pointer;
}

.ndb-calc button:hover {
  background: var(--ndb-accent-dark);
  border-color: var(--ndb-accent-dark);
}

.ndb-calc button:active {
  transform: translateY(1px);
}

.ndb-calc-result {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ndb-ink);
}

.ndb-calc-note {
  margin: 8px 0 0;
  font-family: var(--ndb-font-ui);
  font-size: 14px;
  color: var(--ndb-muted);
}

/* ==========================================================================
   Patička
   ========================================================================== */

.ndb-site-footer {
  margin: 0;
  padding: 36px 0 40px;
  font-family: var(--ndb-font-ui);
  font-size: 15px;
  line-height: 1.6;
  color: #ebe4d6;
  background: var(--ndb-foot);
}

.ndb-foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  margin: 0 0 24px;
}

.ndb-foot-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2c9cb;
}

.ndb-site-footer p {
  margin: 0 0 8px;
}

.ndb-foot-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ndb-foot-links li {
  margin: 0 0 6px;
}

.ndb-site-footer a {
  color: #f2c9cb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ndb-site-footer a:hover {
  color: #fffaf3;
}

.ndb-site-footer a:focus-visible {
  outline-color: #fffaf3;
}

.ndb-foot-credit {
  margin: 0;
  padding-top: 16px;
  font-size: 14px;
  color: #cfc6b4;
  border-top: 1px solid #423b31;
}

/* ==========================================================================
   Užší obrazovky
   ========================================================================== */

@media (max-width: 768px) {
  .ndb-hero h1 {
    font-size: 28px;
  }

  .ndb-sec h2,
  .ndb-faq-block h2,
  .ndb-onward h2,
  .ndb-care h2 {
    font-size: 22px;
  }

  .ndb-toc ol {
    columns: 1;
  }

  .ndb-foot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ndb-brand-tag {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ndb-calc button:active {
    transform: none;
  }
}
