/* TF header and programme strip responsive correction — 2026-08-07. */
.node[data-history-node-id="477"] .tf-hero-programs br {
  display: none !important;
}
.header-logo-container .tf-faculty-name {
  font-size: 1.04rem !important;
}
#block-headermenu-2 > ul a.is-active {
  color: #111 !important;
  background-color: transparent !important;
  box-shadow: inset 0 -2px #111;
}
#block-headermenu-mobile #mobilemenu--content ul.menu a.is-active {
  color: #111 !important;
  background-color: #f3f3f1 !important;
  border-color: #111 !important;
}
#block-headermenu-2 > ul {
  gap: clamp(.45rem, .85vw, 1rem) !important;
}
@media (max-width: 1499.98px) {
  #block-headermenu-2 { display: none !important; }
  #block-headermenu-mobile { display: block !important; }
  #nav-wrapper { flex-wrap: nowrap !important; }
}
@media (min-width: 1500px) {
  #block-headermenu-2 { display: block !important; }
  #block-headermenu-mobile { display: none !important; }
}
@media (max-width: 767.98px) {
  header .navbar-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .25rem;
    align-items: center !important;
    width: calc(100% - 1rem) !important;
  }
  .header-logo-container {
    grid-column: 1;
    min-width: 0;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    column-gap: .5rem !important;
  }
  .header-logo-container .tf-faculty-home {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    column-gap: .5rem !important;
    min-width: 0;
  }
  .header-logo-container .tf-faculty-home img {
    width: 42px !important;
    height: 42px !important;
  }
  .header-logo-container .tf-faculty-name {
    overflow: hidden;
    font-size: 0 !important;
  }
  .header-logo-container .tf-faculty-name::before {
    content: "TEOLOGICKÁ FAKULTA";
    display: block;
    color: #111;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
  }
  .header-logo-container .header-uni {
    overflow: hidden;
    min-width: 0;
  }
  .header-logo-container .header-uni::before {
    content: "TRNAVSKÁ UNIVERZITA · BRATISLAVA" !important;
    font-size: .53rem !important;
    letter-spacing: .012em !important;
    white-space: nowrap;
  }
  .header-logo-container .header-uni::after { display: none !important; }
  #nav-wrapper {
    grid-column: 2;
    min-width: 88px;
    flex: 0 0 88px !important;
  }
  #search-block-form .search-form-toggle,
  .mobilemenu--toggle {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
  }
  #mobilemenu--content::before,
  #mobilemenu--content::after,
  .mobilemenu--toggle::before,
  .mobilemenu--toggle::after {
    display: none !important;
    content: none !important;
  }
  body.path-frontpage .node[data-history-node-id="477"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: .8rem .75rem .9rem !important;
    overflow: hidden;
  }
  body.path-frontpage .node[data-history-node-id="477"] > h2.d-none {
    max-width: 100%;
    padding-left: .65rem !important;
    font-size: clamp(1.45rem, 7vw, 1.8rem) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  body.path-frontpage .node[data-history-node-id="477"] .node__content {
    width: 100%;
    padding-left: 0 !important;
  }
  body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: .4rem !important;
    width: 100%;
  }
  body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs a {
    box-sizing: border-box;
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding: .35rem .2rem;
    border: 1px solid #9d9d99;
    background: rgba(255,255,255,.22);
    font-size: clamp(.75rem, 3.05vw, .8rem) !important;
    letter-spacing: 0 !important;
    text-align: center;
    white-space: nowrap;
  }
  body.path-frontpage .view-frontpage.view-display-id-page_1 .view-content.row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  body.path-frontpage .view-frontpage.view-display-id-page_1 .views-row {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
}
@media (max-width: 374.98px) {
  .header-logo-container .tf-faculty-name::before { font-size: .69rem; }
  .header-logo-container .header-uni::before { font-size: .48rem !important; }
  body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs a {
    font-size: .75rem !important;
  }
}