/* Link Resources: fixes layered on top of the original WordPress theme CSS.
   Loaded last in <head>, so these win without editing the theme files. */

/* 1. Hero headlines (desktop hero, 1000px and up).
   The theme sets each line to 70px text with a 65px line height and 20px
   padding, so each white/navy highlight box (~122px tall) covered the line
   above whenever the headline wrapped. Scale the text with the screen and
   give each line enough height for its box. Below 1000px the theme shows a
   separate mobile hero, which is unaffected. */
@media (min-width: 1000px) {
  .nectar-highlighted-text h1 {
    line-height: 1.38 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .nectar-highlighted-text h1 span[style*="background-color"] {
    font-size: clamp(46px, 4.86vw, 70px) !important;
    line-height: 1.38 !important;
    padding: 0.1em 0.28em !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
}

/* 2. "Explore" button in the desktop header: keep it a pill at every width
   (it collapsed into a small circle with the label spilling out ~1000px). */
#mega-menu-wrap-top_nav_pull_right #mega-menu-top_nav_pull_right > li.mega-menu-item > a.mega-menu-link {
  white-space: nowrap !important;
  width: auto !important;
  min-width: 96px;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* 3. Phone menu: the build replaces the theme's hidden mega-menu copy with a
   plain list (see tools/build.py). Style the language link a little smaller. */
#slide-out-widget-area .off-canvas-menu-container .menu li.link-lang a {
  font-size: 0.7em !important;
  opacity: 0.75;
}

/* 4. Contact and 404 pages (new; styled to match the theme). */
.link-contact { --navy: #193653; --green: #5ace66; --ink: #1c1c1c; --muted: #6b7280; --line: #d9dee7; }
.link-contact__inner { max-width: 1260px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
@media (min-width: 690px) { .link-contact__inner { padding: 0 40px; } }
.link-contact__hero { background: #eaf0fb; padding: 56px 0 48px; }
@media (min-width: 1000px) { .link-contact__hero { padding: 96px 0 72px; } }
.link-contact__eyebrow { color: var(--green) !important; font-family: Roboto, sans-serif; font-weight: 500; font-size: 18px; margin: 0 0 18px !important; }
.link-contact .link-contact__title h1 { margin: 0 !important; padding: 0 !important; line-height: 1.38 !important; }
.link-contact .link-contact__title h1 span {
  font-family: Roboto, sans-serif; font-weight: 700 !important; letter-spacing: 0;
  font-size: clamp(30px, 4.86vw, 64px) !important; line-height: 1.38 !important;
  padding: 0.1em 0.28em !important; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.link-contact__lede { font-size: 18px; line-height: 1.6; color: #3b3b3b; max-width: 640px; margin: 24px 0 0 !important; padding: 0 !important; }
.link-contact__links { margin-top: 16px !important; font-size: 16px; }
.link-contact__links a, .link-contact__aside a { color: var(--navy); text-decoration: underline; }
.link-contact__body { background: #fff; padding: 48px 0 72px; }
.link-contact__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .link-contact__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; } }
.link-form__row { margin-bottom: 20px; }
.link-form__row--half { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .link-form__row--half { grid-template-columns: 1fr 1fr; } }
.link-form label { display: block; font-family: Roboto, sans-serif; font-weight: 500; font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.link-form label span { color: var(--green); }
.link-form input, .link-form textarea {
  display: block; width: 100%; box-sizing: border-box; font: 16px/1.5 "Open Sans", sans-serif !important;
  color: var(--ink) !important; background: #fff !important; border: 1px solid var(--line) !important;
  border-radius: 8px !important; padding: 12px 14px !important; margin: 0 !important; box-shadow: none !important;
}
.link-form textarea { resize: vertical; min-height: 150px; }
.link-form input:focus, .link-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green) !important; }
.link-form [aria-invalid="true"] { border-color: #c0392b !important; }
.link-form__hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.link-form__submit {
  font-family: Roboto, sans-serif; font-weight: 500; font-size: 16px; color: #fff; background: var(--green);
  border: 0; border-radius: 200px; padding: 14px 32px; cursor: pointer; transition: transform .2s ease, opacity .2s ease;
}
.link-form__submit:hover { transform: scale(1.04); }
.link-form__submit[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-form__status { margin: 16px 0 0 !important; padding: 0 !important; font-size: 16px; min-height: 1.5em; }
.link-form__status.is-ok { color: #1f7a33; }
.link-form__status.is-error { color: #c0392b; }
.link-contact__aside h4 { font-family: Roboto, sans-serif; font-size: 20px; color: var(--navy); margin: 0 0 12px !important; }
.link-contact__aside p { color: #4b5563; font-size: 16px; line-height: 1.6; margin: 0 0 12px !important; padding: 0 !important; }
.link-contact__offices { font-weight: 600; color: var(--navy) !important; }
