/* TF identity aligned with truni.sk: white header, black typography, faculty grey. */
header {
  background: #fff !important;
}
.header-logo-container {
  align-items: center;
  gap: .8rem;
}
.header-logo-container .header-logo {
  flex: 0 0 64px;
}
.header-logo-container .header-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.header-logo-container .header-uni {
  display: none;
}
.header-logo-container .header-faculty {
  max-width: 280px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #111 !important;
  font-size: 0;
  line-height: 1.08;
  text-decoration: none;
}
.header-logo-container .header-faculty::before {
  content: "TEOLOGICKÁ FAKULTA\A TRUNI · BRATISLAVA";
  display: block;
  color: #111;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.12;
  white-space: pre-line;
}
.node[data-history-node-id="477"] {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 1rem;
  min-height: 0;
  padding: 2.35rem clamp(1.25rem, 6vw, 5rem);
  color: #171717;
  background: #a8a8a7;
}
.node[data-history-node-id="477"] > h2.d-none {
  display: block !important;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 3.35vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.02em;
  white-space: nowrap;
  pointer-events: none;
  cursor: default;
}
.node[data-history-node-id="477"] > h2 a {
  color: #171717;
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}
.node[data-history-node-id="477"] .node__content {
  grid-column: 1;
  grid-row: 2;
}
.node[data-history-node-id="477"] .node__content .row {
  display: block;
  margin: 0;
}
.node[data-history-node-id="477"] .node__content .col-lg-4 {
  max-width: none;
  margin: 0;
  padding: 0;
}
.node[data-history-node-id="477"] .node__content .col-lg-8,
.node[data-history-node-id="477"] .field--name-field-banner-image {
  display: none;
}
.node[data-history-node-id="477"] .tf-hero-programs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(.8rem, 2.1vw, 1.8rem);
}
.node[data-history-node-id="477"] .tf-hero-programs a {
  color: #171717;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(.78rem, 1.15vw, 1rem);
  font-weight: 700;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
#flexslider-1.flexslider {
  margin-bottom: 1.25rem;
  border: 0;
  background: transparent;
}
#flexslider-1 .flex-control-nav {
  bottom: .35rem;
}
body.path-frontpage #main-content {
  margin-top: 0;
}
@media (max-width: 767.98px) {
  .header-logo-container .header-logo {
    flex-basis: 50px;
  }
  .header-logo-container .header-faculty {
    max-width: 225px;
  }
  .header-logo-container .header-faculty::before {
    content: "TEOLOGICKÁ FAKULTA TRUNI\A so sídlom v Bratislave";
    font-size: .88rem;
  }
  .node[data-history-node-id="477"] {
    gap: .9rem;
    padding: 1.8rem 1.25rem 2rem;
  }
  .node[data-history-node-id="477"] > h2.d-none {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    line-height: 1.08;
    white-space: normal;
  }
  .node[data-history-node-id="477"] .tf-hero-programs {
    gap: .55rem 1rem;
  }
  .node[data-history-node-id="477"] .tf-hero-programs a {
    font-size: clamp(.68rem, 3.2vw, .82rem);
  }
}
@media (max-width: 380px) {
  .node[data-history-node-id="477"] .tf-hero-programs {
    gap: .45rem .65rem;
  }
  .node[data-history-node-id="477"] .tf-hero-programs a {
    font-size: .65rem;
    letter-spacing: .015em;
  }
}
/* Cohesive compact header + full-width homepage hero, revision 3. */
header { padding: 10px 0 0 !important; }
.header-logo-container {
  display: grid !important;
  grid-template-columns: 58px minmax(190px, 245px);
  grid-template-rows: auto auto;
  column-gap: .8rem; row-gap: .12rem; align-items: center;
}
.header-logo-container .header-logo {
  grid-column: 1; grid-row: 1 / 3; width: 58px;
}
.header-logo-container .header-faculty {
  grid-column: 2; grid-row: 1; max-width: none; align-self: end;
}
.header-logo-container .header-faculty::before {
  content: "TEOLOGICKÁ FAKULTA";
  font-size: 1.08rem; font-weight: 700; letter-spacing: .01em; line-height: 1.05;
}
.header-logo-container .header-uni {
  display: block; grid-column: 2; grid-row: 2; max-width: none;
  margin: 0; padding: 0; align-self: start; color: #555 !important;
  font-size: 0; line-height: 1; text-decoration: none;
}
.header-logo-container .header-uni::before {
  content: "TRNAVSKÁ UNIVERZITA · BRATISLAVA";
  color: #555; font-family: "DM Sans", Arial, sans-serif;
  font-size: .69rem; font-weight: 500; letter-spacing: .055em; line-height: 1.1;
}
#block-headermenu-2 > ul > li > a {
  font-size: .88rem !important; font-weight: 600 !important; letter-spacing: .005em;
}
body.path-frontpage header .header-container.container {
  position: relative; top: -22px; width: 100%; max-width: none;
  margin-bottom: -22px; padding-right: 0; padding-left: 0;
}
body.path-frontpage header .region-header,
body.path-frontpage header .region-header .view,
body.path-frontpage header .region-header .view-content,
body.path-frontpage #flexslider-1 { width: 100%; max-width: none; }
body.path-frontpage .node[data-history-node-id="477"] {
  min-height: 172px;
  padding: 2rem max(1.25rem, calc((100vw - 1280px) / 2));
  gap: .7rem;
}
body.path-frontpage .node[data-history-node-id="477"] > h2.d-none {
  font-size: clamp(2rem, 2.8vw, 2.75rem);
}
body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs { gap: 1.4rem; }
body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs a {
  font-size: .83rem; font-weight: 600;
}
body.path-frontpage .view-frontpage.view-display-id-page_1 { margin-top: 3.5rem; }
@media (max-width: 991.98px) {
  .header-logo-container { grid-template-columns: 50px minmax(160px, 210px); }
  .header-logo-container .header-logo { width: 50px; }
  .header-logo-container .header-faculty::before { font-size: .95rem; }
  .header-logo-container .header-uni::before {
    content: "TRUNI · BRATISLAVA"; font-size: .66rem;
  }
}
@media (max-width: 767.98px) {
  body.path-frontpage header .header-container.container {
    top: -10px; margin-bottom: -10px;
  }
  body.path-frontpage .node[data-history-node-id="477"] {
    min-height: 155px; padding: 1.65rem 1.25rem; gap: .65rem;
  }
  body.path-frontpage .node[data-history-node-id="477"] > h2.d-none {
    font-size: clamp(1.65rem, 7.7vw, 2.15rem);
  }
  body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs {
    justify-content: space-between; gap: .45rem;
  }
  body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs a {
    font-size: clamp(.64rem, 2.9vw, .78rem);
  }
  body.path-frontpage .view-frontpage.view-display-id-page_1 { margin-top: 2.5rem; }
}
/* Homepage transition: remove the empty pre-content band. */
body.path-frontpage #main-content .before-content-container { display: none; }
body.path-frontpage .view-frontpage.view-display-id-page_1 { margin-top: 0; }

body.path-frontpage .view-frontpage.view-display-id-page_1 { margin-top: -2rem; }

/* Soft-grey institutional variant, revision 4. */
header {
  background: #f4f4f2 !important;
  border-bottom: 1px solid #b6b6b2;
}
body.path-frontpage .node[data-history-node-id="477"] {
  min-height: 170px;
  background: #d0d0cc;
  border-top: 0;
  border-bottom: 1px solid #b6b6b2;
}
body.path-frontpage .node[data-history-node-id="477"] > h2.d-none {
  padding-left: 1.15rem;
  border-left: 3px solid #8f8f8b;
  font-size: clamp(1.95rem, 2.65vw, 2.55rem);
  line-height: 1.08;
}
body.path-frontpage .node[data-history-node-id="477"] .node__content {
  padding-left: calc(1.15rem + 3px);
}
body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs a {
  position: relative;
  text-decoration: none;
}
body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs a::after {
  position: absolute;
  right: 0;
  bottom: -.24rem;
  left: 0;
  height: 1px;
  background: #555;
  content: "";
  opacity: 0;
  transform: scaleX(.65);
  transition: opacity .18s ease, transform .18s ease;
}
body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs a:hover::after,
body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}
@media (max-width: 767.98px) {
  body.path-frontpage .node[data-history-node-id="477"] > h2.d-none {
    padding-left: .85rem;
    border-left-width: 2px;
  }
  body.path-frontpage .node[data-history-node-id="477"] .node__content {
    padding-left: calc(.85rem + 2px);
  }
}
/* Slim homepage hero, revision 5. */
body.path-frontpage .node[data-history-node-id="477"] {
  min-height: 142px;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
  gap: .45rem;
}
body.path-frontpage .node[data-history-node-id="477"] > h2.d-none {
  font-size: clamp(1.85rem, 2.35vw, 2.3rem);
}
@media (max-width: 767.98px) {
  body.path-frontpage .node[data-history-node-id="477"] {
    min-height: 135px;
    padding-top: 1.25rem;
    padding-bottom: 1.35rem;
  }
}
body.path-frontpage .node[data-history-node-id="622"] .field--name-field-popis { display: none; }


/* TF conservative unification audit — 2026-08-07. Rollback: tf_homepage_step1_backup_20260807. */
:root {
  --tf-ink: #111111;
  --tf-muted: #555555;
  --tf-surface: #f7f7f7;
  --tf-soft: #fafafa;
  --tf-line: #dedede;
  --tf-hero: #d4d4d2;
}
html { overflow-x: clip; }
body { color: var(--tf-ink); background: #fff; }
main .field--name-body a,
main .field--name-field-body-1 a {
  color: var(--tf-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #111 !important;
  outline-offset: 3px !important;
}

header {
  padding-top: .65rem !important;
  background: var(--tf-surface) !important;
  border-bottom: 1px solid var(--tf-line) !important;
}
header .navbar-container {
  width: min(100% - 2rem, 1880px);
  margin-inline: auto;
}
.header-logo-container {
  display: grid !important;
  grid-template-columns: 68px minmax(230px, 310px) !important;
  grid-template-rows: auto auto !important;
  column-gap: .9rem !important;
  row-gap: .15rem !important;
  align-items: center !important;
  flex: 0 0 auto;
}
.header-logo-container .tf-faculty-home {
  display: grid;
  grid-column: 1 / 3;
  grid-row: 1;
  grid-template-columns: 68px minmax(230px, 310px);
  column-gap: .9rem;
  align-items: center;
  color: var(--tf-ink);
  text-decoration: none;
}
.header-logo-container .tf-faculty-home img {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.header-logo-container .tf-faculty-name {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .005em;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-logo-container .header-uni {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 2 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--tf-muted) !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.header-logo-container .header-uni::before {
  content: "TRNAVSKÁ UNIVERZITA V TRNAVE" !important;
  color: var(--tf-muted);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .78rem !important;
  font-weight: 500;
  letter-spacing: .045em;
  line-height: 1.1;
}
.header-logo-container .header-uni::after {
  content: "  ↗";
  color: var(--tf-muted);
  font-size: .72rem;
}
#block-headermenu-2 > ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(.55rem, 1.1vw, 1.25rem);
}
#block-headermenu-2 > ul > li > a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: .35rem 0 !important;
  color: var(--tf-ink) !important;
  font-size: clamp(.76rem, .82vw, .9rem) !important;
  white-space: nowrap;
}
#search-block-form .search-form-toggle,
.mobilemenu--toggle {
  box-sizing: border-box;
  min-width: 44px !important;
  min-height: 44px !important;
  align-items: center;
  justify-content: center;
}
#search-block-form .search-form-toggle::after { display: none !important; }
.mobilemenu--toggle .line { background: var(--tf-ink) !important; }

body.path-frontpage .node[data-history-node-id="477"] {
  min-height: 0 !important;
  padding-top: .75rem !important;
  padding-bottom: .8rem !important;
  gap: .35rem !important;
  background: var(--tf-hero) !important;
  border-bottom: 1px solid #bdbdb9 !important;
}
body.path-frontpage .node[data-history-node-id="477"] > h2.d-none {
  padding-left: 1rem !important;
  border-left: 2px solid #8d8d89 !important;
  font-size: clamp(1.75rem, 2.25vw, 2.2rem) !important;
  line-height: 1.05 !important;
}
body.path-frontpage .node[data-history-node-id="477"] .node__content {
  padding-left: calc(1rem + 2px) !important;
}
body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.1rem) !important;
}
body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--tf-ink);
  font-size: 1rem !important;
  font-weight: 650 !important;
}

body.page-node-type-page #block-views-block-interesting-articles-block-1 {
  display: none !important;
}
body.page-node-type-article #block-views-block-interesting-articles-block-1 {
  display: block;
}
body.path-frontpage .view-frontpage.view-display-id-page_1 img,
.node--view-mode-teaser1 .field--name-field-image img,
#block-views-block-interesting-articles-block-1 img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
body.path-frontpage img[src*="studia-aloisiana-17-2026-1-thumbnail"],
#block-views-block-interesting-articles-block-1 img[src*="studia-aloisiana-17-2026-1-thumbnail"] {
  object-fit: contain;
  background: #969696;
}
body.path-frontpage .view-frontpage.view-display-id-page_1 .views-row {
  margin-bottom: 2.25rem;
}
body.path-frontpage .view-frontpage.view-display-id-page_1 .field--name-node-title,
body.path-frontpage .view-frontpage.view-display-id-page_1 .field--name-field-date {
  margin-top: .75rem;
}

footer,
.footer-container {
  background: var(--tf-soft) !important;
}
footer {
  border-top: 1px solid #e5e5e5 !important;
}
footer a { color: var(--tf-ink) !important; }
footer nav h2.visually-hidden:focus { color: var(--tf-ink); }
footer .copy-container { border-top-color: #e5e5e5 !important; }

@media (min-width: 1200px) {
  #block-headermenu-2 { display: block !important; }
  #block-headermenu-mobile { display: none !important; }
}
@media (max-width: 1199.98px) {
  header .navbar-container {
    width: min(100% - 1.25rem, 1000px);
    flex-wrap: nowrap !important;
  }
  #block-headermenu-2 { display: none !important; }
  #block-headermenu-mobile { display: block !important; }
  #nav-wrapper { flex-wrap: nowrap !important; }
  #mobilemenu--content a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding-block: .65rem;
  }
}
@media (max-width: 767.98px) {
  header { padding-top: .45rem !important; }
  .header-logo-container {
    grid-template-columns: 50px minmax(170px, 1fr) !important;
    column-gap: .65rem !important;
  }
  .header-logo-container .tf-faculty-home {
    grid-template-columns: 50px minmax(170px, 1fr);
    column-gap: .65rem;
  }
  .header-logo-container .tf-faculty-home img {
    width: 50px;
    height: 50px;
  }
  .header-logo-container .tf-faculty-name {
    font-size: .84rem;
    white-space: normal;
  }
  .header-logo-container .header-uni::before {
    content: "TRNAVSKÁ UNIVERZITA V TRNAVE" !important;
    font-size: .63rem !important;
    letter-spacing: .025em;
  }
  .header-logo-container .header-uni::after { font-size: .6rem; }
  body.path-frontpage .node[data-history-node-id="477"] {
    padding: .7rem 1rem .8rem !important;
  }
  body.path-frontpage .node[data-history-node-id="477"] > h2.d-none {
    padding-left: .75rem !important;
    font-size: clamp(1.45rem, 6.7vw, 1.9rem) !important;
    white-space: normal !important;
  }
  body.path-frontpage .node[data-history-node-id="477"] .node__content {
    padding-left: 0 !important;
  }
  body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem !important;
  }
  body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs a {
    justify-content: center;
    border: 1px solid #9d9d99;
    background: rgba(255,255,255,.2);
    font-size: clamp(.7rem, 3.1vw, .88rem) !important;
    text-align: center;
  }
  body.path-frontpage .view-frontpage.view-display-id-page_1 .views-row {
    width: 100%;
    margin-bottom: 1.75rem;
  }
}
@media (max-width: 389.98px) {
  header .navbar-container { width: calc(100% - .75rem); }
  .header-logo-container {
    grid-template-columns: 44px minmax(145px, 1fr) !important;
    column-gap: .5rem !important;
  }
  .header-logo-container .tf-faculty-home {
    grid-template-columns: 44px minmax(145px, 1fr);
    column-gap: .5rem;
  }
  .header-logo-container .tf-faculty-home img {
    width: 44px;
    height: 44px;
  }
  .header-logo-container .tf-faculty-name { font-size: .76rem; }
  .header-logo-container .header-uni::before { font-size: .56rem !important; }
  body.path-frontpage .node[data-history-node-id="477"] .tf-hero-programs a {
    min-height: 46px;
    font-size: .67rem !important;
    letter-spacing: 0;
  }
}


/* Post-deployment correction: compact navigation before the desktop row can overflow. */
@media (min-width: 1400px) {
  #block-headermenu-2 { display: block !important; }
  #block-headermenu-mobile { display: none !important; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #block-headermenu-2 { display: none !important; }
  #block-headermenu-mobile { display: block !important; }
  #nav-wrapper { flex-wrap: nowrap !important; }
}
