/*
Theme Name: Breakdance Zero Theme Child
Template: breakdance-zero-theme-master
Version: 1.0.0
Text Domain: breakdance-child
*/

@font-face {
  font-family: 'ITCMachineProBold';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/wp-content/uploads/breakdance/fonts/font.woff2') format('woff2');
}

/* Rakettitukku – myyntipisteet */
:root {
  --rt-black: #0b0b0b;
  --rt-yellow: #ffed00;
  --rt-yellow-2: #f6d700;
  --rt-text: #f2f2f2;
  --rt-muted: rgba(255, 255, 255, 0.65);
  --rt-line: rgba(255, 237, 0, 0.22);
  --rt-line-2: rgba(255, 255, 255, 0.08);
  --rt-radius: 16px;
  --rt-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.rt-card {
  border-radius: var(--rt-radius);
  padding: 0;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 2px solid var(--rt-yellow);
  box-shadow: var(--rt-shadow);
  overflow: hidden;
  max-width: 100%;
  overflow-x: hidden;
  contain: layout paint;
}

.bde-code-block {
  max-width: 100%;
  overflow-x: hidden;
}

.rt-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  inline-size: 100%;
  max-inline-size: 100%;
  overscroll-behavior-x: contain;
}

.rt-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.rt-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 237, 0, 0.22), rgba(255, 237, 0, 0.10));
  color: var(--rt-yellow);
  text-align: left;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 237, 0, 0.2);
}

.rt-table thead th:nth-child(1) { width: 28%; }
.rt-table thead th:nth-child(2) { width: 30%; }
.rt-table thead th:nth-child(3) { width: 24%; }
.rt-table thead th:nth-child(4) { width: 18%; }

.rt-table thead th:first-child { border-top-left-radius: var(--rt-radius); }
.rt-table thead th:last-child  { border-top-right-radius: var(--rt-radius); }

.rt-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rt-line-2);
  vertical-align: top;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 14px;
  line-height: 1.5;
}

.rt-table th,
.rt-table td {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.rt-card,
.rt-card * { min-width: 0; }

.rt-table tbody tr:nth-child(odd)  { background: rgba(255, 237, 0, 0.06); }
.rt-table tbody tr:nth-child(even) { background: rgba(0, 0, 0, 0.35); }
.rt-table tbody tr:hover           { background: rgba(255, 237, 0, 0.12); }

.rt-table tbody td:first-child strong {
  color: #ffffff !important;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.rt-sub {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  color: var(--rt-muted);
}

.rt-muted { color: rgba(255, 255, 255, 0.45); }

.rt-note {
  margin-top: 14px;
  border-radius: var(--rt-radius);
  border: 1px solid rgba(255, 237, 0, 0.28);
  background: rgba(255, 237, 0, 0.06);
  padding: 14px 14px;
}
.rt-note p { margin: 0 0 10px; color: rgba(255, 255, 255, 0.88); }
.rt-note p:last-child { margin-bottom: 0; }
.rt-note strong { color: var(--rt-yellow); }

.rt-table-scroll .rt-table thead th { position: static; }

.rt-card picture { display: block; max-width: 100%; }

.ympyrivuotiset-osio,
.ympyrivuotiset-osio .bde-section {
  background-color: transparent !important;
  background-image: none !important;
}

.bde-code-block h2,
.bde-code-block h3 {
  color: #ffed00 !important;
  font-family: 'ITCMachineProBold', sans-serif !important;
}

@media (max-width: 768px) {
  .rt-card { border: none; box-shadow: none; }

  .rt-table thead { display: none; }

  .rt-table,
  .rt-table tbody,
  .rt-table tr { display: block; width: 100%; }

  .rt-table tbody tr {
    margin: 0 0 16px;
    padding: 12px 12px 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 237, 0, 0.28);
    background: rgba(0, 0, 0, 0.45);
  }

  .rt-table tbody tr:hover { background: inherit; }

  .rt-table tbody td {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--rt-line-2);
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .rt-table tbody td:last-child { border-bottom: none; }

  .rt-table tbody td::before {
    flex: 0 0 110px;
    font-size: 12px;
    font-weight: 800;
    color: var(--rt-yellow);
    line-height: 1.25;
  }

  .rt-table tbody td:nth-child(1)::before { content: "Myyntipiste"; }
  .rt-table tbody td:nth-child(2)::before { content: "Osoite"; }
  .rt-table tbody td:nth-child(3)::before { content: "Aukioloajat"; }
  .rt-table tbody td:nth-child(4)::before { content: "Lisätieto"; }

  .rt-table tbody td:first-child {
    justify-content: flex-start;
    text-align: left;
    padding: 14px 12px 12px;
    border-bottom: 1px solid var(--rt-line);
  }
  .rt-table tbody td:first-child::before { display: none; }
  .rt-table tbody td:first-child strong {
    display: block;
    font-size: 20px;
    line-height: 1.25;
  }

  @media (max-width: 420px) {
    .rt-table tbody td::before { flex-basis: 90px; }
  }
}


/* Single Post template – poista Gutenberg-blokkien kapeusrajoitus */
.bde-themeless-template-content-area {
  --wp--style--global--content-size: 100% !important;
  --wp--style--global--wide-size: 100% !important;
}
.bde-themeless-template-content-area .wp-block-post-content > *,
.bde-themeless-template-content-area .entry-content > *,
.bde-themeless-template-content-area .is-layout-flow > * {
  max-width: 100% !important;
}
.bde-themeless-template-content-area .alignwide,
.bde-themeless-template-content-area .alignfull {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
