/* Infectioase.ro v4.6.1 — isolated public UI corrections. No admin selectors. */

/* NAVIGATION: leave the original typography/colours intact; repair interaction. */
.infectioase-navfix,
.infectioase-navfix > ul,
.infectioase-navhost { overflow: visible !important; }
.infectioase-navfix { isolation: isolate; }
.infectioase-navfix .infectioase-has-dropdown { position: relative; }
.infectioase-navfix .infectioase-dropdown {
  z-index: 9999 !important;
  box-sizing: border-box;
  overflow: visible;
}
.infectioase-navfix .infectioase-dropdown a {
  display: block;
  box-sizing: border-box;
  line-height: 1.35;
  white-space: normal;
}
@media (min-width: 901px) and (hover: hover) {
  .infectioase-navfix .infectioase-has-dropdown > .infectioase-dropdown {
    position: absolute;
    top: 100% !important;
    margin-top: 0 !important;
    transform: none !important;
    min-width: min(235px, 82vw);
    max-width: min(380px, 90vw);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .infectioase-navfix .infectioase-has-dropdown:is(:hover, :focus-within, .infectioase-menu-open) > .infectioase-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  /* Safe pointer bridge also works with themes that introduce a vertical gap. */
  .infectioase-navfix .infectioase-has-dropdown > .infectioase-dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
    background: transparent;
  }
  .infectioase-navfix .infectioase-dropdown .infectioase-has-dropdown > .infectioase-dropdown {
    left: 100%;
    top: 0 !important;
  }
}
@media (max-width: 900px), (hover: none) {
  .infectioase-navfix .infectioase-has-dropdown.infectioase-menu-open > .infectioase-dropdown,
  .infectioase-navfix .infectioase-has-dropdown:focus-within > .infectioase-dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .infectioase-navfix .infectioase-has-dropdown > .infectioase-dropdown {
    position: static !important;
    transform: none !important;
    max-width: 100%;
  }
}

/* RICH TEXT: only applied to CMS public content, never to the dashboard. */
.infectioase-content-polish {
  --infectioase-ink: #17314b;
  --infectioase-muted: #566779;
  --infectioase-line: #dbe5ec;
  --infectioase-accent: #147e9a;
  color: var(--infectioase-ink);
  line-height: 1.72;
  overflow-wrap: anywhere;
}
.infectioase-content-polish :is(p, ul, ol, blockquote) { margin-block: 0 1.2rem; }
.infectioase-content-polish :is(h2, h3, h4) {
  line-height: 1.3;
  letter-spacing: -.015em;
  color: #123b57;
  overflow-wrap: anywhere;
}
.infectioase-content-polish h2:not(:first-child) { margin-top: 2rem; }
.infectioase-content-polish h3:not(:first-child) { margin-top: 1.5rem; }
.infectioase-content-polish :is(ul, ol):not(.infectioase-contact-list):not(.infectioase-document-grid) {
  padding-inline-start: 1.35rem;
}
.infectioase-content-polish li + li { margin-top: .35rem; }
.infectioase-content-polish a { text-underline-offset: .17em; }
.infectioase-content-polish :is(img, video, iframe, table) { max-width: 100%; }
.infectioase-content-polish img { height: auto; }
.infectioase-content-polish blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.3rem;
  border-inline-start: 4px solid var(--infectioase-accent);
  background: #f1f8fa;
  border-radius: 0 10px 10px 0;
}
.infectioase-content-polish table {
  border-collapse: collapse;
  margin: 1.15rem 0;
  width: 100%;
  font-size: .96rem;
}
.infectioase-content-polish :is(th, td) {
  border: 1px solid var(--infectioase-line);
  padding: .75rem .9rem;
  text-align: start;
  vertical-align: top;
}
.infectioase-content-polish th { background: #edf5f8; font-weight: 650; }
.infectioase-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.infectioase-content-polish .infectioase-document-grid,
.infectioase-content-polish .infectioase-contact-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  margin: 1rem 0 1.75rem;
  padding: 0 !important;
  list-style: none !important;
}
.infectioase-content-polish .infectioase-document-grid > li,
.infectioase-content-polish .infectioase-contact-list > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 1.05rem 1.15rem;
  background: #fff;
  border: 1px solid var(--infectioase-line);
  border-radius: 14px;
  box-shadow: 0 7px 24px rgba(16, 45, 67, .055);
  min-width: 0;
}
.infectioase-content-polish .infectioase-document-grid > li:hover { border-color: #95bfc9; }

/* CONTACT: the original information is moved, not copied or rewritten. */
.infectioase-contact-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-block: 1.1rem 2rem;
}
.infectioase-contact-section-heading {
  grid-column: 1 / -1;
  margin: 1.1rem 0 .1rem !important;
  padding-bottom: .65rem;
  border-bottom: 1px solid #dbe5ec;
  font-size: 1.35rem;
}
.infectioase-contact-card {
  position: relative;
  min-width: 0;
  padding: 1.25rem 1.3rem 1.4rem;
  border: 1px solid #dae5ec;
  border-top: 3px solid #16839e;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 45, 67, .055);
  overflow-wrap: anywhere;
}
.infectioase-contact-card :is(h2,h3,h4) {
  margin: 0 0 .7rem !important;
  font-size: clamp(1.02rem, 1.4vw, 1.19rem);
  line-height: 1.4;
  color: #124661;
}
.infectioase-contact-card :is(p,li) { margin: 0 0 .6rem; line-height: 1.6; }
.infectioase-contact-card :is(p,li):last-child { margin-bottom: 0; }
.infectioase-contact-card a {
  color: #075d7a;
  text-decoration-color: #a9cad4;
  overflow-wrap: anywhere;
}
.infectioase-contact-card a:hover { color: #02425b; text-decoration-color: currentColor; }
.infectioase-contact-card :is(ul,ol) { margin: .4rem 0; padding-left: 1.2rem; }
.infectioase-contact-list > li { border-top: 3px solid #16839e !important; }
.infectioase-contact-grid > :is(iframe,figure,table,form) { grid-column: 1 / -1; }
@media (max-width: 1350px) {
  .infectioase-contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .infectioase-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .infectioase-content-polish .infectioase-document-grid,
  .infectioase-content-polish .infectioase-contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .infectioase-contact-grid,
  .infectioase-content-polish .infectioase-document-grid,
  .infectioase-content-polish .infectioase-contact-list { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .infectioase-contact-card { padding: 1.05rem 1.1rem; }
  .infectioase-content-polish :is(th,td) { padding: .55rem .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .infectioase-navfix * { transition: none !important; }
}
