/* === Base Global Styles === */

/* === START: merged fonts/web/inter.css === */

/* Variable Inter, normal (weights 100–900) */
@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/web/InterVariable.woff2") format("woff2");
}

/* Variable Inter, italic (weights 100–900) */
@font-face {
  font-family: "InterVariable";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/web/InterVariable-Italic.woff2") format("woff2");
}

/* Minimal static Inter fallback for older browsers */

/* Regular (normal / 400) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/web/Inter-Regular.woff2") format("woff2");
}

/* Italic (italic / 400) */
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/web/Inter-Italic.woff2") format("woff2");
}

/* Bold (normal / 700) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/web/Inter-Bold.woff2") format("woff2");
}

/* Bold italic (italic / 700) */
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/web/Inter-BoldItalic.woff2") format("woff2");
}

:root {
  --navbar-height: 56px;
}

html, body, * {
  font-family: "InterVariable", "Inter", Arial, sans-serif !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@supports (font-variation-settings: normal) {
  html, body, * {
    font-family: "InterVariable", Arial, sans-serif !important;
  }
}

html {
	height: 100%;
	scroll-padding-top: 70px; /* adjust to your navbar height */
}

body {
	height: 100%;
	display: flex;
	flex-direction: column;
	padding-top: var(--navbar-height);
}

strong, b {
    font-weight: 700;
}

main {
  flex: 1 0 auto; /* content grows */
  margin-bottom: 5vh; /* 5% of viewport height create space above footer */
}

/* Shared H1 styling */
#dynamicH1 {
    font-size: 33px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.9em;
    margin: 0;
    padding: 0;
    white-space: nowrap;       /* stays on one line */
    overflow: visible;         /* no clipping */
    text-overflow: clip;       /* no ellipsis */
    text-align: center;        /* keeps text centered */
    flex: 1 1 auto;            /* allows natural flex expansion */
    letter-spacing: 0.03em;    /* <-- increase slightly for readability */
}

#headerPic {
    transition: opacity 0.25s ease-in-out;
}

/* Shared footer */
.footer {
  width: 100%;
  height: 20px;
  background-color: rgb(33, 37, 41);
  background-image: linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  box-shadow: rgba(0, 0, 0, 0.075) 0px 2px 4px 0px;
  border-color: #252525;
  flex-shrink: 0;
}

.footer-szoveg {
  margin: 0;
  text-align: center;
  color: #FFFFCC;
  font-size: 0.8em; /* or exact value like 12px */
}

/* Shared hr */
hr {
  margin: 20px 0;
  border: 0;                /* reset Bootstrap */
  border-top: 2px solid #91BDE9; /* your custom style */
  opacity: 1;               /* override Bootstrap’s .25 fade */
}

.szotartitle {
  color: #194775;
  font-stretch: 125%;
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  box-sizing: border-box;
  line-height: 24px;
  margin-top: 0;
  margin-bottom: 16px;
}



/* === START custom button style === */

/* Base button styles */
.btn-custom {
  display: inline-flex;        /* flex for centering */
  justify-content: center;     /* center text horizontally */
  align-items: center;         /* center text vertically */
  
  min-height: 3em;           /* prevent vertical jump */
  min-width: 8ch;             /* enough for shortest label */
  max-width: 80%;             /* never overflow parent */
  padding: 0.5em 0.5em;
  text-align: center;          /* multi-line text centered */
  list-style: none;            /* remove disclosure triangle */
  box-sizing: border-box;

  white-space: normal;         /* allow wrapping */
  word-break: break-word;      /* wrap long words */
  line-height: 1;            /* spacing between lines */
  font-size: 0.85rem;

  color: rgb(255, 255, 204);
  background-color: rgba(var(--bs-dark-rgb), 1);
  border: none;
  border-radius: 20rem;
  cursor: pointer;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  transition: background-color 0.2s ease;
}

/* Hover and active states */
.btn-custom:hover,
.btn-custom:focus {          /* brighter text on hover */
  background-color: rgba(var(--bs-dark-rgb), 0.85); /* slight lightening */
}

/* Toggle label behavior */
.btn-custom .when-expanded { display: none; }
.btn-custom[aria-expanded="true"] .when-collapsed { display: none; }
.btn-custom[aria-expanded="true"] .when-expanded { display: inline; }



/* Group of 3 buttons with roughly the same width */
.btn-small {
  width: 16ch;   /* adjust as needed for their longest text */
}

#searchFallback.btn-custom {
  /* use flex to preserve centering from .btn-custom */
  display: flex;                /* flex keeps text centered */
  justify-content: center;
  align-items: center;

  /* override the big min-height and excessive padding from .btn-custom */
  min-height: 0;                /* allow it to shrink below 3em */
  height: 1.5rem;               /* desired visible height (1rem is often too small) */
  padding: 0 0.5em;

  box-sizing: border-box;       /* include padding in the height */
  line-height: 1;          /* don't fight flex centering */
  font-size: 0.85rem;           /* keep your chosen font-size */
  margin: 0.5rem auto 0;          /* center below the search bar */
  width: 9ch;
}

.btn-row {
  display: flex;
  gap: 1em;           /* space between buttons */
  align-items: stretch;  /* all buttons have same height & stay aligned */
}

/* === END custom button style === */


/* === START navbar related settings === */

/* Navbar adjustments to preserve original height */
#navbar {
  padding-top: 0;
  padding-bottom: 0;
  min-height: var(--navbar-height);
  height: var(--navbar-height);
  display: flex;
  align-items: center; /* keep children vertically centered */
}

/* Counter style */
#navbar .navbar-counter {
    color: #FFFFCC;
    font-weight: bold;
    line-height: 1.0;
    text-align: center;
    display: inline-block;
}

/* Adjust nav-links padding to match */
#navbar .navbar-nav .nav-link {
  display: flex;
  align-items: center;
  height: var(--navbar-height);
  padding-top: 0;
  padding-bottom: 0;
  
  color: #9d9d9d; /* default text (same as brand) */
  text-shadow: 0 -1px 0 rgba(0,0,0,.25);
}

/* Hover/focus styling */
#navbar .nav-link:hover,
#navbar .nav-link:focus {
    color: #ffffff;
    text-decoration: none;
}

/* Active link styling */
#navbar .navbar-nav .nav-link.active {
	color: #fff;
	background-color: #080808;
	text-shadow: 0 -1px 0 rgba(0,0,0,.25);
	text-decoration: none;
	
	height: var(--navbar-height);   /* force link height */
	line-height: var(--navbar-height); /* ensure text is vertically centered */
	padding-top: 0;
	padding-bottom: 0;
}

/* Brand text styling */
#navbar .navbar-brand,
#navbar .navbar-brand small {
  color: #9d9d9d; /* shared subtle gray */
  text-shadow: 0 -1px 0 rgba(0,0,0,.25); /* shared shadow */
}

/* Small text inside brand — only size override */
#navbar .navbar-brand small {
  font-size: 0.7em;
}

/* Make each brand link highlight separately */
#navbar .navbar-brand > a,
#navbar .navbar-brand > small > a {
    color: inherit;         /* default color */
    text-decoration: none;  /* remove underline */
	transition: color 0.15s ease-in-out;
}

/* Hover/focus for main brand link */
#navbar .navbar-brand > a:hover,
#navbar .navbar-brand > a:focus {
    color: #ffffff;         /* highlight only this link */
    text-decoration: none;
}

/* Hover/focus for small version link */
#navbar .navbar-brand > small > a:hover,
#navbar .navbar-brand > small > a:focus {
    color: #ffffff;         /* highlight only small link */
    text-decoration: none;
}

#navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.1rem rgba(255,255,255,0.1);
}

.hidden-ea-egg-wrapper {
    position: relative; /* for absolute positioning of the link */
    display: inline-block; /* only cover the numbers */
}

.hidden-ea-egg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: default; /* looks unclickable */
}

/* === START collapsed-mode navbar alignment fix === */
@media (max-width: 768px) {

  /* Remove full navbar & container padding so active link bg can be full width */
  #navbar,
  #navbar > .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Add left padding for brand to match desktop spacing */
  #navbar .navbar-brand {
    padding-left: 1rem;  /* or same as active link internal padding */
  }

  /* Make all nav-links align with brand */
  #navbar .navbar-nav .nav-link {
    display: block;              /* full-width rows */
    width: 100%;
    height: 56px;                /* full row tappable area */
    line-height: 56px;           /* vertically center text */
    padding-left: 16px;          /* match old spacing */
    padding-right: 16px;
    box-sizing: border-box;
    color: #9d9d9d;              
    background-color: #212529;   /* solid dark background for inactive links */
    text-shadow: 0 -1px 0 rgba(0,0,0,.25);
    text-decoration: none;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
  }

  /* Active link: full width + internal padding */
  #navbar .navbar-nav .nav-link.active {
    background-color: #080808;
    color: #ffffff;
  }
  
  #navbar .navbar-nav .nav-link:first-child {
    position: relative; /* for pseudo-element */
  }

  #navbar .navbar-nav .nav-link:first-child::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px; /* line thickness */
    background: rgba(255, 255, 255, 0.1); /* subtle highlight */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); /* optional soft highlight */
  }
  
  #navbar .navbar-nav .nav-link:hover,
  #navbar .navbar-nav .nav-link:focus {
    background-color: #000;  /* slightly brighter on hover */
    color: #fff;
  }
  
}


/* === START NoScript navbar related settings === */

/* Only show fallback on small screens */
@media (min-width: 768px) {
	#noscript-navbar-wrapper { display: none; }
}

/* Wrapper for toggle + counter */
#noscript-navbar-wrapper {
	display: flex;
	align-items: center;
	justify-content: flex-end; /* right-aligned */
	gap: 0.5rem;
	position: relative; /* needed for absolute dropdown */
}

/* Remove default pressed/opened style on summary */
#noscript-navbar-toggle summary {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px; /* match --navbar-height */
	padding: 0.25rem 0.75rem; /* same as .navbar-toggler */
	font-size: 1.25rem; /* Bootstrap default */
	line-height: 1;
	color: rgba(255, 255, 255, 0.55); /* same as --bs-navbar-color */
	background-color: transparent; /* transparent like toggler */
	border: 1px solid rgba(255, 255, 255, 0.1); /* subtle border */
	border-radius: 0.375rem; /* Bootstrap default */
	cursor: pointer;
	outline: none;
	list-style: none;
	text-align: center;
}

/* Hover and focus styles (like Bootstrap toggler) */
	#noscript-navbar-toggle summary:hover,
	#noscript-navbar-toggle summary:focus {
	color: rgba(255, 255, 255, 1);
	text-decoration: none;
	outline: 0;
}

/* Optional: pressed/active state */
	#noscript-navbar-toggle[open] summary {
	color: #fff; /* brighter text */
	background-color: rgba(255, 255, 255, 0.1);
}


/* Remove default marker arrow */
#noscript-navbar-toggle summary::-webkit-details-marker { display: none; }
#noscript-navbar-toggle summary::marker { display: none; }

/* Full-screen dropdown menu */
#noscript-navbar-toggle[open] ul {
	position: fixed;
	top: var(--navbar-height);
	left: 0;
	right: 0;
	width: auto;

	background-color: #212529;
	margin: 0;
	padding: 0.25rem 0;
	list-style: none;

	box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
	z-index: 1050;
	border-radius: 0;

	max-height: calc(100vh - var(--navbar-height));
	overflow-y: auto;
	overflow-x: hidden;
}

/* Menu link styles */
#noscript-navbar-toggle ul li a {
	display: block;
	padding: 0.5rem 1rem;
	color: #ccc;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#noscript-navbar-toggle ul li a:hover,
#noscript-navbar-toggle ul li a:focus {
	background-color: #000;
	color: #fff;
}


/* === START: Brand-colored share buttons === */

/* #share-block-wrapper {
     width: 90%; 
     min-width: 300px; 
     margin: 30px auto 0px auto; 

 } */

.js-only {
    display: none !important;
}

.js-install-hidden {
    display: none !important;
}

#share-block-wrapper {
    display: flex;
    flex-direction: column;       /* stack title and share bar vertically */
    align-items: center;          /* center both horizontally */
    justify-content: flex-start;
	margin: 4rem auto 0;
	width: 100%;
}

.title-wrapper {
  position: relative !important;
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  isolation: isolate; /* ensures it's a distinct stacking context */
}


#shareBlock-title {  
	grid-area: 1 / 1;
    background-color: #343a40;    /* same as share bar */
    color: #9d9d9d; /* default text (same as brand) */
    padding: 0.3rem 1rem;
    border-radius: 15px 15px 0 0;
    font-weight: 400;
    font-size: 1rem;
	line-height: 1.5;
	text-align: center;
    margin-bottom: 0;         /* overlap slightly with share bar */
    position: relative;
    z-index: 10;
	box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
	text-shadow: 0 -1px 0 rgba(0,0,0,.25);
    transition: color 0.15s ease-in-out;
}

#shareBlock-title:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Open */
.install-block-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ffc107;
  aspect-ratio: 2.8 / 1;
  border-radius: 15px 15px 0 0;
  border: 2px solid rgba(0,0,0,0.2);
  box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
  margin-top: -2.8rem;
  transition: margin-top 0.4s ease;
  z-index: 1;
  overflow: visible;
}

/* Collapsed */
.install-block-wrapper.slideBelowTitle {
  margin-top: 0;
}

/* Toggle button style */
.install-block-toggle {
  position: absolute;
  top: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1rem;
  height: 1rem;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  border: none;
  color: #343a40;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  pointer-events: auto;
  transition: background 0.3s ease;
}

.install-block-toggle:hover {
  background: rgba(0,0,0,0.1);
}

.install-block-toggle i {
  transition: transform 0.3s ease;
  transform: rotate(180deg);
}

/* Collapsed state */
.install-block-wrapper.slideBelowTitle .install-block-toggle i {
  transform: rotate(0deg);
}

.install-block-wrapper:hover {
    color: #ffffff;
    text-decoration: none;
}

.install-block-inner-wrapper {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  position: relative;
  top: -1.0rem;
}

.install-block-inner-wrapper span {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.1;
  color: #333;
  white-space: normal;
  word-break: break-word;
  margin: 0;
  padding: 0;
}

.btn-brand {
  border: none;
  color: #fff;
  border-radius: 50%;              /* === make perfectly circular === */
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;                 
  aspect-ratio: 1 / 1;             /* maintain circle */
  padding: 0;
}

/* Icons always pure white */
.btn-brand img,
.btn-brand i {
  filter: brightness(0) invert(1);
}

/* On hover: slightly darken, add depth */
.btn-brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Install PWA */
#installBtn {
  width: 30px;
  height: 30px;
  padding: 0;
  background-color: #198754;
  z-index: 3;
  flex: 0 0 auto;
  align-self: center;
  transition: all 0.25s ease;
}

#installBtn:hover { background-color: #146c43; }

/* Outer wrapper */
.share-carousel-wrapper {
  position: relative;
  width: 90%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  display: flex;
}

/* Scrollable track */
#share-block-carousel {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  background-color: #343a40;
  padding: 10px 20px 10px 20px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.4);
  width: 100%;
}

/* Webkit-based browsers */
#share-block-carousel::-webkit-scrollbar {
  height: 6px; /* horizontal scrollbar height */
  background-color: transparent;
}

#share-block-carousel::-webkit-scrollbar-track {
  background-color: #343a40; /* match carousel background */
}

#share-block-carousel::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2); /* subtle, barely visible */
  border-radius: 3px;
  transition: background-color 0.3s, opacity 0.5s;
  opacity: 0;
}

#share-block-carousel:hover::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.4);
  opacity: 1;
}

/* Each button acts as a snap point */
#share-block-carousel > *:not(.share-carousel-mask-horizontal):not(.share-carousel-mask-vertical),
#share-block-carousel noscript > a {
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
}

/* Peek mask overlay */
.share-carousel-mask-horizontal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;

  background-color: #343a40;
  
  -webkit-mask-image: 
    linear-gradient(
	  to right,
	  rgba(0,0,0,1) 0%,
	  rgba(0,0,0,1) 4%,
	  rgba(0,0,0,0) 8%,
	  rgba(0,0,0,0) 92%,
	  rgba(0,0,0,1) 96%,
	  rgba(0,0,0,1) 100%
	);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: destination-out;

  mask-image: 
    linear-gradient(
	  to right,
	  rgba(0,0,0,1) 0%, 
	  rgba(0,0,0,1) 4%,
	  rgba(0,0,0,0) 8%,
	  rgba(0,0,0,0) 92%,
	  rgba(0,0,0,1) 96%,
	  rgba(0,0,0,1) 100%
	);
  mask-repeat: no-repeat;
  mask-composite: subtract;
}

.share-carousel-mask-vertical {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;

  background-color: #343a40;

  -webkit-mask-image: 
    linear-gradient(
	  to bottom,
	  rgba(0,0,0,1) 0%,
	  rgba(0,0,0,1) 18%,
	  rgba(0,0,0,0) 25%,
	  rgba(0,0,0,0) 65%,
	  rgba(0,0,0,1) 72%,
	  rgba(0,0,0,1) 90%,
	  rgba(0,0,0,0) 90.1%,
	  rgba(0,0,0,0) 100%
	);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: destination-out;

  mask-image: 
    linear-gradient(
	  to bottom,
	  rgba(0,0,0,1) 0%,
	  rgba(0,0,0,1) 18%,
	  rgba(0,0,0,0) 25%,
	  rgba(0,0,0,0) 65%,
	  rgba(0,0,0,1) 72%,
	  rgba(0,0,0,1) 90%,
	  rgba(0,0,0,0) 90.1%,
	  rgba(0,0,0,0) 100%
	);
  mask-repeat: no-repeat;
  mask-composite: subtract;
}

/* Firefox override - these are the correct values actually. Chrome is off due to scrollbar */
@-moz-document url-prefix() {
  .share-carousel-mask-vertical {
    mask-image: linear-gradient(
      to bottom,
	  rgba(0,0,0,1) 0%,
	  rgba(0,0,0,1) 20%,
	  rgba(0,0,0,0) 25%,
	  rgba(0,0,0,0) 75%,
	  rgba(0,0,0,1) 80%,
	  rgba(0,0,0,1) 90%,
	  rgba(0,0,0,0) 90.1%,
	  rgba(0,0,0,0) 100%
    );
  }
}



/* Copy link */
.share-copy { background-color: #17a2b8; }
.share-copy:hover { background-color: #138496; }

/* E-mail */
.share-email { background-color: #ff6f00; }
.share-email:hover { background-color: #e65c00; }

/* Signal */
.share-signal { background-color: #3A76F0; }
.share-signal:hover { background-color: #2D5ED8; }

/* Telegram */
.share-telegram { background-color: #0088cc; }
.share-telegram:hover { background-color: #006fa8; }

/* FB Messenger */
.share-messenger { background-color: #0084FF; }
.share-messenger:hover { background-color: #006fd6; }

/* WhatsApp */
.share-whatsapp { background-color: #25d366; }
.share-whatsapp:hover { background-color: #1da851; }

/* Viber */
.share-viber { background-color: #7360f2; }
.share-viber:hover { background-color: #5a48d3; }

/* X / Twitter */
.share-x { background-color: #000; }
.share-x:hover { background-color: #222; }

/* Facebook */
.share-fb { background-color: #1877f2; }
.share-fb:hover { background-color: #145dbf; }

/* LinkedIn */
.share-linkedin { background-color: #0a66c2; }
.share-linkedin:hover { background-color: #084b91; }

/* Toast feedback for share-copy button */
.copy-feedback {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: #333;
    color: #fff;
    padding: 5px 5px;
    border-radius: 10px;
	font-size: 0.85rem;
    white-space: normal;      /* allow wrapping */
    pointer-events: none;
    opacity: 1;
    animation: fadeInOut 2s forwards;
    max-width: 150px;         /* optional: limit width for wrapping */
    text-align: center;       /* optional: nice centering */
}

@keyframes fadeInOut {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { opacity: 0; }
}

/* === START: merged styles/spaHandler.css === */
/* highlight results */
.ui-autocomplete span.hl_results {
    background-color: #ffff66;
}
 
/* loading - the AJAX indicator */
.ui-autocomplete-loading {
    background: white url('../images/ui-anim_basic_16x16.gif') right center no-repeat;
}
 
/* scroll results */
.ui-autocomplete {
    max-height: 250px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    /* add padding for vertical scrollbar */
    padding-right: 5px;
    max-width: 300px;          /* adjust to fit your search bar */
    white-space: normal;       /* allow wrapping */
    overflow-wrap: break-word;     /* wrap long words */
    text-overflow: ellipsis;   /* show ... if too long */
}
 
.ui-autocomplete li {
    font-size: 16px;
}
 
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 10px); /* 2px gap to prevent overlap */
    left: 0;
    width: 100%;            /* match input width */
    z-index: 1050;          /* higher than other content */
    background-color: #fff;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    white-space: normal;
    overflow-wrap: break-word;
	box-sizing: border-box; /* ensure width includes padding/border */
}
.autocomplete-dropdown div {
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
}

.autocomplete-active {
    background-color: #36a2d2;
    color: white;
}

.autocomplete-dropdown .non-selectable {
    color: #c0392b;
    background-color: #fdecea;
    font-style: italic;
    font-weight: bold;
    font-size: 1rem;
    padding: 2px 8px;
    cursor: default;
    pointer-events: none;
    border-left: 3px solid #e74c3c;
    border-radius: 3px;
    max-height: 4.5em;          /* ~3 lines */
    overflow-y: auto;            /* show vertical scrollbar if message is long */
    white-space: normal;         /* allow wrapping */
    overflow-wrap: break-word;       /* break long words */
}

/* SYNC: base.css step-01-nem */