/* HUAN SPA | Responsive and contrast corrections | 2026-10-31
   Additive override, loaded after existing theme files.
   Scoped to documented layout defects; does not alter booking behavior. */

/* Frontend: original no-wrap headings cannot fit the smallest screens.
   Keep desktop/tablet editorial line setting unchanged. */
@media (max-width: 760px) {
  .huan .directory-page-new .page-heading > div {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .huan .directory-page-new .page-heading h1 { max-width: 100%; }
  .huan .directory-page-new .page-heading .type-line {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* minmax(0,1fr) is essential when an article title has a long word.
     The typesetter adds .is-typeset {white-space:nowrap}; undo it here. */
  .huan .journal-grid { grid-template-columns: minmax(0, 1fr); }
  .huan .journal-card { min-width: 0; }
  .huan .journal-card h2[data-typeset] {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Admin: edit text originally inherits a forest green on dark emerald. */
.admin-body .admin-category-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(230, 210, 172, .40);
  border-radius: 9px;
  background: rgba(230, 210, 172, .10);
  cursor: pointer;
}
.admin-body .admin-category-actions button:not(.danger) { color: #f6f0e6; }
.admin-body .admin-category-actions button.danger { color: #ffc0b6; }
.admin-body .admin-category-actions button:hover {
  background: rgba(230, 210, 172, .19);
  border-color: rgba(230, 210, 172, .72);
}

/* Admin touch zones: retain existing color scheme and flex wrapping. */
@media (max-width: 900px) {
  .admin-body .admin-row-actions > a,
  .admin-body .admin-row-actions button,
  .admin-body .admin-reservation-actions > a,
  .admin-body .admin-reservation-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 9px;
    background: rgba(240, 220, 182, .08);
    white-space: nowrap;
  }
  .admin-body .admin-reservation-scopes a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
}
