/* manitains all the styles */

@font-face {
    font-family: "JohnsonText-Regular";
    src: url("../assets/fonts/jnjnew/JohnsonText-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "JohnsonText-Medium";
    src: url("../assets/fonts/jnjnew/JohnsonText-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "JohnsonText-Bold";
    src: url("../assets/fonts/jnjnew/JohnsonText-Bold.woff2") format("woff2");
}

@font-face {
    font-family: "JohnsonDisplay-Bold";
    src: url("../assets/fonts/jnjnew/JohnsonDisplay-Bold.woff2") format("woff2");
}

@font-face {
    font-family: "JohnsonDisplay-Medium";
    src: url("../assets/fonts/jnjnew/JohnsonDisplay-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "JohnsonDisplay-Regular";
    src: url("../assets/fonts/jnjnew/JohnsonDisplay-Regular.woff2") format("woff2");
}

/* JnJ colors */
:root {
    --jnj-primary: #EB1700;
    --jnj-gray: #6E6259;
    --jnj-darkgray: #312C2A;
    --jnj-black: #000000;
    --jnj-white: #ffffff;
    --jnj-warmgray-2: #F1EFED;
    --jnj-warmgray-6: #cbc4bc;
    --jnj-warmgray-9: #A39992;
    --jnj-breadcrumb: #6e6259;
    --jnj-hover: #d91500;

    --navHeight: 40px;
    --headerHeight: 88px;
    --bannerHeight: 52px;
    --jjRegular: "JohnsonText-Regular", sans-serif;
    --jjDisplay: "JohnsonDisplay-Regular", sans-serif;
    --font-weight-bold: 700;
    --font-weight-light: 300;
    --font-weight-medium: 500;
    --font-weight-regular: 400;
}

html {
    font-family: var(--jjRegular);
    font-size: 16px;
    font-weight:  var(--font-weight-regular);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--jjRegular)!important;
    color: var(--jnj-black);
}

.jjd {
    font-family: var(--jjDisplay);        
}

.heading-05 {
    font-family: var(--jjDisplay);
    font-weight: var(--font-weight-bold);
    font-size:24px;
    line-height: 1.75
}

.jj-prod-area {
    background-color:var(--jnj-warmgray-2);
    color:var(--jnj-primary);
    line-height: 1.313;
    font-size:14px;
    font-weight: var(--font-weight-medium);
}

.jj-pat-header {
    font-weight: var(--font-weight-bold);
}

.jj-pat-list {
    line-height:1.5rem;
}

.topnav {
    background-color: var(--jnj-darkgray);
    font-weight: var(--font-weight-light);
    font-size: 12px;
    height: var(--navHeight);
}

header {
    height: var(--headerHeight);
}

.jjlogo {
    height: auto;
    width: 258px;
}

.jjwhitelogo {
    height: auto;
    width: 406px;
    padding: 0;
}

.footer {
    background-color: var(--jnj-darkgray);
    padding-bottom: 48px;
}
.footer-header {
    font-family: var(--jjDisplay);
    font-size: 20px;
    font-weight: var(--font-weight-regular);
    line-height: 24px;
    padding-bottom: 20px;
    padding-top: 20px;
}

.footer-navigation-link {
    font-family: var(--jjRegular);
    font-size: 16px;
    font-weight: var(--font-weight-regular);
    line-height: 24px;
    color: var(--jnj-warmgray-9);
}

.footer-navigation-link:hover {
    color: var(--jnj-warmgray-6);
}

.footer-disclaimer {
    font-family: var(--jjRegular);
    font-size: 12px;
    font-weight: var(--font-weight-regular);
    line-height: 16px;
    color: var(--jnj-white);
}

.banner {
    height: var(--bannerHeight);
    background-color: var(--jnj-primary);
    font-family: var(--jjRegular);
    font-size: 28px;
}


.gap-hero {
      column-gap: 10rem;
}

.heading-text {
    color: var(--jnj-gray);
}

.jnj-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  height: 40px;
  width: 40px;
  padding: 0 14px;

  background: var(--jnj-primary);
  border-radius: 9999px;
  overflow: hidden;

  color: var(--jnj-white);
  text-decoration: none;

  transition:
	width 0.35s ease,
	background-color 0.25s ease;
}

.jnj-cta__icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;

  transition:
	opacity 0.2s ease,
	transform 0.25s ease;
}

.jnj-cta__label,
.jnj-cta__arrow {
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);

  transition:
	opacity 0.2s ease,
	transform 0.35s ease;
}

.jnj-cta:hover {
  width: 160px;
  /* expanded pill */
  background: var(--jnj-primary);
}

.jnj-cta:hover .jnj-cta__icon {
  opacity: 0;
  transform: scale(0.6);
}

.jnj-cta:hover .jnj-cta__label,
.jnj-cta:hover .jnj-cta__arrow {
  opacity: 1;
  transform: translateX(0);
}

.uk-breadcrumb {
    padding: 0;
    list-style: none;
}

.uk-breadcrumb>* {
    display: contents;
}

.uk-breadcrumb>*>* {
    font-size: .875rem;
    color: var(--jnj-breadcrumb);
}

.uk-breadcrumb>*>:hover {
    color: var(--jnj-hover);
    text-decoration: underline;
}

.uk-breadcrumb>:last-child>a:not([href]),
.uk-breadcrumb>:last-child>span {
    color: var(--jnj-black);
}
.uk-breadcrumb>:last-child>span:hover {
    text-decoration: none;
}

.uk-breadcrumb>:nth-child(n + 2):not(.uk-first-column)::before {
    content: "/";
    display: inline-block;
    margin: 0 20px 0 calc(20px - 4px);
    font-size: .875rem;
    color: var(--jnj-black);
}

.search-bar {
    min-height: 64px;
}

.cursor-pointer {
    cursor: pointer;
}

/* #suggestions {
    position: absolute;
    background: #e0e0e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 50;
    overflow-y: auto;
    text-align: left;
    width: 100%;
}

#suggestions .sugg-header {
    text-align: center;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #555;
}

.suggestion-item {
    background: #fff;
    margin: 0;
    /* padding: 16px 20px; */
    
/* ===== Search bar polish ===== */
/* .search-bar {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.25s ease;
}
.search-bar:focus-within {
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
} */

/* ===== Suggestions dropdown ===== */
#suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);      /* small gap under the bar */
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    z-index: 50;
    max-height: 70vh;
    overflow-y: auto;
    animation: suggFade 0.18s ease-out;
}

@keyframes suggFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.sugg-header {
    padding: 12px 20px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #555;                          /* J&J red */
    background: #fff5f4;                      /* faint red tint */
    border-bottom: 1px solid #f2dedd;
}

/* Items */
.suggestion-item {
    padding: 10px 20px;
    font-size: 15px;
    color: #1a1a1a;
    cursor: pointer;
    border-left: 3px solid transparent;      /* accent placeholder */
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease, border-color 0.15s ease, padding-left 0.15s ease;
}
.suggestion-item:last-of-type {
    border-bottom: none;
}
.suggestion-item:hover,
.suggestion-item.bg-gray-100 {               /* keyboard-active reuse */
    background: #f3efef;
    border-left-color: #c4bfbf;              /* red accent slides in */
    padding-left: 24px;
}
.suggestion-item strong {
    color: #1a1a1a;                         /* matched text in red */
    font-weight: 700;
}

/* Footer */
#viewAllResults {
    padding: 10px 20px;
    text-align: center;
    font-size: 13px;
    font-style: italic;
    /* color: #eb1700; */
    /* background: #fafafa; */
    border-top: 1px solid #eee;
    cursor: pointer;
    transition: background 0.15s ease;
    background: #f7f7f7;
}
#viewAllResults:hover {
    background: #f3efef;
}
#viewAllResults strong {
    font-style: normal;
}
