body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  max-width: 800px;
  margin: auto;
  padding: 2rem;
}

h1, h2 {
  color: #788300;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav img {
  height: 32px;
}

nav a {
  text-decoration: none;
  color: #788300;
  font-weight: 500;
}

input[type="text"] {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  margin-top: 1rem;
}

button {
  background-color: #788300;
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  margin-top: 1rem;
  cursor: pointer;
}

button:hover {
  background-color: #6d7700;
}

pre {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 1rem;
  white-space: pre-wrap;
  border-radius: 6px;
  margin-top: 1.5rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}


.logo {
  height: 40px;
}

.articles-list ul {
  list-style: none;
  padding: 0;
}

.articles-list li {
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.article-meta {
  color: #888;
  font-size: 0.9em;
}

.popular-letters ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.popular-letters li button {
  background-color: #32a852; /* Strong green */
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.popular-letters li button:hover {
  background-color: #288d46; /* Slightly darker on hover */
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.popular-letters li button:active {
  background-color: #1e7339;
}

.letter-toolbar {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
}

.letter-toolbar button {
  font-size: 1.4rem;
  padding: 0.5rem 0.75rem;
  border: none;
  background: #f4f4f4;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.letter-toolbar button:hover {
  background: #e0e0e0;
}

.status-msg {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.auth-form {
  max-width: 400px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form input {
  padding: 0.5rem;
  font-size: 1rem;
}

.error {
  color: red;
  font-weight: bold;
  text-align: center;
}

.user-info {
  margin-left: 1rem;
  font-weight: bold;
}

.ah-btn-link {
  background: none;
  border: none;
  color: #007BFF;
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
  font-size: 1rem;
}


.clarify-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.clarify-heading {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
}

.original-input {
  background-color: #f9f9f9;
  border-left: 4px solid #007bff;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.question-block {
  margin-bottom: 1.5rem;
}

.question-block label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
}

.ah-btn.full-width {
  width: 100%;
  padding: 0.75rem;
  font-size: 1.1rem;
}

.progress-indicator {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background: #f0f0f0;
  border-radius: 6px;
  color: #666;
}

.progress-indicator .step {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0;
  border-bottom: 3px solid #ccc;
}

.progress-indicator .step.active {
  font-weight: bold;
  border-color: #007bff;
  color: #007bff;
}

.clarify-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.ah-btn-secondary {
  background: #ddd;
  color: #333;
}

.ah-btn-secondary {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
}

.ah-btn-secondary:hover {
  background-color: #eaeaea;
  color: #000;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.2rem;
}

.nav-links a, .nav-links .user-info {
  display: flex;
  align-items: center;
  color:#788300;
  text-decoration: none;
}

.draft-options {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.draft-options label {
  font-weight: 500;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.admin-table th, .admin-table td {
  border: 1px solid #ddd;
  padding: 8px;
}
.ah-btn-small {
  font-size: 0.85rem;
  padding: 4px 8px;
  margin-right: 4px;
}
.ah-btn-danger {
  background-color: #c0392b;
  color: white;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-control {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.success-message,
.error-message {
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  font-weight: bold;
}

.success-message {
  background-color: #e6ffed;
  color: #256029;
  border: 1px solid #a5d6a7;
}

.error-message {
  background-color: #ffe6e6;
  color: #a94442;
  border: 1px solid #e0b4b4;
}


/* Default desktop styles already exist... */

/* --- Mobile-friendly styles --- */
@media (max-width: 768px) {

/* Mobile nav improvements */


/* Make sure links are easily tappable */
.mobile-nav a:hover,
.mobile-nav a:focus {
  background-color: #f0f0f0;
}


   .nav-links {
    font-size: 1.4rem;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .nav-links a, .nav-links .user-info {
    padding: 0.4rem;
  }

  .user-info {
    font-size: 1rem;
  }
   


      
body {
    padding: 10px;
    font-size: 16px;
  }
/*
  header, footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
*/
  

  form textarea,
  form input[type="text"] {
    width: 100%;
    font-size: 16px;
  }

  .letter-output {
    padding: 10px;
    font-size: 16px;
    overflow-x: auto;
  }

  .drafts-list li {
    font-size: 16px;
    padding: 8px 0;
  }

  .editor-container {
    padding: 0;
    width: 100%;
  }

  button, .btn {
    width: 100%;
    margin-bottom: 10px;
    font-size: 16px;
  }
}


