/* Hide WP title */
.wp-block-post-title {
  display: none;
}


body.page-id-2129
.entry-content.is-layout-constrained
> #tone-lab{

    max-width:none;
    width:100%;

}
/* 🔧 Header slideshow fix */
body.page-id-2129 .slideshow-container {
  width: 100px !important;
  height: 100px !important;
}

body.page-id-2129 .slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-id-2129 {
  overflow-x: hidden;
}

/* ============================= */
/* 🔒 TONE LAB BASE (ISOLATED) */
/* ============================= */

#tone-lab {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #0e0e0e;
  color: #eaeaea;
  font-family: sans-serif;
}

#tone-lab * {
  box-sizing: border-box;
}

/* ============================= */
/* CONTAINER */
/* ============================= */

#tone-lab .tl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================= */
/* HERO (COMPACT) */
/* ============================= */

#tone-lab .tl-hero {
  padding: 40px 0 20px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at center, #101614 0%, #0b0f0e 70%);
  overflow: hidden;
}

#tone-lab .tl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#16332b 1px, transparent 1px),
    linear-gradient(90deg, #16332b 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.15;
}

#tone-lab .tl-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 40px;
  letter-spacing: 4px;
  color: #d7fff2;
}

#tone-lab .tl-sub {
  margin-top: 10px;
  color: #7fa89d;
  font-size: 14px;
}

/* ============================= */
/* NAV (COMPACT) */
/* ============================= */

#tone-lab .tl-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5,12,10,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #18362d;
}

#tone-lab .tl-nav-inner {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 0;
  flex-wrap: wrap;
}

#tone-lab .tl-nav a {
  color: #5c8579;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

#tone-lab .tl-nav a:hover {
  color: #00ff9c;
}

/* ============================= */
/* MAIN GRID (LAB UI) */
/* ============================= */

#tone-lab .tl-main {
  padding: 40px 0 60px;
}

#tone-lab .tl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================= */
/* CARDS */
/* ============================= */

#tone-lab .tl-card {
  background: linear-gradient(145deg, #101312, #0b0e0d);
  border: 1px solid #18362d;
  border-radius: 10px;
  padding: 18px;
  cursor: pointer;

  overflow: hidden;

  transition: all 0.3s ease;
}

#tone-lab .tl-card:hover {
  border-color: #00ff9c;
  transform: translateY(-2px);
}

/* ACTIVE CARD */

#tone-lab .tl-card.active {
  grid-column: span 3;
  z-index: 2;
  box-shadow: 0 0 40px rgba(0,255,156,0.14);
}

/* ============================= */
/* TYPOGRAPHY */
/* ============================= */

#tone-lab .tl-card h2 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #d7fff2;
}

#tone-lab .tl-card p {
  font-size: 12px;
  color: #9ab3ac;
  line-height: 1.5;
}

/* ============================= */
/* EXPAND SYSTEM */
/* ============================= */

#tone-lab .tl-card-expand {
  height: 0;
  opacity: 0;
  overflow: hidden;

  transition: height 0.35s ease, opacity 0.25s ease;
}

#tone-lab .tl-card.active .tl-card-expand {
  margin-top: 10px;
  opacity: 1;
}

/* HEADER LAYOUT */

#tone-lab .tl-card-header {
  position: relative;
  padding-right: 30px;
}

/* TOGGLE BASE */

#tone-lab .tl-toggle {
  position: absolute;
  top: 0;
  right: 0;

  width: 18px;
  height: 18px;
}

/* PLUS ICON */

#tone-lab .tl-toggle::before,
#tone-lab .tl-toggle::after {
  content: "";
  position: absolute;
  background: #5c8579;
  transition: all 0.3s ease;
}

/* horizontal line */

#tone-lab .tl-toggle::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* vertical line */

#tone-lab .tl-toggle::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* ACTIVE = MINUS */

#tone-lab .tl-card.active .tl-toggle::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}

/* hover effect */

#tone-lab .tl-card:hover .tl-toggle::before,
#tone-lab .tl-card:hover .tl-toggle::after {
  background: #00ff9c;
}

/* inactive cards hieman himmeämmäksi */

#tone-lab .tl-grid:has(.tl-card.active) .tl-card:not(.active) {
  opacity: 0.4;
  transform: scale(0.98);
}

/* active kortti korostuu */

#tone-lab .tl-card.active {
  opacity: 1;
  transform: scale(1);
}

#tone-lab .tl-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

#tone-lab .tl-card-expand {
  transition:
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}

#tone-lab .tl-card:active {
  transform: scale(0.98);
}

#tone-lab .tl-title {
  text-shadow: 0 0 20px rgba(0,255,156,0.18);
}

#tone-lab .tl-grid {
  align-items: stretch;
}

#tone-lab .tl-card-expand p {
  margin-bottom: 12px;
}

#tone-lab .tl-card-expand strong {
  color: #d7fff2;
}

#tone-lab .tl-card-expand hr {
  border: none;
  border-top: 1px solid #18362d;
  margin: 20px 0;
}

#tone-lab .tl-list {
  padding-left: 18px;
  margin: 10px 0 15px;
}

#tone-lab .tl-list li {
  margin-bottom: 6px;
  color: #a6beb7;
}

/* BLOCK SPACING */

#tone-lab .tl-block {
  margin-bottom: 20px;
}

/* LABEL */

#tone-lab .tl-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #4f7066;
  margin-bottom: 8px;
}

/* HIGHLIGHT */

#tone-lab .tl-highlight {
  background: #101514;
  border-left: 2px solid #00ff9c;
  padding: 12px 14px;
  border-radius: 6px;
}

#tone-lab .tl-highlight-soft {
  background: #101312;
  border: 1px solid #18362d;
  padding: 12px 14px;
  border-radius: 6px;
}

/* MINI GRID */

#tone-lab .tl-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

#tone-lab .tl-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* MINI CARD */

#tone-lab .tl-mini {
  background: #0f1110;
  border: 1px solid #18362d;
  border-radius: 6px;
  padding: 10px;
}

#tone-lab .tl-mini strong {
  display: block;
  font-size: 13px;
  color: #d7fff2;
}

#tone-lab .tl-mini span {
  font-size: 11px;
  color: #8ca8a0;
}

/* LIST */

#tone-lab .tl-list {
  padding-left: 16px;
}

#tone-lab .tl-list li {
  font-size: 12px;
  margin-bottom: 6px;
}

/* END EMPHASIS */

#tone-lab .tl-end strong {
  color: #00ff9c;
}

/* TONE COLORS */

#tone-lab .tl-tone-soft {
  border-color: #1d4035;
  background: linear-gradient(145deg, #111514, #0d100f);
}

#tone-lab .tl-tone-tight {
  border-color: #255142;
  background: linear-gradient(145deg, #121716, #0b0f0e);
}

/* NOTE TEXT */

#tone-lab .tl-note {
  font-size: 11px;
  color: #58796e;
  margin-top: 6px;
}

/* HOVER DEPTH */

#tone-lab .tl-mini {
  transition: all 0.2s ease;
}

#tone-lab .tl-mini:hover {
  border-color: #00ff9c;
  transform: translateY(-2px);
}

#tone-lab .tl-block .tl-mini {
  margin-bottom: 10px;
}

#tl-truth {
  display: none;
}

#tone-lab.tl-truth-mode .tl-grid,
#tone-lab.tl-truth-mode .tl-hero {
  opacity: 0.1;
  pointer-events: none;
}

#tone-lab.tl-truth-mode #tl-truth {
  display: flex;
  justify-content: center;
  align-items: center;
}

#tone-lab .tl-sub-soft {
  opacity: 0.7;
  font-size: 12px;
}

/* =====================================================
   TONE LAB MOBILE
===================================================== */

@media (max-width:1024px){

    #tone-lab .tl-grid{

        grid-template-columns:repeat(2,1fr);
        gap:16px;

    }


}