a,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--hx-green);
}

.brand,
.nav-top {
  display: flex;
  align-items: center;
}

.brand h1,
.hamburger,
.tagline {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

footer,
footer a,
footer p {
  color: #e0f0f0;
}

body.dark-mode .brand h1,
body.dark-mode .hamburger,
body.dark-mode .menu a,
body.dark-mode .tagline {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.icon,
.switch-wrap {
  vertical-align: middle;
}

.adatkezeles summary,
.btn,
.hamburger,
.switch-wrap,
.to-top {
  cursor: pointer;
}

.menu,
.news-list,
.pub-list {
  list-style: none;
}

#publikaciok .pub-list .meta a,
.menu a:hover,
.reference-box p a,
a,
a:hover {
  text-decoration: none;
}

#mintafeladatok .card.full-width,
.drug-filter-grid input,
.drug-filter-grid select {
  box-sizing: border-box;
  box-sizing: border-box;
  box-sizing: border-box;
  box-sizing: border-box;
}

:root {
  --hx-green: #005959;
  --hx-orange: #f39c12;
  --hx-ink: #0f2b2b;
  --bg: #f6f8f7;
  --card: #ffffff;
  --muted: #6b8b8b;
  --ring: rgba(0, 89, 89, 0.2);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial,
    sans-serif;
  color: var(--hx-ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  transition: color 0.2s;
}

a:hover {
  color: var(--hx-orange);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0.6em 0 0.4em;
}

h1,
h2 {
  color: #004a4a;
}

h1 {
  font-size: clamp(28px, 5vw, 36px);
}

h2 {
  font-size: clamp(24px, 4vw, 32px);
}

h3 {
  font-size: clamp(20px, 3.5vw, 24px);
}

h4 {
  font-size: clamp(18px, 3vw, 20px);
}

.meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0.5em;
}

.container,
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.kicker {
  letter-spacing: 0.1em;
  color: var(--hx-orange);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8em;
  margin-bottom: 0.5em;
}

.dose-label,
.drug-card h5 {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn,
.btn-odekalk,
.pub-title,
.to-top {
  font-weight: 700;
}

.nav-bottom,
.nav-top {
  max-width: 1200px;
  margin: 0 auto;
}

.nav-wrap {
  top: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 999;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 89, 89, 0.15);
  transition: background-color 0.3s, border-color 0.3s;
}

.nav-top {
  justify-content: space-between;
  padding: 12px 24px;
  flex-wrap: wrap;
}

.brand {
  gap: 18px;
}

.cta,
.nav-bottom {
  display: flex;
  align-items: center;
}

.brand img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.25s, opacity 0.25s;
}

.brand h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.tagline {
  font-size: 13px;
  color: var(--muted);
}

.btn,
.btn-odekalk,
.hamburger {
  color: var(--hx-green);
}

.nav-bottom {
  justify-content: center;
  gap: 16px;
  padding: 8px 24px;
  border-top: none;
  transition: border-color 0.3s;
}

.btn-odekalk:hover,
body.dark-mode .btn-odekalk:hover {
  border-color: var(--hx-orange);
  background: var(--hx-orange);
}

.hero-grid,
.kapcha {
  align-items: center;
}

.hamburger {
  background: 0 0;
  line-height: 1;
  display: none;
  position: fixed;
  top: 12px;
  right: 15px;
  z-index: 1001;
  background: var(--card);
  border: 1px solid rgba(0, 89, 89, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  padding: 0;
}

.hamburger:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--ring);
}

.brand-title-animated {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.brand-title-animated::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 50px;
  height: 200%;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(
    to right,
    rgba(255, 204, 102, 0) 0,
    rgba(255, 204, 102, 0.6) 50%,
    rgba(255, 204, 102, 0) 100%
  );
  transform: translateX(-100%) skewX(-20deg);
  animation: 7s ease-in-out infinite lightSweep;
}

.brand-title-animated .odek-hl {
  position: relative;
  z-index: 1;
  animation: 7s ease-in-out infinite highlightODeK;
}

.brand-title-animated .odek-hl:first-of-type {
  animation-delay: 0.1s;
}

.brand-title-animated .odek-hl:nth-of-type(2) {
  animation-delay: 0.3s;
}

.brand-title-animated .odek-hl:nth-of-type(3) {
  animation-delay: 0.5s;
}

.brand-title-animated .odek-hl:nth-of-type(4) {
  animation-delay: 0.7s;
}

.btn {
  appearance: none;
  border: 1px solid var(--hx-green);
  background: 0 0;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: rgba(0, 89, 89, 0.08);
}

.btn.fill {
  background: var(--hx-green);
  color: #fff;
}

.btn.fill:hover {
  background: #004a4a;
  border-color: #004a4a;
}

button.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--ring);
}

.btn-odekalk {
  background: 0 0;
  border: 2px solid var(--hx-orange);
  padding: 7px 18px;
  transition: 0.2s;
}

.btn-odekalk .k-highlight {
  color: var(--hx-orange);
  font-weight: 800;
  display: inline-block;
  transform: scale(1.1);
  margin: 0 2px 0 1px;
}

.btn-odekalk:hover,
.btn-odekalk:hover .k-highlight,
.drug-card h4,
body.dark-mode #publikaciok .pub-list .pub-title em,
body.dark-mode .reference-box p a {
  color: var(--hx-green);
}

.btn-odekalk:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .btn-odekalk {
  background: 0 0;
  border-color: var(--hx-orange);
  color: var(--hx-green);
}

.drug-card .meta,
.pwa-install-banner .btn-close:hover,
body.dark-mode .btn-odekalk .k-highlight,
footer a:hover {
  color: var(--hx-orange);
}

.card h4,
.hero p {
  color: var(--hx-green);
}

body.dark-mode .btn-odekalk:hover,
body.dark-mode .btn-odekalk:hover .k-highlight {
  color: #0d2a2a;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 60px 24px 40px;
  background: radial-gradient(
      1200px 400px at 50% -80px,
      rgba(0, 89, 89, 0.08),
      transparent
    )
    var(--bg);
}

.card,
.pub-list li {
  background: var(--card);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.hero h2 {
  margin: 0.2em 0 0.5em;
}

.hero p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 65ch;
}

.hero .actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.logo-hero,
.pub-filters select#calcJumpTo,
body.dark-mode .logo-light,
body:not(.dark-mode) .logo-dark {
  display: none;
}

.pub-list li strong {
  font-weight: 500;
}

.pub-list li u {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

section {
  padding: 40px 24px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}

.section-title h3 {
  margin: 0;
  font-size: clamp(20px, 3.5vw, 24px);
}

.section-title .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hx-orange);
  flex-shrink: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin-bottom: 1em;
  color: var(--hx-ink);
  opacity: 0.9;
}

.card p:last-child {
  margin-bottom: 0;
  margin-top: auto;
}

.card img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin: 0 auto 15px;
}

#mintafeladatok .section-inner,
body.dark-mode .logo-dark {
  display: block;
}

#mintafeladatok .card.full-width {
  display: block;
  max-width: none;
  grid-column: 1/-1;
  clear: both;
  width: 100%;
  margin: 16px auto 0;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.pub-list {
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.pub-list li {
  font-weight: 400;
  line-height: 1.5;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 14px;
}

.pub-title {
  margin-bottom: 4px;
}

.pub-filters {
  display: flex;
  gap: 12px;
  margin: 10px 0 24px;
  flex-wrap: wrap;
}

.search-wrapper {
  flex: 1 1 300px;
  position: relative;
  flex: 1 1 250px;
  max-width: 360px;
  min-width: 200px;
}

.pub-filters select,
.search-wrapper input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.icon svg,
.search-icon {
  width: 1.1em;
  height: 1.1em;
}

.search-wrapper input {
  padding-left: 38px;
}

.pub-filters select#calcCategory,
.pub-filters select#drugCategory,
.pub-filters select#mnemOdekCategory {
  flex: 1 1 180px;
  max-width: 250px;
}

#gyogyszer-lista .pub-filters .search-wrapper,
#gyogyszer-lista .pub-filters select#drugJumpTo {
  flex: 1 1 100%;
  max-width: 100%;
}

#gyogyszer-lista .pub-filters select#drugAtc {
  flex: 1 1 160px;
  max-width: 260px;
}

#gyogyszer-lista .pub-filters select#drugCategory {
  flex: 10 1 280px;
  max-width: none;
}

.search-icon {
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%) scale(1);
  stroke: #005959;
  fill: none;
  stroke-width: 2;
  pointer-events: none;
  opacity: 0.9;
  transition: transform 0.25s, stroke 0.25s, opacity 0.25s;
}

.search-wrapper:focus-within .search-icon {
  color: var(--hx-green);
  transform: translateY(-50%) scale(1.15);
  stroke: #008b8b;
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--hx-green);
  box-shadow: 0 0 0 3px var(--ring);
  outline: 0;
}

textarea {
  width: 100%;
  font: inherit;
}

#pubSearch {
  padding-left: 42px !important;
}

.collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out,
    margin-top 0.4s ease-out;
  opacity: 0;
  margin-top: 0;
  will-change: max-height, opacity;
}

.to-top,
.toast {
  position: fixed;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.collapse.open {
  opacity: 1;
  max-height: 2200px;
  margin-top: 20px;
}

.collapse .card {
  box-shadow: var(--shadow), inset 4px 0 0 var(--hx-green);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.kapcha {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 10px;
}

.kapcha label {
  font-size: 14px;
  color: var(--muted);
}

.kapcha input {
  max-width: 100px;
}

.toast {
  bottom: 16px;
  left: 16px;
  background-color: rgba(15, 43, 43, 0.95);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(10px);
  z-index: 9999;
  max-width: 90%;
}

.calc-card .meta,
.icon {
  color: var(--hx-orange);
}

.to-top.show,
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background-color: rgba(200, 50, 0, 0.95);
}

.icon {
  display: inline-flex;
  margin-right: 8px;
  transform: translateY(-1px);
}

.icon svg {
  stroke: currentColor;
}

.to-top {
  right: 20px;
  bottom: 20px;
  border: none;
  border-radius: 50%;
  background: var(--hx-green);
  color: #fff;
  width: 44px;
  height: 44px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(10px);
  z-index: 999;
}

.badge,
body.dark-mode .btn,
body.dark-mode .hamburger {
  color: var(--hx-green);
  color: var(--hx-green);
}

.badge {
  background: rgba(0, 89, 89, 0.12);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 12px;
  display: inline-block;
}

.visitcount {
  font-size: 0.9em;
  color: var(--muted);
  opacity: 0.85;
  margin-top: 8px;
  text-align: center;
}

footer {
  padding: 30px 24px;
  background: var(--hx-ink);
}

footer .section-inner {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

footer a {
  text-decoration: underline;
}

footer p {
  opacity: 0.9;
  margin: 6px 0;
}

footer .visitcount {
  color: #e0f0f0 !important;
}

header[id],
section[id] {
  scroll-margin-top: 120px;
  scroll-margin-top: 20px;
}

.fade-from-left,
.fade-from-right,
.fade-up {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up {
  transform: translateY(30px);
}

.fade-from-left {
  transform: translateX(-30px);
}

.fade-from-right {
  transform: translateX(30px);
}

.fade-from-left.visible,
.fade-from-right.visible,
.fade-up.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.news-list {
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.news-list li {
  background-color: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--hx-orange);
}

.news-list li h4 {
  margin: 0 0 4px;
}

.news-list li .meta {
  margin-bottom: 12px;
  font-size: 0.9em;
}

.news-list li p:last-child {
  margin-bottom: 0;
}

#news-container {
  min-height: 400px;
}

.calc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-card h4 {
  margin-bottom: 8px;
}

.calc-card .meta {
  margin-bottom: 12px;
  font-weight: 600;
}

.calc-card p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

#calcNoResults {
  font-size: 1.1em;
  text-align: center;
  color: var(--muted);
}

body.dark-mode {
  --bg: #0f2b2b;
  --card: #0d2a2a;
  --hx-green: #a0d9d9;
  --hx-ink: #cce0e0;
  --muted: #8cb3b3;
  --hx-orange: #ffcc66;
  --ring: rgba(160, 217, 217, 0.2);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: var(--hx-ink);
}

body.dark-mode .nav-wrap {
  background: rgba(13, 42, 42, 0.85);
  box-shadow: none;
  border-bottom: 1px solid rgba(160, 217, 217, 0.15);
}

body.dark-mode .nav-bottom {
  border-top: none;
}

body.dark-mode .btn {
  background: var(--card);
  border-color: var(--hx-green);
}

body.dark-mode .btn.fill {
  background: var(--hx-green);
  color: #0d2a2a;
  border-color: var(--hx-green);
}

body.dark-mode .btn:hover {
  background: rgba(160, 217, 217, 0.1);
}

body.dark-mode .btn.fill:hover {
  filter: brightness(1.1);
}

body.dark-mode img {
  opacity: 0.85;
  transition: opacity 0.3s;
}

body.dark-mode img:hover {
  opacity: 1;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: var(--bg);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--hx-ink);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus {
  border-color: var(--hx-green);
  box-shadow: 0 0 0 3px var(--ring);
}

body.dark-mode footer {
  background: #0a1f1f;
  color: #b8d0d0;
}

body.dark-mode footer a {
  color: #b8d0d0;
}

body.dark-mode footer .visitcount,
body.dark-mode footer p {
  color: #b8d0d0 !important;
}

body.dark-mode .hamburger {
  background: var(--card);
  border-color: rgba(160, 217, 217, 0.2);
}

body.dark-mode .menu {
  background: var(--card);
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .hero {
  background: radial-gradient(
      1200px 400px at 50% -80px,
      rgba(160, 217, 217, 0.08),
      transparent
    )
    var(--bg);
}

body.dark-mode .pub-list li {
  background: var(--card);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .news-list li,
body.dark-mode .reference-box {
  background: var(--card);
  border-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--hx-orange);
}

.adatkezeles {
  margin-top: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 14px;
  color: #dff0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.adatkezeles summary {
  font-weight: 600;
  color: var(--hx-orange);
  list-style: none;
  font-size: 15px;
}

.adatkezeles summary::marker {
  content: "▸ ";
  color: var(--hx-orange);
}

.adatkezeles[open] summary::marker {
  content: "▾ ";
}

.adatkezeles div {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
}

body.dark-mode .adatkezeles {
  background: rgba(0, 0, 0, 0.2);
  color: #b8d0d0;
}

#lead-card img {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 15px;
}

#publikaciok .pub-list li {
  font-weight: 400;
  line-height: 1.55;
  background: #fcfdfd;
  border-left: 3px solid var(--hx-green);
  transition: box-shadow 0.2s, transform 0.2s;
}

#publikaciok .pub-list .pub-title {
  font-weight: 500;
  color: #004a4a;
}

#publikaciok .pub-list .pub-title em {
  color: #005959;
  font-style: italic;
}

#publikaciok .pub-list .pub-title strong {
  color: #333;
  font-weight: 600;
}

#publikaciok .pub-list .pub-title u {
  color: #005959;
  text-decoration-color: #005959;
  text-decoration-thickness: 1px;
}

#publikaciok .pub-list .meta {
  color: #6b8b8b;
  font-size: 0.9em;
  margin-top: 6px;
}

#publikaciok .pub-list .meta a {
  color: #f39c12;
  font-weight: 500;
}

#publikaciok .pub-list .meta a:hover {
  text-decoration: underline;
  color: #ffb733;
}

#publikaciok .pub-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.dark-mode #publikaciok .pub-list li {
  background: #0f2b2b;
  border-left-color: var(--hx-green);
  box-shadow: none;
}

body.dark-mode #publikaciok .pub-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

body.dark-mode #publikaciok .pub-list .pub-title {
  color: #b8d0d0;
  font-weight: 500;
}

body.dark-mode #publikaciok .pub-list .pub-title strong {
  color: #dfefff;
  font-weight: 600;
}

body.dark-mode #publikaciok .pub-list .pub-title u {
  color: var(--hx-green);
  text-decoration-color: var(--hx-green);
  text-decoration-thickness: 1px;
}

body.dark-mode #publikaciok .pub-list .meta {
  color: #8cb3b3;
}

body.dark-mode #publikaciok .pub-list .meta a {
  color: var(--hx-orange);
  font-weight: 500;
}

body.dark-mode #publikaciok .pub-list .meta a:hover {
  color: #ffdb88;
  text-decoration: underline;
}

body:not(.dark-mode) .brand img.odek-brand-logo {
  content: url("logo.svg");
}

body.dark-mode .brand img.odek-brand-logo,
body.dark-mode .brand img:not(.odekalk-logo-img) {
  content: url("logo-dark.png");
}

.switch-wrap {
  margin-right: 5px;
  width: 46px;
  height: 24px;
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.switch-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-slider::before {
  content: "";
  position: absolute;
  content: "";
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
  height: 18px;
  width: 18px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="orange" width="16px" height="16px"><path d="M12 9c-1.65 0-3 1.35-3 3s1.35 3 3 3 3-1.35 3-3-1.35-3-3-3zm0 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm8-4h-2.09c-.45-1.12-1.17-2.1-2.08-2.89L17.66 4.34 16.24 2.93 14.31 4.85C13.53 4.3 12.78 3.86 12 3.54V1h-2v2.54c-.78.32-1.53.76-2.31 1.31L5.76 2.93 4.34 4.34l1.74 1.74C5.25 6.9 4.53 7.88 4.09 9H2v2h2.09c.45 1.12 1.17 2.1 2.08 2.89L4.34 17.66l1.41 1.41 1.93-1.93c.78.55 1.53.99 2.31 1.31V21h2v-2.54c.78-.32 1.53-.76 2.31-1.31l1.93 1.93 1.41-1.41-1.74-1.74c.91-.79 1.63-1.77 2.08-2.89H22v-2zm-8 7c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

body.dark-mode .switch-slider {
  background-color: #555;
}

body.dark-mode .switch-wrap input:checked + .switch-slider {
  background-color: var(--hx-orange);
}

.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 26px;
  transition: background-color 0.3s;
}

.switch-wrap input:checked + .switch-slider::before {
  transform: translateX(22px);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23f0e1a8" width="16px" height="16px"><path d="M11.5 2c-5.25 0-9.5 4.25-9.5 9.5S6.25 21 11.5 21c.83 0 1.63-.11 2.4-.31-.3-.43-.53-.9-.69-1.4-.18-.58-.28-1.19-.28-1.82 0-3.31 2.69-6 6-6 .63 0 1.24.1 1.82.28.5.16.97.39 1.4.69.2-.77.31-1.57.31-2.4C21 6.25 16.75 2 11.5 2z"/></svg>');
}

.switch-wrap input:checked + .switch-slider {
  background-color: var(--hx-green);
}

.search-wrapper input[type="search"] {
  width: 100%;
  padding: 8px 10px 8px 34px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 0.95em;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search-wrapper:focus-within input {
  border-color: #008b8b;
  box-shadow: 0 0 0 3px rgba(0, 139, 139, 0.15);
}

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
select,
textarea {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.95em;
  transition: border-color 0.25s, box-shadow 0.25s;
}

input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: #008b8b;
  box-shadow: 0 0 0 3px rgba(0, 139, 139, 0.15);
  outline: 0;
}

button.btn,
input[type="submit"].btn {
  transition: background 0.25s, box-shadow 0.25s;
}

button.btn:focus,
button.btn:hover,
input[type="submit"].btn:focus,
input[type="submit"].btn:hover {
  background-color: #008b8b;
  box-shadow: 0 0 12px rgba(0, 139, 139, 0.25);
}

a:focus-visible,
a:hover {
  color: var(--hx-orange);
  text-shadow: 0 0 6px rgba(243, 156, 18, 0.3);
}

.heureka-logo-link {
  margin-bottom: 12px;
  display: inline-block;
}

.heureka-logo {
  width: 160px;
  height: auto;
  border-radius: 0 !important;
  object-fit: contain;
  margin: 0 0 12px;
  display: block;
  transition: transform 0.2s;
}

.heureka-logo:hover {
  transform: scale(1.05);
}

body.dark-mode .blog-post-image,
body.dark-mode .news-list li .news-image {
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.9;
}

#blog-hero-single {
  padding-top: 40px;
  padding-bottom: 30px;
  background: radial-gradient(
      1000px 300px at 50% -50px,
      rgba(0, 89, 89, 0.08),
      transparent
    )
    var(--bg);
}

body.dark-mode #blog-hero-single {
  background: radial-gradient(
      1000px 300px at 50% -50px,
      rgba(160, 217, 217, 0.08),
      transparent
    )
    var(--bg);
}

.blog-post-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 25px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-post-body {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--hx-ink);
}

.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
  color: var(--hx-green);
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  border-bottom: 2px solid rgba(0, 89, 89, 0.1);
  padding-bottom: 8px;
}

body.dark-mode .blog-post-body h2,
body.dark-mode .blog-post-body h3,
body.dark-mode .blog-post-body h4 {
  border-bottom-color: rgba(160, 217, 217, 0.2);
}

.blog-post-body h2 {
  font-size: 1.6em;
}

.blog-post-body h3 {
  font-size: 1.4em;
}

.blog-post-body h4 {
  font-size: 1.2em;
}

.blog-post-body p {
  margin-bottom: 1.2em;
}

.blog-post-body a {
  color: var(--hx-green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--hx-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.blog-post-body a:hover {
  color: var(--hx-orange);
  background-color: rgba(0, 89, 89, 0.05);
}

body.dark-mode .blog-post-body a:hover {
  background-color: rgba(160, 217, 217, 0.05);
}

.blog-post-body ol,
.blog-post-body ul {
  margin-bottom: 1.2em;
  padding-left: 25px;
}

.blog-post-body li {
  margin-bottom: 0.5em;
}

.blog-post-body blockquote {
  margin: 1.5em 0;
  padding: 15px 20px;
  background-color: rgba(0, 89, 89, 0.04);
  border-left: 4px solid var(--hx-orange);
  font-style: italic;
  color: var(--hx-green);
}

body.dark-mode .blog-post-body blockquote {
  background-color: rgba(160, 217, 217, 0.04);
  color: var(--hx-green);
}

.blog-post-body code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

body.dark-mode .blog-post-body code {
  background: rgba(255, 255, 255, 0.1);
}

.blog-post-body hr {
  border: 0;
  height: 1px;
  background: rgba(0, 89, 89, 0.1);
  margin: 2em 0;
}

body.dark-mode .blog-post-body hr {
  background: rgba(160, 217, 217, 0.2);
}

.reference-box {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--hx-orange);
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 0 auto 24px;
  text-align: left;
}

.reference-box h4 {
  margin: 0 0 8px;
  color: var(--hx-orange);
  font-size: 16px;
}

.reference-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hx-ink);
  opacity: 0.9;
}

.reference-box p a {
  color: var(--hx-green);
  font-weight: 500;
}

.reference-box p a:hover {
  text-decoration: underline;
  color: var(--hx-orange);
}

.drug-card ul,
.pwa-install-banner,
body.dark-mode .reference-box p {
  color: var(--hx-ink);
}

.logo-link-brand,
.logo-link-odekalk {
  display: inline-block;
  vertical-align: middle;
}

.odekalk-logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.25s, opacity 0.25s;
}

.logo-link-brand:hover img,
.logo-link-odekalk:hover .odekalk-logo-img {
  transform: scale(1.1);
  opacity: 0.85;
}

.pwa-install-text span,
body.dark-mode .logo-link-brand img,
body.dark-mode .odekalk-logo-img {
  opacity: 0.9;
}

body.dark-mode .logo-link-brand:hover img,
body.dark-mode .logo-link-odekalk:hover .odekalk-logo-img {
  opacity: 1;
  transform: scale(1.1);
}

body.dark-mode .brand img.odekalk-logo-img,
body:not(.dark-mode) .brand img.odekalk-logo-img {
  content: initial;
}

body:not(.dark-mode) .brand img:not(.odekalk-logo-img) {
  content: url("logo.png");
}

.news-list li .news-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 15px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

#hirek .news-list > li > a:first-child {
  color: var(--hx-orange) !important;
  text-decoration: none;
}

#hirek .news-list > li > a:first-child > .news-image {
  -webkit-filter: none !important;
  filter: none !important;
}

.odek-brand-logo {
  height: 40px;
  width: auto;
  display: block;
  transition: content 0.3s;
}

#kalk-header-logo {
  content: url("odekalk_logo.svg");
}

body.dark-mode #kalk-header-logo {
  content: url("odekalk_dark_logo.svg");
}

#kalk-header-logo,
#kalk-header-logo-dark {
  height: 44px;
  width: auto;
}

.pwa-install-banner-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 12px;
  transform: translateY(120%);
  transition: transform 0.4s ease-out;
}

.pwa-install-banner-wrapper.show {
  transform: translateY(0);
}

.pwa-install-banner {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.dark-mode .pwa-install-banner {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.pwa-install-banner img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.pwa-install-text {
  flex-grow: 1;
  font-size: 0.9em;
  line-height: 1.4;
}

.pwa-install-text strong {
  font-size: 1.1em;
  color: var(--hx-green);
  display: block;
}

.pwa-install-banner .btn-close {
  appearance: none;
  background: 0 0;
  border: none;
  color: var(--muted);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  padding: 0 5px;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.2s;
}

.drug-card h5 {
  padding: 6px 14px 6px 20px;
  margin: 12px -20px 8px;
  font-size: 0.9em;
}

.drug-card .drug-title-info {
  background-color: var(--hx-green);
  color: var(--hx-orange);
}

body.dark-mode .drug-card .drug-title-info {
  background-color: var(--hx-green);
  color: #0f2b2b;
}

.drug-card h5 + p,
.drug-card p:last-child {
  margin-top: 0;
}

.drug-warning-wrapper {
  margin-top: auto;
  padding-top: 12px;
}

.drug-card .drug-title-warn {
  background-color: #d93025;
  color: #fff;
  margin-top: 0;
  margin-bottom: 4px;
}

.drug-warning-wrapper p {
  color: #d93025;
  font-weight: 700;
  font-style: normal;
  margin-top: 0;
  margin-bottom: 0;
}

body.dark-mode .drug-warning-wrapper p {
  color: #ff8a80;
}

.drug-card {
  border-top: 4px solid var(--hx-green);
}

body.dark-mode .drug-card {
  border-top-color: var(--hx-green);
}

.drug-card p {
  margin-top: 4px;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.menu a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--hx-green);
  font-weight: 600;
  display: block;
  transition: background-color 0.2s, color 0.2s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu a:hover {
  background: rgba(0, 89, 89, 0.08);
  color: var(--hx-orange);
}

.menu a.active {
  color: #40bfbf;
  font-weight: 700;
  background-color: rgba(0, 89, 89, 0.05);
  box-shadow: inset 0 0 8px rgba(0, 89, 89, 0.08);
}

.drug-card .meta,
body.dark-mode .calc-result {
  color: #ffffff;
}

@keyframes highlightODeK {
  0%,
  100%,
  70% {
    color: inherit;
  }

  10%,
  40% {
    color: var(--hx-orange);
  }
}

@keyframes lightSweep {
  0% {
    transform: translateX(-100%) skewX(-20deg);
    opacity: 0.3;
  }

  20% {
    transform: translateX(450px) skewX(-20deg);
    opacity: 0.7;
  }

  100% {
    transform: translateX(450px) skewX(-20deg);
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .pwa-install-banner {
    flex-wrap: wrap;
    padding-bottom: 16px;
  }

  .pwa-install-text {
    width: 100%;
    flex-basis: 100%;
    order: 3;
    margin-top: 8px;
    text-align: center;
  }

  .pwa-install-banner img {
    order: 1;
  }

  #btn-pwa-install {
    order: 2;
    margin-left: auto;
  }

  .btn-close {
    order: 3;
    padding-left: 10px;
  }

  #gyogyszer-lista .pub-filters .search-wrapper,
  #gyogyszer-lista .pub-filters select#drugAtc,
  #gyogyszer-lista .pub-filters select#drugCategory,
  #gyogyszer-lista .pub-filters select#drugJumpTo {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  #mintafeladatok .card.full-width {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .menu,
  .nav-top .cta .btn:not(#darkModeToggle) {
    display: none;
  }

  .hamburger,
  .menu {
    position: fixed;
    background: var(--card);
  }

  .nav-top {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .nav-top .cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    order: 3;
  }

  .calc-card .cta,
  .card .cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    order: 0;
    width: 100%;
  }

  .odekalk-logo-img {
    height: 32px;
  }

  .nav-top .cta {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .menu {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: stretch;
    top: var(--mobile-menu-top, 64px);
    right: var(--mobile-menu-right, 16px);
    flex-direction: column;
    align-items: stretch;
    top: 60px;
    right: 16px;
    left: auto;
    width: min(260px, 80vw);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    z-index: 1999;
  }

  .menu.open {
    display: flex;
  }

/* --- MOBIL HAMBURGER (PEEK MÓD - JAVÍTOTT) --- */
  .hamburger {
    /* POZÍCIÓ: Kényszerítjük a jobb szélre */
    position: fixed !important;
    top: 85px !important;
    right: 0 !important;   /* Teljesen a szélére tapadjon */
    margin-right: 0 !important; /* Semmi margó ne legyen */
    z-index: 2000;
    
    /* KINÉZET */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--card);
    color: var(--hx-green);
    
    /* ALAK: Félkör (bal oldala kerek, jobb oldala egyenes) */
    border-radius: 24px 0 0 24px; 
    border: 1px solid rgba(0, 89, 89, 0.2);
    border-right: none; /* A jobb szélén ne legyen keret */
    box-shadow: -2px 2px 8px rgba(0,0,0,0.15);
    
    /* --- AZ ALVÓ ÁLLAPOT (A lényeg) --- */
    /* 50%-ot kitolunk jobbra, így csak a fele látszik */
    transform: translateX(50%); 
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Ruganyos effekt */
  }

  /* --- AKTÍV / ÉBER ÁLLAPOT (Első kattintás után) --- */
  .hamburger.peek-active {
    transform: translateX(0) !important; /* Teljesen beúszik */
    opacity: 1;
    right: 15px !important; /* Kicsit eljön a faltól */
    border-radius: 50%;     /* Visszaváltozik körré */
    box-shadow: -4px 4px 15px rgba(0,0,0,0.25);
    background-color: #fff;
  }
  
  /* Sötét mód fix */
  body.dark-mode .hamburger {
    background: #0d2a2a;
    border-color: rgba(255,255,255,0.15);
  }

  .nav-bottom {
    padding: 8px 24px;
    position: static;
  }

  .pub-filters select#calcJumpTo {
    display: block;
    flex: 1 1 240px;
    max-width: 350px;
  }

  .nav-wrap {
    z-index: 10;
    background: 0 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    position: static;
    top: auto;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .menu a {
    padding: 8px 10px;
    width: 100%;
  }

  .menu a.active,
  .menu a:hover {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    box-sizing: border-box;
  }
}

#gyogyszer-lista .pub-filters select#drugAtc option,
#gyogyszer-lista .pub-filters select#drugCategory option,
#gyogyszer-lista .pub-filters select#drugJumpTo option,
.substep-title {
  font-weight: 700;
  color: #005959;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .logo-hero {
    display: block;
    justify-self: center;
    background: var(--card);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
}

@media (min-width: 921px) {
  header[id],
  section[id] {
    scroll-margin-top: 140px;
  }

  .nav-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

.nav-top .cta img.odek-brand-logo,
.nav-top .cta img.odekalk-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-top .cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.nav-top .switch-wrap {
  width: 46px;
  height: 24px;
  margin-left: 0;
}

#gyogyszer-lista .pub-filters input#drugSearch,
#gyogyszer-lista .pub-filters input#patientWeight,
#gyogyszer-lista .pub-filters select#drugAtc,
#gyogyszer-lista .pub-filters select#drugCategory,
#gyogyszer-lista .pub-filters select#drugJumpTo {
  font-weight: 700;
  color: #005959 !important;
}

#gyogyszer-lista .pub-filters input#drugSearch::placeholder {
  color: #005959 !important;
  opacity: 1;
  font-weight: 700;
}

#gyogyszer-lista .drug-card h4,
.drug-card h4 {
  background-color: #005959;
  color: #fff;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 0;
  line-height: 1.3;
}

.substep-title {
  font-size: 1.7rem;
  margin: 0.8em 0 0.4em;
}

.calc-result,
.dose-label,
.drug-card h4 {
  color: var(--hx-green);
}

.p-lead-card {
  border: 1px solid #d5e8e6;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background-color: #f7fbfb;
  margin-bottom: 1rem;
}

.calc-result {
  background: rgba(0, 89, 89, 0.08);
  font-size: 0.95em;
}

body.dark-mode .calc-result {
  background: rgba(255, 204, 102, 0.1);
}

@media (max-width: 600px) {
  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .pub-filters .weight-wrapper {
    flex: 1 1 100% !important;
    max-width: 100%;
  }
}

.drug-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto auto;
  align-items: center;
}

.drug-filter-grid input,
.drug-filter-grid select {
  width: 100%;
  height: 42px;
}

.drug-card .meta {
  font-weight: 700;
  font-size: 0.95em;
  margin-bottom: 12px;
}

.drug-card p {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.dose-label {
  text-transform: uppercase;
  opacity: 0.8;
}

.dose-label.pediatric {
  margin-top: 15px;
}

.drug-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.search-area {
  grid-column: 1/2;
  grid-row: 1;
}

.weight-area {
  grid-column: 2/3;
  grid-row: 1;
}

.scenario-area {
  grid-column: 1/2;
  grid-row: 2;
}

.atc-area {
  grid-column: 2/3;
  grid-row: 2;
}

.jump-area {
  grid-column: 1/-1;
  grid-row: 3;
}

@media (max-width: 700px) {
  .drug-filter-grid {
    grid-template-columns: 1fr;
  }

  .atc-area,
  .jump-area,
  .scenario-area,
  .search-area,
  .weight-area {
    grid-column: 1/-1;
    grid-row: auto;
  }
}

.drug-card {
  position: relative;
  padding-bottom: 50px;
}

.drug-card h4 {
  margin-bottom: 4px;
  font-size: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 8px;
}

.drug-card ul {
  margin: 0 0 12px 20px;
  padding: 0;
  font-size: 0.95em;
  color: var(--hx-ink);
}

.dose-section {
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  font-size: 0.95em;
}

.dose-label,
.drug-warning {
  font-size: 0.85em;
  font-weight: 700;
}

.drug-warning {
  margin-top: 12px;
  background: rgba(231, 76, 60, 0.08);
  border-left: 3px solid #e74c3c;
  padding: 8px 10px;
  border-radius: 0 4px 4px 0;
  color: #c0392b;
  line-height: 1.4;
}

body.dark-mode .drug-warning {
  background: rgba(231, 76, 60, 0.2);
  color: #ffcdcd;
}

#gyogyszer-lista .pub-filters input#patientWeight::placeholder {
  color: #005959 !important;
  opacity: 1;
  font-weight: 700;
}

#gyogyszer-lista .pub-filters select#drugAtc {
  max-width: none !important;
  width: 100%;
}

.drug-filter-grid .atc-area,
.drug-filter-grid .weight-area {
  width: 100%;
}

.dose-section {
  margin-top: 15px;
  padding-top: 0;
  border-top: none;
}

.dose-label {
  color: #ffffff;
  display: block;
  background-color: #005959;
  opacity: 1;
  margin-left: -20px;
  margin-right: -20px;
  padding: 8px 20px;
  margin-bottom: 10px;
}

.calc-result,
body.dark-mode .calc-result {
  color: #fff !important;
  background-color: #005959;
}

.calc-result {
  display: inline-block;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

body.dark-mode .calc-result {
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.st-critical {
  color: #b30000 !important;
  font-weight: 700;
}

.st-warning {
  color: #d97c00 !important;
  font-weight: 600;
}
/* --- PWA Telepítés Gomb Arculati Igazítás --- */

#btn-pwa-install {
  /* Alapállapot: Karakteres zöld keret és szöveg */
  border: 2px solid #005959;
  color: #005959;
  background-color: transparent;
  font-weight: 700; /* Strong betűvastagság */
  transition: all 0.25s ease; /* Finom átmenet */
}

#btn-pwa-install:hover {
  /* Hover állapot: Teli zöld háttér, fehér szöveg */
  background-color: #005959 !important;
  color: #ffffff !important;
  border-color: #005959 !important;

  /* Opcionális: kis árnyék a kattintási ösztönzéshez */
  box-shadow: 0 4px 12px rgba(0, 89, 89, 0.3);
  transform: translateY(-1px);
}

/* Sötét mód korrekció (hogy ott se vesszen el) */
body.dark-mode #btn-pwa-install {
  border-color: var(--hx-orange);
  color: var(--hx-orange);
}

body.dark-mode #btn-pwa-install:hover {
  background-color: var(--hx-orange) !important;
  color: #0f2b2b !important; /* Sötét háttéren sötét betű a narancs gombban */
  border-color: var(--hx-orange) !important;
}
/* =========================================
   HÓESÉS STÍLUSOK (Kék és Kompakt verzió)
   ========================================= */
#snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
  display: none;
}

.snowflake {
  position: absolute;
  top: -20px;
  color: #fff;
  font-size: 1em;
  opacity: 0.8;
  -webkit-user-select: none;
  user-select: none;
  text-shadow: 0 0 2px rgba(0, 89, 89, 0.4);
  will-change: transform;
  animation: fall linear infinite;
}

body.dark-mode .snowflake {
  opacity: 0.6;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

@keyframes fall {
  0% {
    transform: translateY(-20px) translateX(0px) rotate(0deg);
  }
  100% {
    transform: translateY(105vh) translateX(20px) rotate(360deg);
  }
}

/* --- A GOMB STÍLUSA (Kék és Kisebb) --- */
#js-snow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;

  /* MÉRET CSÖKKENTÉSE */
  width: 36px; /* Fix szélesség (korábban valószínűleg 44px+ volt) */
  height: 36px; /* Fix magasság */
  padding: 0; /* Padding nullázása */
  margin-right: 8px; /* Kis távolság a mellette lévő elemtől */

  /* ALAP SZÍN (Halvány kék) */
  color: #3498db; /* Télies kék */
  border: 1px solid rgba(52, 152, 219, 0.3); /* Halvány kék keret */
  background: transparent;
  border-radius: 50%; /* Kerek gomb (opcionális, ha négyzeteset akarsz, töröld ki) */
}

/* Az ikon (SVG) méretének kényszerítése */
#js-snow-btn svg {
  width: 18px;
  height: 18px;
}

/* AKTÍV ÁLLAPOT (Erősebb kék + Ragyogás) */
#js-snow-btn.active {
  background-color: rgba(52, 152, 219, 0.15) !important;
  border-color: #3498db !important;
  color: #3498db !important;
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.5); /* Kék fény */
}

/* HOVER (Rávitel) */
#js-snow-btn:hover {
  border-color: #3498db;
  transform: scale(1.05); /* Pici nagyítás */
}

/* Sötét módban is jól látható legyen */
body.dark-mode #js-snow-btn {
  color: #81d4fa; /* Világosabb kék sötét háttéren */
  border-color: rgba(129, 212, 250, 0.3);
}
body.dark-mode #js-snow-btn.active {
  color: #fff !important;
  border-color: #81d4fa !important;
  box-shadow: 0 0 10px rgba(129, 212, 250, 0.4);
}
