/* ===== TOOL VIEWER (single page) ===== */
.tool-viewer-wrapper {
  max-width: 1100px;
  margin: 5rem auto 4rem;
  padding: 0 1.5rem;
}

.iframe-container {
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-glass);
  height: 85vh; /* Lock height on desktop to prevent CLS */
  display: flex;
  flex-direction: column;
}

.iframe-container iframe {
  display: block;
  width: 100%; 
  height: 100%; /* Take full container height */
  border: none;
}

@media (max-width: 767px) {
  .iframe-container {
    height: 80vh; /* Lock height on mobile to prevent CLS */
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
  }
}

/* Back link for single page */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.45rem 0.875rem;
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
}

.back-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* entry header for single */
.entry-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  background: var(--gradient-hero);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.entry-excerpt { color: var(--text-secondary); font-size: 1.05rem; }

.entry-content {
  margin-top: 3rem;
  background: var(--surface-glass);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
}
.entry-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.entry-content p { color: var(--text-secondary); line-height: 1.8; }
