/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Base */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
}

/* Navigation */
nav {
  background: #fff;
  padding: 15px 20px;
  margin: -20px -20px 30px;
  border-bottom: 1px solid #e0e0e0;
}

nav a {
  color: #555;
  text-decoration: none;
  margin-right: 10px;
}

nav a:hover {
  color: #0066cc;
}

/* Typography */
h1 {
  color: #222;
  margin-bottom: 20px;
}

h2 {
  margin-bottom: 10px;
}

h2 a {
  color: #333;
  text-decoration: none;
}

h2 a:hover {
  color: #0066cc;
}

/* Links */
a {
  color: #0066cc;
}

a:hover {
  text-decoration: underline;
}

/* Articles */
article {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

article p {
  color: #666;
  margin: 10px 0;
}

hr {
  display: none;
}

/* Forms */
form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

form div {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
  color: #333;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #0066cc;
}

textarea {
  min-height: 200px;
  resize: vertical;
}

input[type="submit"] {
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background: #0052a3;
}

/* Buttons */
button {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #c82333;
}

/* Notices */
p:first-of-type:has(+ article),
main>p:first-child {
  background: #d4edda;
  color: #155724;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* Error messages */
ul {
  color: #dc3545;
  margin-left: 20px;
}