/* Akadálymentességi felülírások a Bootstrap után (antislop audit-001, 2026-11-15) */

/* Kis piros szöveg sötét háttéren: a Bootstrap #dc3545 csak 3.6:1, ez 5.3:1 (WCAG AA) */
.text-danger {
  color: var(--hv-red-text, #ff5a55) !important;
}

/* Érintési célterület: űrlapmezők és a mobil menü gomb legalább 44 px magas */
.form-control,
.form-select {
  min-height: 44px;
}

textarea.form-control {
  min-height: 88px;
}

.navbar-toggler {
  min-height: 44px;
  min-width: 44px;
}

/* Szerkesztőből jövő táblázat: a tiptap <figure class="table">-be teszi, és a Bootstrap .table
   stílusa ettől fehérre festené a sorokat (fehér szöveg fehér háttéren). Sötét témához igazítjuk. */
figure.table {
  --bs-table-bg: transparent;
  --bs-table-color: inherit;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
  --bs-table-border-color: rgba(255, 255, 255, 0.15);
  width: 100%;
  margin: 1.25rem 0;
  color: inherit;
}

figure.table > table {
  width: 100%;
  margin: 0;
}

/* Mobilon a cikkbe illesztett táblázat nem görget oldalra: fix elrendezés, a szöveg tördelődik */
@media (max-width: 767.98px) {
  figure.table > table,
  .news-content table,
  .hw-body table,
  .simulator-guide-content table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }

  figure.table th,
  figure.table td,
  .news-content th,
  .news-content td,
  .hw-body th,
  .hw-body td,
  .simulator-guide-content th,
  .simulator-guide-content td {
    min-width: 0 !important;
    padding: 6px 6px !important;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Szövegközi kód: a Bootstrap rózsaszíne sötét háttéren csak 4.2:1 */
code {
  color: #ff8fc7;
}

/* Linknek látszó gomb (pl. „Süti beállítások” a szövegben) */
.hv-linklike {
  display: inline;
  padding: 0;
  font: inherit;
  color: var(--hv-red-text, #ff5a55);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  cursor: pointer;
}

.hv-linklike:hover {
  color: #fff;
}

.hv-linklike:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Hír alján: kapcsolódó szimulátor doboz (belső link az adatlapra) */
.hv-related-sim {
  display: grid;
  gap: 10px;
  margin: 1.5rem 0;
}

.hv-related-sim__link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 3px solid #e10600;
  border-radius: 0 6px 6px 0;
  transition: border-color 0.2s ease;
}

.hv-related-sim__link:hover {
  color: #fff;
  border-color: rgba(225, 6, 0, 0.6);
}

.hv-related-sim__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hv-related-sim__link img {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.hv-related-sim__link span {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.hv-related-sim__link small {
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.hv-related-sim__link strong {
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 1.15rem;
}

.hv-related-sim__link em {
  font-style: normal;
  font-size: 0.85rem;
  color: #c4c4c4;
}

.hv-related-sim__link > i {
  color: var(--hv-red-text, #ff5a55);
}

@media (prefers-reduced-motion: reduce) {
  .hv-related-sim__link { transition: none; }
}

/* Üres Google-hirdetés: ha a Google nem ad hirdetést (data-ad-status="unfilled"), a doboza eltűnik,
   ne maradjon utána egy üres, keretes 300×250-es terület. A Google ezt a jelzést kifejezetten erre adja. */
.modern-sidebar-card:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.advertisement-item:has(ins.adsbygoogle[data-ad-status="unfilled"]),
div:has(> ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
}

/* audit-004 (2026-11-15) */
/* Telefonon a g-5 sor (3rem köz) szélesebb lenne a tárolónál, és a doboz levágná a szélét: kisebb köz */
@media (max-width: 575.98px) {
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
}
/* Telefonon a kis linkek és fülek is legalább 44 px magasak, hogy ujjal is eltalálhatók legyenek */
@media (max-width: 767.98px) {
  .top-bar-user-btn { min-height: 44px; padding-top: 0; padding-bottom: 0; }
  .hw-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .pf-tabs button, .pf-hl__more, .pf-more-link { min-height: 44px; }
  .container .btn-sm { min-height: 44px; display: inline-flex; align-items: center; }
  .pv-toc a { display: inline-flex; align-items: center; min-height: 44px; }
}
