/* AgriPro — shared styles for GitHub Pages (support & privacy) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #1f2937;
  background: #f4f6f8;
}

a {
  color: #0d7a4f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 2rem 2.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.site-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.site-header .brand {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d7a4f;
  margin: 0 0 0.35rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #111827;
}

h2:first-of-type {
  margin-top: 0;
}

.subtitle,
.updated {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.lead {
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  color: #374151;
}

.prose p {
  margin: 0 0 1rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.prose p:last-child {
  margin-bottom: 0;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list .label {
  flex: 0 0 8.5rem;
  font-weight: 600;
  color: #374151;
}

.contact-list .value {
  flex: 1 1 12rem;
  min-width: 0;
  word-break: break-word;
}

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #166534;
  text-align: left;
}

.note strong {
  display: block;
  margin-bottom: 0.25rem;
}

.divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2.5rem 0;
}

.doc-section {
  margin-bottom: 0.25rem;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

.nav-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  .page {
    padding: 1.25rem 1rem 2rem;
  }

  .card {
    padding: 1.5rem 1.25rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .prose p {
    text-align: left;
    hyphens: none;
  }

  .contact-list li {
    flex-direction: column;
    gap: 0.2rem;
  }

  .contact-list .label {
    flex: none;
  }
}
