/* Lisibilité commune du contenu uniquement. Le bandeau et les navigations
   gardent leurs styles. Les WOFF2 embarquées offrent 400 et 700, sans synthèse. */
#contenu {
  --muted: #40533b;
  --text-secondary: .875rem;
  --text-caption: .8125rem;
  color: var(--ink);
  font-size: 1rem;
}
#contenu :where(h1) { font-size: clamp(24px, 2.2vw, 28px); font-weight: 700; }
#contenu :where(h2, .card-heading h2, .dashboard-quick h2, .work-group h2,
  .botanical-panel > summary, .harvest-panel > summary, .harvest-section-heading) {
  font-size: 1.1875rem;
  font-weight: 700;
}
#contenu :where(h3) { font-size: 1.0625rem; font-weight: 700; }
#contenu :where(p, .prose, .work-prose, .procedure-steps, .history-note) {
  font-size: 1rem;
  font-weight: 400;
}
#contenu :where(input, select, textarea) { font-size: 1rem; }
#contenu :where(.plant-name, .annual-plant strong, .work-plant > strong,
  .work-plant > a, .harvest-plant-name > strong) {
  font-size: 1rem;
  font-weight: 700;
}
#contenu :where(small, .card-caption, .calendar-range, .calendar-detail-hint,
  .calendar-legend, .calendar-hint, .demo-notice, .work-reference-date,
  .work-record-identity, .realisation-help, .realisation-editor small,
  .annual-observation-indicator, .annual-save-status, .harvest-muted,
  .harvest-total-help, .harvest-intro, .harvest-metrics span,
  .needs-grid > div, .plant-badges, .plant-photographs figcaption) {
  font-size: var(--text-caption);
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}
#contenu :where(.task-copy small, .work-period, .work-operation, .work-state,
  .work-advancement, .harvest-event, .harvest-plant-total, .harvest-year label,
  .annual-help, .annual-read-observation, .annual-read-observation summary) {
  font-size: var(--text-secondary);
  line-height: 1.45;
}
#contenu :where(.work-state, .task-state, .harvest-year label, .calendar-range,
  .annual-save-status, .calendar-legend, .card-caption, .task-copy small,
  .work-period, .work-operation) { font-weight: 700; }
#contenu :where(.task-copy a) { font-size: .9375rem; line-height: 1.4; }
#contenu :where(.task-copy strong) { font-weight: 700; }
#contenu :where(.month-category strong) { font-size: 1rem; font-weight: 700; }
#contenu :where(.month-category > span) { font-size: .875rem; }
#contenu :where(.garden-calendar) { font-size: .8125rem; }
#contenu :where(.garden-calendar th, .garden-calendar tbody th a) {
  font-size: .875rem;
  color: #243f23;
  font-weight: 700;
}
#contenu :where(.garden-calendar th small, .calendar-table, .calendar-table tbody th) {
  font-size: .8125rem;
  font-weight: 400;
  color: #30482e;
}
#contenu :where(.daily-saint) { font-size: 1.0625rem; font-weight: 700; color: #173b22; }
#contenu :where(.daily-saying) {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.5;
  color: #203627;
}
#contenu :where(.explanation) { font-size: .9375rem; line-height: 1.5; color: #30432c; }

/* Même traitement que « Voir toutes les tâches » pour les commandes de
   navigation identifiées, sans changer leur nature <a> ni leurs URL. */
#contenu :where(.garden-soft-button, .card-footer-link, .action-link,
  .work-back, .work-current-links a, .realisation-detailed, .back-link,
  .plant-route a, .harvest-record-links a, .catalogue-heading > a:not(.button),
  .work-detail-heading > a, .work-records > li > a, .realisation-notice > a,
  .button.secondary:not(.danger)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid #a6b57b;
  border-radius: 10px;
  background: #e2e8bd;
  color: #233f21;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#contenu :where(.button) { font-size: .9375rem; font-weight: 700; }
#contenu :where(.garden-soft-button, .card-footer-link, .action-link,
  .work-back, .work-current-links a, .realisation-detailed, .back-link,
  .plant-route a, .harvest-record-links a, .catalogue-heading > a:not(.button),
  .work-detail-heading > a, .work-records > li > a, .realisation-notice > a,
  .button.secondary:not(.danger)):hover {
  background: #d3dfa8;
  border-color: #67824f;
}
#contenu :where(a, button:not(.pb-help-button), summary, input, select, textarea):focus-visible {
  outline: 3px solid #16698e;
  outline-offset: 3px;
}
#contenu :where(p a:not(.button):not(.garden-soft-button):not(.card-footer-link),
  .annual-fiche-link, .catalogue-tools a, .admin-table a:not(.button)) {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
}
#contenu :where(.card-footer-link) { display: flex; width: fit-content; margin: 10px auto 14px; }
#contenu .dashboard-task[data-status="en_retard"] .task-state { color: #8c3527; }
#contenu :where(.plant-route, .harvest-record-links) { flex-wrap: wrap; gap: 8px; }
#contenu :where(.annual-fiche-link) { font-size: .875rem; }
#contenu :where(.garden-soft-button[hidden]) { display: none; }
@media (max-width: 700px) {
  #contenu :where(.card-heading h2, .dashboard-quick h2) { font-size: 1.125rem; }
  #contenu :where(.month-category strong) { font-size: .875rem; }
  #contenu :where(.calendar-range) { font-size: .8125rem; }
  #contenu :where(.garden-calendar tbody th a) { font-size: .875rem; }
  #contenu :where(.garden-calendar tbody th small) { font-size: .8125rem; }
  #contenu :where(.daily-saying) { font-size: .9375rem; }
  #contenu :where(.task-copy a) { font-size: .9375rem; }
}
