.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.family-notes-header {
  min-height: 52px;
  min-width: 178px;
  border: 1px solid #b9871c;
  border-radius: 8px;
  padding: 0 16px;
  color: #111318;
  background: #fffdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.family-notes-header:hover,
.family-notes-header:focus-visible {
  color: #111318;
  background: #ffc94f;
  border-color: #ffc94f;
  transform: translateY(-2px);
}

.family-notes-header:focus-visible,
.family-notes-topline:focus-visible,
.family-notes-menu-link:focus-visible {
  outline: 3px solid #ffc94f;
  outline-offset: 3px;
}

.family-notes-header-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  color: #111318;
  background: #ffc94f;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
}

.family-notes-header-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.family-notes-header-copy strong {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.family-notes-header-copy small {
  color: #70747b;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
}

.family-notes-header:hover .family-notes-header-copy small,
.family-notes-header:focus-visible .family-notes-header-copy small {
  color: #4b3a10;
}

.theme-dark .family-notes-header {
  color: #ffc94f;
  background: #0b0e14;
  border-color: #ffc94f;
}

.theme-dark .family-notes-header .family-notes-header-copy small {
  color: #d3d7df;
}

.theme-dark .family-notes-header:hover,
.theme-dark .family-notes-header:focus-visible {
  color: #111318;
  background: #ffc94f;
}

.theme-dark .family-notes-header:hover .family-notes-header-copy small,
.theme-dark .family-notes-header:focus-visible .family-notes-header-copy small {
  color: #4b3a10;
}

.family-notes-topline,
.family-notes-menu-link {
  display: none;
}

@media (max-width: 1180px) {
  .family-notes-header {
    display: none;
  }

  .topline-inner > span {
    display: none !important;
  }

  .family-notes-topline {
    min-height: 26px;
    margin-left: 0 !important;
    border: 0 !important;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
    text-decoration: none;
    white-space: nowrap;
  }

  .family-notes-topline::before {
    content: "\2605";
    width: 20px;
    height: 20px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 8px;
  }

  .family-notes-topline:hover {
    opacity: .8;
  }

  .topline-inner > a[href^="tel:"] {
    margin-left: auto;
  }
}

@media (max-width: 860px) {
  .header-actions {
    display: none;
  }

  .family-notes-menu-link {
    min-height: 50px;
    margin-top: 6px;
    border: 1px solid #ffc94f !important;
    border-radius: 8px;
    color: #111318 !important;
    background: #ffc94f;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  .family-notes-menu-link::after {
    content: "\2192";
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .topline-inner {
    min-height: 38px;
  }

  .topline-inner > a[href^="tel:"] {
    display: none;
  }

  .family-notes-topline {
    font-size: 8px;
    letter-spacing: .09em;
  }

  .family-notes-topline::before {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .theme-toggle {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .family-notes-header {
    transition: none;
  }
}
