/* Shared by every page that renders the nav (loaded in catalogue/views/parts/nav.php),
   because the footer and the newsletter panel appear on pages without css/catalog.css
   (pro-developery/*). */

/* ============================================================
   INLINE FORM: one field + one button. The only style for the
   newsletter panel, the footer newsletter and the reading-page CTA
   (decisions.md 2026-11-10 "Čtení, část 5"). Field = demo modal
   field (rounded-lg, neutral-50, neutral-200); button = .nav-btn-solid.
   ============================================================ */
.ul-form-row { display: flex; flex-direction: column; gap: 0.5rem; }
@media (min-width: 640px) { .ul-form-row { flex-direction: row; } }
.ul-field {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center;
  min-height: 3rem; padding: 0 1rem;
  border: 1px solid #e5e5e5; border-radius: 0.5rem; background: #fafafa;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
@media (hover: hover) { .ul-field:hover { border-color: #d4d4d4; } }
.ul-field:focus-within { border-color: #0a0a0a; background: #fff; box-shadow: 0 0 0 3px rgb(10 10 10 / 0.08); }
.ul-field input {
  flex: 1 1 auto; min-width: 0; width: 100%;
  border: 0; outline: 0; background: transparent; padding: 0.6875rem 0;   /* field = 48 px with its border, like the button */
  font: inherit; font-size: 1rem; line-height: 1.5rem; color: #262626;   /* 16 px: iOS doesn't zoom */
}
.ul-field input::placeholder { color: #a3a3a3; }
.ul-field-prefix { flex: none; font-size: 1rem; line-height: 1.5rem; color: #737373; }
.ul-btn-solid {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.25rem;
  border: 0; border-radius: 0.5rem; background: #0a0a0a; color: #fff;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.ul-btn-solid svg { flex: none; transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) {
  .ul-btn-solid:hover { background: #262626; }
  .ul-btn-solid:hover svg { transform: translateX(3px); }
}
.ul-btn-solid:active { transform: scale(0.98); }
.ul-btn-solid:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; }
.ul-btn-solid:disabled { cursor: not-allowed; opacity: 0.6; }
/* reCAPTCHA v3 (newsletter): plovoucí odznak Googlu je skrytý, zmínku nese .ul-fine pod formulářem (formRecaptchaNote) */
.grecaptcha-badge { visibility: hidden; }
.ul-fine { font-size: 0.875rem; line-height: 1.25rem; color: #737373; text-wrap: pretty; }
@media (min-width: 640px) { .ul-fine { font-size: 0.8125rem; line-height: 1.25rem; } }
.ul-fine a, .ul-fine button { color: #404040; text-decoration: underline; text-decoration-color: #d4d4d4; text-underline-offset: 0.2em; }
@media (hover: hover) { .ul-fine a:hover, .ul-fine button:hover { color: #0a0a0a; text-decoration-color: currentColor; } }

/* Footer motto (catalogue/views/parts/footer.php): quiet but readable
   (neutral-500 on neutral-50 = 4.6 : 1), light weight, tight tracking. */
.footer-motto { font-size: 1.25rem; line-height: 1.75rem; font-weight: 400; letter-spacing: -0.025em; color: #737373; }

/* On a tinted surface (footer, neutral-50) the field is white, so it still reads as a field. */
.ul-field--on-tint { background: #fff; }

/* Reduced motion = opacity only: no press scale, no arrow slide. Lives here, not in
   page CSS, because this file loads after it (in nav.php) and would win. */
@media (prefers-reduced-motion: reduce) {
  .ul-btn-solid, .ul-btn-solid svg { transition: background-color 150ms ease; transform: none !important; }
}
