/* Account pages use the site header in document flow, without a hero overlay. */
body.wild-account-page #header.header-default {
  position: relative !important;
  inset: auto !important;
  margin: 0 !important;
  transform: none !important;
  height: auto !important;
  background: #344c40 !important;
}
body.wild-account-page #header.header-default > div:not(.topbar),
body.wild-account-page #header.header-default .header-main {
  position: relative !important;
  inset: auto !important;
  background: transparent !important;
}
body.wild-account-page .wild-account-shell .wild-account-main {
  margin: 0 !important;
  padding: clamp(24px, 4vw, 56px) 0 !important;
  min-height: 55vh;
  background: #f5f7f4;
}
.wild-account-banner {
  padding: 16px 12px 0;
  background: #f5f7f4;
}
.wild-account-banner img {
  display: block;
  width: 800px;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}
.wild-account-panel {
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(20px, 4vw, 44px);
  background: #fff;
  border: 1px solid #dce4db;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgb(34 55 40 / 6%);
}
.wild-account-panel:has(.user-login-form, .user-pass, .user-register-form, .user-logout-confirm) {
  max-width: 720px;
}
.wild-account-panel #page-main-content,
.wild-account-panel .content-main,
.wild-account-panel .main-content-inner {
  width: 100%;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.wild-account-panel h1,
.wild-account-panel h2 { color: #294735; line-height: 1.4; }
.wild-account-panel h1 { margin-block: 0 24px; }
.wild-account-panel form { max-width: 100%; }
.wild-account-panel .form-item { margin-block: 0 22px; }
.wild-account-panel label { display: block; margin-bottom: 7px; font-weight: 600; }
.wild-account-panel input:not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='hidden']):not([type='file']),
.wild-account-panel select,
.wild-account-panel textarea {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #24382a;
  background: #fff;
  border: 1px solid #acbbaa;
  border-radius: 6px;
  box-sizing: border-box;
}
.wild-account-panel input[type='email'],
.wild-account-panel input[type='password'] { direction: ltr; text-align: start; }
.wild-account-panel input[type='checkbox'] + label,
.wild-account-panel input[type='radio'] + label { display: inline; }
.wild-account-panel .description { color: #546153; font-size: .9em; line-height: 1.6; margin-top: 6px; }
.wild-account-panel .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.wild-account-panel .form-actions input[type='submit'],
.wild-account-panel .form-actions button {
  min-height: 44px;
  padding: 10px 26px;
  background: #355c40;
  border: 1px solid #355c40;
  border-radius: 6px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}
.wild-account-panel .form-actions input[type='submit']:hover,
.wild-account-panel .form-actions button:hover { background: #24452e; }
.wild-account-panel :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #b08b32; outline-offset: 3px; }
.wild-account-panel .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 0 24px; }
.wild-account-panel .tabs a { display: block; padding: 10px 14px; }
.wild-account-panel .tabs a.is-active { color: #294735; background: #edf3eb; }
.wild-user-profile { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.wild-user-profile:not(:has(.wild-user-listings)) { grid-template-columns: 1fr; }
.wild-user-details { padding: 24px; background: #f5f7f4; border: 1px solid #dce4db; border-radius: 8px; overflow-wrap: anywhere; }
.wild-user-picture { margin-bottom: 20px; }
.wild-user-picture img { display: block; width: 104px; height: 104px; object-fit: cover; border-radius: 50%; margin-inline: auto; }
.wild-user-name { text-align: center; font-weight: 600; margin-bottom: 16px; }
.wild-user-listings { min-width: 0; }
.wild-account-help, .wild-account-messages { max-width: 1040px; margin: 0 auto 20px; }
@media (max-width: 767px) {
  .wild-user-profile { grid-template-columns: 1fr; }
  .wild-account-panel { padding: 20px 16px; }
  .wild-account-main > .container { padding-inline: 12px; }
  .wild-account-panel .password-strength,
  .wild-account-panel .password-confirm { width: 100%; max-width: 100%; }
}
.wild-profile-contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.wild-profile-contacts h3 { width: 100%; font-size: 20px; margin: 0 0 8px; }
.wild-profile-contacts .wild-contact-link { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1px solid #dce4db; border-radius: 10px; background: white; color: #294735; min-width: 84px; text-decoration: none; }
.wild-contact-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #355c40; color: white; font: bold 22px/1 sans-serif; direction: ltr; }
.wild-contact-facebook .wild-contact-icon { background: #1877f2; }
.wild-contact-whatsapp .wild-contact-icon { background: #167b41; font-size: 16px; }
.wild-contact-linkedin .wild-contact-icon { background: #0a66c2; }
.wild-contact-email .wild-contact-icon { background: #176798; }
.wild-account-panel details#wild-contact, .wild-account-panel details[id^="edit-wild-contact"] { padding: 18px; border: 1px solid #dce4db; border-radius: 8px; }
.wild-profile-contacts [aria-disabled="true"] { opacity: .6; cursor: default; }
.wild-account-panel details, .wild-account-panel fieldset { min-width: 0; max-width: 100%; }
.wild-account-panel input[type="file"] { max-width: 100%; }
.wild-account-panel .form-item, .wild-account-panel .description { overflow-wrap: anywhere; }

/* Readable account navigation and headings on phones. */
@media (max-width: 767px) {
  .wild-account-panel .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 0 12px;
  }
  .wild-account-panel .tabs::before,
  .wild-account-panel .tabs::after { content: none; }
  .wild-account-panel .tabs > li {
    float: none;
    min-width: 0;
    margin: 0;
  }
  .wild-account-panel .tabs > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 8px;
    border: 1px solid #dce4db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    text-transform: none;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .wild-account-panel h1 { font-size: 28px; }
  .wild-account-panel .wild-user-profile h2 { font-size: 24px; }
  .wild-account-panel .wild-user-profile h3,
  .wild-account-panel .wild-user-name { font-size: 21px; }
}

/* Account identity sits between the site navigation and the account tabs. */
.wild-account-main .wild-account-name {
  margin: 0 auto 20px;
  max-width: 1040px;
  text-align: center;
  color: #294735;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.4;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Compact profile rhythm; authentication and editing forms retain their layout. */
body.wild-account-page.wild-profile-page .wild-account-panel {
  padding: 16px;
}
body.wild-profile-page .wild-account-panel .block {
  margin-bottom: 16px;
}
body.wild-profile-page .wild-account-panel .block:last-child {
  margin-bottom: 0;
}
body.wild-profile-page .wild-account-panel .tabs {
  margin: 0 0 16px;
  padding-block: 0;
}
body.wild-profile-page .wild-user-profile {
  gap: 16px;
}
body.wild-profile-page .wild-user-details {
  padding: 16px;
}
body.wild-profile-page .wild-user-picture {
  margin-bottom: 12px;
}
body.wild-profile-page .wild-user-picture .field {
  margin: 0;
}
body.wild-profile-page .wild-user-name {
  margin: 0;
  font-size: 22px;
  text-align: center;
}
body.wild-profile-page .wild-user-fullname {
  margin-top: 8px;
  text-align: center;
}
body.wild-profile-page .wild-profile-contacts {
  gap: 12px;
  margin: 0;
}
body.wild-profile-page .wild-profile-contacts .wild-contact-link {
  padding: 8px;
  min-width: 76px;
}
body.wild-profile-page .wild-user-listings > :not(:first-child) {
  margin-top: 16px;
}

body.wild-profile-page .wild-account-panel #page-main-content {
  min-height: 0;
}
body.wild-profile-page .wild-account-panel #block-wildisrael-5pxslideshowspacer-2 {
  display: none;
}

/* Drupal leaves a status-message placeholder even when there is no message. */
body.wild-profile-page .wild-account-messages {
  margin-block: 0;
}
body.wild-profile-page .wild-account-messages:has(.messages) {
  margin-bottom: 16px;
}
body.wild-profile-page .wild-user-profile {
  margin: 0;
  padding: 0;
}

/* The parent theme moves the help region inside the card on window load. */
body.wild-profile-page .wild-account-panel .gav-help-region:empty {
  display: none !important;
  margin: 0;
  padding: 0;
}
