/*
Theme Name: Astra Child Slotová Pokladna
Template: astra
Version: 1.0.0
Description: Editorial Vault & Treasury Child Theme for slotova-pokladna.cz
*/

:root {
  --spok-canvas: #f4f2ed;
  --spok-sheet: #ffffff;
  --spok-vault: #121815;
  --spok-vault-2: #1c2621;
  --spok-teal: #0f766e;
  --spok-teal-deep: #115e59;
  --spok-teal-soft: #ecfdf5;
  --spok-amber: #b45309;
  --spok-amber-bright: #d97706;
  --spok-amber-soft: #fffbeb;
  --spok-ink: #171d1a;
  --spok-text: #37413c;
  --spok-muted: #64706a;
  --spok-border: #e3ded4;
  --spok-r-lg: 22px;
  --spok-r-md: 14px;
  --spok-shadow: 0 12px 32px rgba(18, 24, 21, 0.06);
}

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

html, body.spok {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--spok-canvas);
  color: var(--spok-ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.spok h1, .spok h2, .spok h3, .spok-logo-title {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--spok-ink);
}

.spok-wrap {
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
}

/* Top regulatory ribbon */
.spok-ribbon {
  background: #0b100e;
  color: #cbd5d0;
  font-size: 0.79rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.spok-ribbon-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
  padding: 0.42rem 0;
}
.spok-ribbon-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
}
.spok-pill-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--spok-amber-bright);
  color: #121815;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}
.spok-ribbon a {
  color: #5eead4;
  text-decoration: none;
  font-weight: 600;
}
.spok-ribbon a:hover { text-decoration: underline; }

/* Dark Obsidian Sticky Header (distinct from light headers) */
.spok-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--spok-vault);
  border-bottom: 2px solid var(--spok-teal);
  box-shadow: 0 8px 24px rgba(11, 16, 14, 0.18);
}
.spok-head-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
  flex-wrap: wrap;
}
.spok-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: auto;
}
.spok-crest {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--spok-teal), #064e3b);
  border: 1px solid rgba(94, 234, 212, 0.35);
  display: grid;
  place-items: center;
  color: #fbbf24;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 1.05rem;
}
.spok-logo-title {
  color: #ffffff;
  font-size: 1.24rem;
  line-height: 1.1;
  display: block;
}
.spok-logo-sub {
  display: block;
  color: #94a39c;
  font-size: 0.74rem;
  font-weight: 500;
  margin-top: 0.1rem;
}

.spok-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}
.spok-menu-group {
  position: relative;
}
.spok-menu-group > a {
  display: inline-block;
  color: #e2e8e5;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  border-radius: 9px;
  transition: background 0.15s ease, color 0.15s ease;
}
.spok-menu-group > a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #5eead4;
}
.spok-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 17.5rem;
  background: #ffffff;
  border: 1px solid var(--spok-border);
  border-radius: 14px;
  padding: 0.45rem;
  box-shadow: 0 20px 44px rgba(18, 24, 21, 0.18);
  z-index: 60;
}
.spok-menu-group:hover .spok-submenu,
.spok-menu-group:focus-within .spok-submenu {
  display: flex;
  flex-direction: column;
}
.spok-submenu a {
  color: var(--spok-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
.spok-submenu a:hover {
  background: var(--spok-canvas);
  color: var(--spok-teal);
}

.spok-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 0.48rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

/* Main two-column layout: LEFT sticky rail + RIGHT main article sheet */
.spok-main {
  padding: 2rem 0 3.5rem;
}
.spok-grid {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.spok-rail {
  position: sticky;
  top: 5.75rem;
  display: grid;
  gap: 1.15rem;
}
.spok-widget {
  background: var(--spok-sheet);
  border: 1px solid var(--spok-border);
  border-radius: var(--spok-r-md);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--spok-shadow);
}
.spok-widget-label {
  margin: 0 0 0.65rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spok-teal);
}
.spok-toc a {
  display: block;
  color: var(--spok-text);
  text-decoration: none;
  font-size: 0.87rem;
  line-height: 1.38;
  padding: 0.4rem 0;
  border-top: 1px solid var(--spok-border);
}
.spok-toc a:hover { color: var(--spok-amber); }

.spok-calc label {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--spok-muted);
  margin-bottom: 0.55rem;
}
.spok-calc input,
.spok-calc select {
  width: 100%;
  min-height: 38px;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--spok-border);
  border-radius: 9px;
  background: var(--spok-canvas);
  color: var(--spok-ink);
  font: inherit;
  font-size: 0.9rem;
}
.spok-calc-out {
  margin-top: 0.65rem;
  padding: 0.7rem 0.8rem;
  background: var(--spok-vault);
  color: #f4f2ed;
  border-radius: 10px;
  font-size: 0.84rem;
  display: grid;
  gap: 0.35rem;
}
.spok-calc-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.spok-calc-row strong {
  font-family: "JetBrains Mono", monospace;
  color: #fbbf24;
}
.spok-calc-foot {
  margin: 0.55rem 0 0;
  font-size: 0.76rem;
  color: var(--spok-muted);
  line-height: 1.4;
}

/* Main article typography & blocks */
.spok-sheet article {
  background: var(--spok-sheet);
  border: 1px solid var(--spok-border);
  border-radius: var(--spok-r-lg);
  padding: 2.2rem 2.5rem;
  box-shadow: var(--spok-shadow);
}
.spok-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--spok-teal-soft);
  color: var(--spok-teal-deep);
  border: 1px solid #99f6e4;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.24rem 0.65rem;
  border-radius: 8px;
  margin: 0 0 0.75rem;
}
.spok-sheet h1 {
  font-size: clamp(1.95rem, 3.3vw, 2.65rem);
  line-height: 1.14;
  margin: 0 0 0.95rem;
}
.spok-lead {
  font-size: 1.04rem;
  color: var(--spok-text);
  margin: 0 0 1.25rem;
}
.spok-sheet h2 {
  font-size: 1.48rem;
  line-height: 1.24;
  margin: 2.2rem 0 0.8rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--spok-teal);
}
.spok-sheet h3 {
  font-size: 1.12rem;
  margin: 1.3rem 0 0.35rem;
  color: var(--spok-ink);
}
.spok-sheet p {
  margin: 0 0 1rem;
  color: var(--spok-text);
}
.spok-sheet ul,
.spok-sheet ol {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.4rem;
  color: var(--spok-text);
}
.spok-sheet li { margin-bottom: 0.45rem; }
.spok-sheet a {
  color: var(--spok-teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.spok-sheet a:hover { color: var(--spok-amber); }

/* Clean data tables */
.spok-table-box {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid var(--spok-border);
  border-radius: 14px;
  background: #ffffff;
}
.spok-sheet table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.91rem;
}
.spok-sheet thead th {
  background: var(--spok-vault);
  color: #f4f2ed;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.82rem 0.95rem;
}
.spok-sheet tbody td {
  padding: 0.82rem 0.95rem;
  border-bottom: 1px solid var(--spok-border);
  color: var(--spok-text);
  vertical-align: top;
}
.spok-sheet tbody tr:nth-child(even) {
  background: #faf9f6;
}
.spok-sheet tbody tr:last-child td {
  border-bottom: 0;
}

/* Editorial figures */
.spok-fig {
  margin: 1.65rem 0;
  border: 1px solid var(--spok-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--spok-canvas);
}
.spok-fig img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 410px;
  object-fit: cover;
}
.spok-fig figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.83rem;
  color: var(--spok-muted);
  border-top: 1px solid var(--spok-border);
  background: #faf9f6;
}

/* Highlighted callout */
.spok-callout {
  background: var(--spok-amber-soft);
  border: 1px solid #fde68a;
  border-left: 4px solid var(--spok-amber-bright);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 1.3rem 0;
  color: #451a03;
  font-size: 0.94rem;
}

/* ========================================================
   OFFERS BOARD (.spok-board) - 3-COLUMN VAULT CARDS
   Bulletproof desktop & mobile styling (zero cascade leaks)
   ======================================================== */
.spok-sheet .spok-board {
  background: linear-gradient(155deg, var(--spok-vault) 0%, #0d2b26 100%);
  border: 1px solid #1f3d36;
  border-radius: 20px;
  padding: 1.45rem;
  margin: 1.35rem 0 1.85rem;
  color: #f4f2ed;
}
.spok-sheet .spok-board-head {
  margin-bottom: 1.1rem;
}
.spok-sheet .spok-board h2 {
  color: #ffffff;
  border: 0;
  padding: 0;
  margin: 0 0 0.35rem;
  font-size: 1.38rem;
}
.spok-sheet .spok-board .spok-disclaimer {
  color: #cbd5d0;
  font-size: 0.83rem;
  line-height: 1.45;
  margin: 0;
}
.spok-sheet .spok-board .spok-cards {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.spok-sheet .spok-board .spok-card {
  background: #ffffff;
  color: var(--spok-ink);
  border-radius: 15px;
  padding: 1.15rem 1.05rem;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.spok-sheet .spok-board .spok-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.spok-sheet .spok-board .spok-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--spok-vault);
  color: #fbbf24;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.spok-sheet .spok-board .spok-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.spok-sheet .spok-board .spok-name {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.18;
  color: var(--spok-ink);
}
.spok-sheet .spok-board .spok-prize {
  background: var(--spok-canvas);
  border: 1px solid var(--spok-border);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--spok-teal-deep);
}
.spok-sheet .spok-board .spok-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--spok-text);
  flex-grow: 1;
}
.spok-sheet .spok-board .spok-rails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.spok-sheet .spok-board .spok-rails span {
  font-size: 0.72rem;
  color: var(--spok-muted);
  background: #f8f7f4;
  border: 1px solid var(--spok-border);
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
}
.spok-sheet .spok-board .spok-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.62rem 1rem;
  border-radius: 10px;
  background: var(--spok-amber-bright);
  color: #121815 !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}
.spok-sheet .spok-board .spok-cta:hover {
  background: #f59e0b;
}

/* Vault Footer */
.spok-footer {
  background: var(--spok-vault);
  color: #cbd5d0;
  padding: 2.5rem 0 2rem;
  margin: 0 !important;
  border-top: 3px solid var(--spok-teal);
}
.spok-foot-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.75rem;
}
.spok-footer strong {
  color: #ffffff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.25rem;
}
.spok-footer h2 {
  margin: 0 0 0.65rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5eead4;
}
.spok-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.spok-footer a {
  color: #e2e8e5;
  text-decoration: none;
  font-size: 0.9rem;
}
.spok-footer a:hover { color: #fbbf24; }
.spok-foot-legal {
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.81rem;
  color: #94a39c;
}

/* Suppress all Astra default header/footer/sidebar/scroll-top artifacts */
#masthead, .ast-main-header-wrap, .ast-mobile-header-wrap, .site-header,
.ast-above-header, .ast-below-header, .ast-primary-header-bar,
#secondary, .widget-area, .ast-sidebar, aside.sidebar,
#ast-scroll-top, .ast-scroll-top-icon, .ast-scroll-to-top-right, .ast-scroll-to-top-left,
#colophon, .site-footer, .ast-footer-copyright, .ast-small-footer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.spok #page, body.spok #content, body.spok .site-content, body.spok .ast-container,
body.spok #primary, body.spok .ast-article-single {
  background: transparent !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  box-shadow: none !important;
}

@media (max-width: 1040px) {
  .spok-grid { grid-template-columns: 1fr; }
  .spok-rail { position: static; order: 2; }
  .spok-sheet { order: 1; }
  .spok-sheet .spok-board .spok-cards { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .spok-wrap { width: min(100% - 1.25rem, 80rem); }
  .spok-sheet article { padding: 1.35rem 1.05rem; border-radius: 16px; }
  .spok-sheet .spok-board { padding: 1.05rem 0.9rem; border-radius: 16px; }
  .spok-foot-cols { grid-template-columns: 1fr; }
  .spok-toggle { display: inline-flex; align-items: center; }
  .spok-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 0 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .spok-nav.is-open { display: flex; }
  .spok-submenu {
    position: static;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.06);
    border: 0;
    box-shadow: none;
    margin: 0.2rem 0 0.5rem 0.6rem;
  }
  .spok-submenu a { color: #cbd5d0; }
  .spok-submenu a:hover { background: rgba(255, 255, 255, 0.1); color: #5eead4; }
}
