/* CueClass site — themes.html: one full-width section per theme, each dressed by themes.css /
   themes-decor.css (the same takeover the home carousel uses). Every word sits on a solid name plate. */

.th-sec {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 120px);
}

.th-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58fr 42fr;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.th-sec:nth-of-type(odd) .th-frame {
  order: 2;
}

/* the screen: reuses the carousel's themed frame, without the carousel's scaling */
.th-frame.tc-slide {
  transform: none;
  flex: none;
}

.th-frame .screen {
  margin: 0;
}

.th-frame .screen-bezel {
  overflow: hidden;
}

.th-frame .screen-glass {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1b1f27;
}

.th-frame .screen-glass img,
.th-frame .screen-glass video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-frame .screen-glass video {
  opacity: 0;
  transition: opacity 300ms linear;
}

.th-frame .screen-glass.is-playing video {
  opacity: 1;
}

/* name plate: solid, on every theme */
.th-plate {
  padding: 22px 26px;
  border-radius: 16px;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.35);
}

.th-plate h2 {
  margin: 0 0 6px;
  font-family: var(--sv-cjk);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: #0f172a;
}

.th-plate p {
  margin: 0;
  font-family: var(--sv-cjk);
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: #334155;
}

.th-plate .th-no {
  margin-bottom: 8px;
  font-family: var(--sv-latin);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #475569;
}

/* each theme's own edge on the plate */
.th-sec[data-theme="halftone-comic"] .th-plate {
  border: 2px solid #111;
  box-shadow: 5px 5px 0 #111;
}

.th-sec[data-theme="pop-collage"] .th-plate {
  border: 2px solid #111;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px #111, 6px 6px 0 7px #111;
  border-radius: 4px;
}

.th-sec[data-theme="pixel-sky"] .th-plate {
  border: 0;
  border-radius: 0;
  box-shadow: 0 -4px 0 #fff, 0 4px 0 #fff, -4px 0 0 #fff, 4px 0 0 #fff, 6px 6px 0 rgba(12, 28, 56, 0.25);
}

.th-sec[data-theme="paper-parade"] .th-plate {
  border: 2px solid #1a1a1a;
  border-radius: 18px 14px 20px 12px;
}

.th-sec[data-theme="soft-glass"] .th-plate {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.92);
}

.th-second {
  margin: 20px 0 0;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12), 0 20px 40px -24px rgba(15, 23, 42, 0.4);
}

.th-sec[data-theme="halftone-comic"] .th-second,
.th-sec[data-theme="pop-collage"] .th-second {
  border: 2px solid #111;
  box-shadow: 4px 4px 0 #111;
}

.th-second img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 959px) {
  .th-grid {
    grid-template-columns: 1fr;
  }

  .th-sec:nth-of-type(odd) .th-frame {
    order: 0;
  }

  .th-plate {
    padding: 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .th-frame .screen-glass video {
    transition: none;
  }
}
