/* Diary tool additions (styles not already in the migrated theme stylesheet). */

/* The migrated stylesheet sets display:flex on .settings-overlay / .stat-card,
   which would beat the UA's [hidden] rule (equal specificity, later source).
   Enforce hidden everywhere the tool relies on it. */
[hidden] { display: none !important; }


.msj-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  background: rgba(20, 30, 25, 0.92);
  color: #f7f3e8;
  font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  max-width: min(420px, calc(100vw - 32px));
  text-align: center;
  z-index: 1200;
}

/* Focus mode: keep only the chalkboard text on screen. */
body.msj-focus-mode .header,
body.msj-focus-mode .footer,
body.msj-focus-mode .website-intro,
body.msj-focus-mode .settings-button {
  display: none !important;
}

.msj-app-in-focus .date-login-section,
.msj-app-in-focus .stats,
.msj-app-in-focus .mode-buttons,
.msj-app-in-focus .action-buttons-container,
.msj-app-in-focus .week-stats,
.msj-app-in-focus .statistics-container,
.msj-app-in-focus .tips {
  display: none;
}

.exit-focus-button {
  display: block;
  margin: 24px auto 0;
  padding: 12px 28px;
  font-size: 16px;
  font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
  background: #2ecc71;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.exit-focus-button:hover {
  background: #27ae60;
}

/* Homepage content sections rendered around the tool. */
.home-section {
  margin-top: 48px;
  padding-top: 8px;
}

.home-section h2 {
  font-size: 28px;
  color: #2c3e50;
  margin: 0 0 16px;
}

.home-section p {
  max-width: 70ch;
  line-height: 1.7;
  color: #34495e;
  font-size: 16px;
  margin: 0 0 14px;
}

.home-feature-list {
  max-width: 70ch;
  line-height: 1.7;
  color: #34495e;
  font-size: 16px;
  padding-left: 20px;
}

.home-feature-list li {
  margin-bottom: 10px;
}

.faq-list {
  max-width: 74ch;
}

.faq-item {
  margin-bottom: 18px;
}

.faq-question {
  font-size: 18px;
  color: #2c3e50;
  margin: 0 0 6px;
}

.faq-answer {
  color: #34495e;
  line-height: 1.7;
  margin: 0;
}

.gf-404-board {
  padding: 48px 24px;
}

@media (max-width: 640px) {
  .home-section h2 {
    font-size: 22px;
  }
}
