/* Lightweight foundation for new modular BeingOptimist tools. */
.bo-tool-page {
  --bo-brand-blue: #0878f9;
  --bo-brand-blue-dark: #075ab8;
  --bo-navy: #10213a;
  --bo-text: #29384d;
  --bo-line: #dfe7f1;
  min-height: 70vh;
  padding: 40px 20px 64px;
  background: linear-gradient(145deg, #f0f8ff, #edf9f6 55%, #f7f3ff);
}

.bo-tool-page *,
.bo-tool-page *::before,
.bo-tool-page *::after {
  box-sizing: border-box;
}

.bo-tool-container {
  width: min(100%, 720px);
  margin: 0 auto;
}

.bo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  color: #667085;
  font-size: 0.82rem;
}

.bo-breadcrumb a {
  color: var(--bo-brand-blue);
  text-decoration: none;
}

.bo-tool-header-block {
  margin-bottom: 28px;
  text-align: center;
}

.bo-tool-cat-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e8f3ff;
  color: var(--bo-brand-blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.bo-tool-title {
  margin: 0;
  color: var(--bo-navy);
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.15;
}

.bo-tool-subtitle {
  max-width: 620px;
  margin: 14px auto 0;
  color: #526176;
  line-height: 1.7;
}

.bo-form-card {
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid rgba(8, 120, 249, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16, 33, 58, 0.09);
}

.bo-tool-form {
  display: grid;
  gap: 12px;
}

.bo-tool-form h2 {
  margin: 0 0 8px;
  color: var(--bo-navy);
  font-size: 1.15rem;
}

.bo-tool-form label {
  color: var(--bo-text);
  font-weight: 700;
}

.bo-tool-form input,
.bo-tool-form select,
.bo-tool-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--bo-line);
  border-radius: 9px;
  background: #f9fbfd;
  color: var(--bo-navy);
  font: inherit;
}

.bo-tool-form input:focus-visible,
.bo-tool-form select:focus-visible,
.bo-tool-form textarea:focus-visible,
.bo-tool-page button:focus-visible,
.bo-tool-page a:focus-visible {
  outline: 3px solid rgba(8, 120, 249, 0.28);
  outline-offset: 2px;
}

.bo-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.bo-tool-result {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #b9dafd;
  border-radius: 12px;
  background: #f1f7ff;
  color: var(--bo-navy);
}

.bo-tool-privacy {
  margin: 16px 0 0;
  padding: 12px 15px;
  border: 1px solid #9be7bd;
  border-radius: 10px;
  background: #effcf5;
  color: #17633a;
  font-size: 0.86rem;
}

.bo-tool-faq,
.bo-related-tools {
  margin-top: 42px;
}

.bo-tool-faq h2,
.bo-related-tools h2 {
  color: var(--bo-navy);
}

.bo-tool-faq details {
  padding: 14px 0;
  border-bottom: 1px solid var(--bo-line);
}

.bo-tool-faq summary {
  color: var(--bo-navy);
  font-weight: 700;
  cursor: pointer;
}

.bo-related-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.bo-related-tools-grid a {
  display: block;
  min-height: 48px;
  padding: 13px;
  border: 1px solid var(--bo-line);
  border-radius: 10px;
  background: #fff;
  color: var(--bo-brand-blue-dark);
  text-decoration: none;
}

@media (max-width: 600px) {
  .bo-tool-page {
    padding: 28px 14px 48px;
  }

  .bo-related-tools-grid {
    grid-template-columns: 1fr;
  }

  .bo-btn-row > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bo-tool-page *,
  .bo-tool-page *::before,
  .bo-tool-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
