/* Shared action component. Native WordPress Button blocks use the same rules.
   Keep all action sizing and variants here; run npm run lint after changes. */
/* Login actions fill the narrow authentication panel. Password visibility
   remains a separate icon control with its native WordPress behaviour. */
body.login .submit .button-primary,
body.login #login .button-primary {
  float: none;
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid #2264c4;
  border-radius: 100px;
  background: #2264c4;
  color: #fff;
  font: 750 15px / 1.5 Manrope, system-ui, sans-serif;
  text-shadow: none;
  white-space: normal;
}
body.login .submit .button-primary:hover,
body.login #login .button-primary:hover {
  border-color: #184f9f;
  background: #184f9f;
}
body.login .button.wp-hide-pw {
  width: 44px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2264c4;
  transform: none;
}
/* The native password generator is an optional text control beneath Save,
   rather than a second primary action competing with form submission. */
body.login #resetpassform .button.wp-generate-pw {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 10px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2264c4;
  font: 650 14px / 1.5 Manrope, system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: none;
}
body.login #resetpassform .button.wp-generate-pw:hover {
  background: #eaf3f8;
  color: #184f9f;
}
/* The optional language selector is a compact secondary action. */
body.login .language-switcher .button {
  width: auto;
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid #8a9cab;
  border-radius: 8px;
  background: #fff;
  color: #142c47;
  font: 650 14px / 1.5 Manrope, system-ui, sans-serif;
  transform: none;
}
:root {
  --button-width: 192px;
  --button-height: 50px;
  --button-radius: 100px;
}
.button,
.wp-block-button__link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--button-width);
  max-width: 100%;
  min-height: var(--button-height);
  padding: 13px 16px;
  border: 1px solid var(--brand);
  border-radius: var(--button-radius);
  background: var(--brand);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover,
.wp-block-button__link:hover {
  background: #184f9f;
  border-color: #184f9f;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.button-outline,
.wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent;
  border: 1px solid #a5b8c3;
  padding: 13px 16px;
  color: var(--ink);
}
.button-outline:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
  background: var(--mist);
  border-color: var(--ink);
  color: var(--ink);
}
.button-light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.button-light:hover {
  background: var(--mist);
  border-color: var(--mist);
  color: var(--ink);
}
.wp-block-buttons {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}
.wp-block-button {
  display: flex;
  width: var(--button-width);
  max-width: 100%;
  margin: 0;
}
.wp-block-button > .wp-block-button__link {
  width: 100%;
}
.hero-copy .wp-block-buttons {
  margin-top: 0;
}
.cta-band > .wp-block-buttons,
.aside-card .wp-block-buttons {
  flex-direction: column;
  flex-shrink: 0;
  margin: 0;
}
/* Full-width actions in narrow sidebars are intentional layout exceptions. */
.aside-card .wp-block-button,
.aside-card .wp-block-button__link {
  width: 100%;
}
/* The article support card uses equal full-width actions beside opening text. */
.journal-support .wp-block-buttons {
  flex-direction: column;
  margin-top: 24px;
}
.journal-support .button {
  width: 100%;
}
/* Listing contact panels keep both actions aligned to the panel width. */
.home-listing-contact .wp-block-buttons {
  flex-direction: column;
  margin-top: 24px;
}
.home-listing-contact .wp-block-button,
.home-listing-contact .wp-block-button__link {
  width: 100%;
}
/* Search shares the component, but its short label should not crowd the input. */
.journal-search .button {
  width: auto;
  flex-shrink: 0;
}
/* Navigation needs a compact action beside its text links, rather than the
   fixed width used for content actions. Keep a comfortable touch target. */
.button.nav-cta {
  width: auto;
  min-height: 44px;
  padding: 10px 18px;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  /* Checklist download and print actions stack at full width on phones. */
  .viewing-actions { flex-direction: column; align-items: stretch; }
  .viewing-actions .button { width: 100%; }
  /* Form submissions fill the phone card, matching its input controls. */
  .fpc-form .form-finish > .button {
    width: 100%;
  }
  .wp-block-buttons,
  .planner-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .wp-block-button,
  .wp-block-button__link,
  .wp-block-buttons > .button,
  .planner-actions .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button,
  .wp-block-button__link {
    transition: none;
  }
}
/* Property interest cards keep their native action aligned at the card foot. */
.home-card-body > .wp-block-buttons { margin-top: auto; }

/* Homepage cards share the standard action width and align at their foot. */
.pathway > .wp-block-buttons {
  margin-top: auto;
  width: 100%;
}

/* Visible news search integrates a compact submit inside its field group. */
.journal-search-compact .button {
  min-height: 44px;
  padding: 10px 16px;
}

.journal-search-compact .button:hover {
  transform: none;
}

/* The native CV picker is content-sized so its selected filename stays visible. */
.cv-upload-input::file-selector-button {
  min-height: var(--button-height);
  margin-inline-end: 16px;
  padding: 12px 20px;
  border: 1px solid var(--brand);
  border-radius: var(--button-radius);
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.cv-upload-input::file-selector-button:hover {
  border-color: #184f9f;
  background: #184f9f;
}
/* The optional site assistant uses compact controls inside its narrow panel.
   Task choices fill their grid cell; the composer send action is content-sized.
   Its launcher stays compact on phones so it does not cover page content. */
.fpc-assistant .button.fpc-assistant-launcher {
  width: auto;
  min-height: 62px;
  gap: 11px;
  padding: 9px 18px 9px 10px;
  border: 1px solid #c9dfe6;
  border-radius: 24px;
  background: #fff;
  color: #142c47;
  box-shadow: 0 5px 24px rgb(20 44 71 / 14%), 0 1px 3px rgb(20 44 71 / 6%);
  font-size: 14px;
  transform: none;
}
.fpc-assistant .button.fpc-assistant-launcher:hover {
  border-color: #80b9c7;
  background: #f6fbfb;
  box-shadow: 0 7px 28px rgb(20 44 71 / 17%);
}
.fpc-assistant .fpc-assistant-launcher-label strong {
  font-size: 14px;
  font-weight: 750;
}
.fpc-assistant .fpc-assistant-launcher-label > span {
  color: #536473;
  font-size: 11px;
  font-weight: 500;
}
.fpc-assistant .fpc-assistant-launcher-short {
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}
/* A small labelled launcher leaves phone page actions visible and reachable. */
@media (width <= 600px) {
  .fpc-assistant .button.fpc-assistant-launcher {
    width: 64px;
    min-height: 64px;
    flex-direction: column;
    gap: 2px;
    padding: 5px;
    border-radius: 22px;
  }
}
.fpc-assistant .button.fpc-assistant-choice {
  width: 100%;
  min-height: 80px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dbe6e9;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
  transform: none;
}
.fpc-assistant .button.fpc-assistant-choice:hover {
  border-color: #89bdc6;
  background: #f1f9f8;
}
.fpc-assistant .button.fpc-assistant-send {
  width: auto;
  min-width: 64px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 13px;
  font-size: 13px;
  transform: none;
}
.fpc-assistant .button.fpc-assistant-callback-send {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  transform: none;
}
/* The small greeting has one full-width action inside its bounded surface. */
.fpc-assistant .button.fpc-assistant-teaser-open {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 14px;
  transform: none;
}
/* The first-use notice has one full-width action inside the narrow chat window. */
.fpc-assistant .button.fpc-assistant-start {
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  border-radius: 12px;
  transform: none;
}
/* Popover controls use full rows for clear keyboard and touch targets. */
.fpc-assistant .fpc-assistant-options .button.fpc-assistant-text-control {
  width: 100%;
  justify-content: flex-start;
  padding-inline: 10px;
  font-size: 13px;
  text-align: left;
}
/* Close, reset and back are text controls, visually distinct from task actions. */
.fpc-assistant .button.fpc-assistant-text-control {
  width: auto;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #142c47;
  font-size: 12px;
  font-weight: 650;
  transform: none;
}
.fpc-assistant .button.fpc-assistant-text-control:hover {
  background: rgb(20 44 71 / 7%);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* The close icon and conversation feedback retain full keyboard/touch targets. */
.fpc-assistant .button.fpc-assistant-close {
  width: 44px;
  min-width: 44px;
  padding: 10px;
}
.fpc-assistant .button.fpc-assistant-feedback-control {
  min-height: 44px;
  padding: 6px 8px;
  color: #35556d;
  font-size: 11px;
}
/* Cooldown and verification disable chat actions while keeping their state clear. */
.fpc-assistant .button:disabled,
.fpc-assistant .button:disabled:hover {
  border-color: #dce4e7;
  background: #e4ebee;
  color: #536473;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
/* Very narrow chat panels prioritise readable task labels over optional icons. */
@media (width <= 359px) {
  .fpc-assistant .button.fpc-assistant-choice {
    min-height: 56px;
    justify-content: center;
    padding: 10px;
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .cv-upload-input::file-selector-button {
    margin-inline-end: 10px;
    padding-inline: 16px;
  }
}
