/* home page (home/layout.php): hero with search and tiles, alert, audience columns, transparency band */
/* the hero touches the menu: no white band between them, and the page ends with the content block */
.st-home .st-main { padding-top: 0; padding-bottom: 0; min-height: 0; }
/* photo hero (the institution building; see media/images/CREDITS.md): the shade darkens the text side and the bottom, the photo stays visible on the right */
.st-hero { position: relative; isolation: isolate; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.75rem, 6vw, 5rem); background: #0b2440 var(--st-hero-img, url("../images/hero.jpg")) 60% 38% / cover no-repeat; color: #fff; box-shadow: inset 0 -36px 48px -24px rgba(5, 20, 40, .55); }
.st-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 25, 48, .25) 0%, rgba(5, 25, 48, 0) 30%, rgba(5, 25, 48, .12) 60%, rgba(5, 25, 48, .72) 100%), linear-gradient(90deg, rgba(6, 27, 52, .92) 0%, rgba(6, 27, 52, .7) 36%, rgba(6, 27, 52, .18) 70%, rgba(6, 27, 52, 0) 100%); }
.st-hero__title { margin: 0 0 1.25rem; font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem); font-weight: 800; line-height: 1.15; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.st-hero__title::after { content: ""; display: block; width: 72px; height: 5px; margin-top: .7rem; border-radius: 3px; background: var(--st-accent); }
.st-hero__search label { display: block; margin-bottom: .4rem; font-weight: 700; }
.st-hero__box { display: flex; max-width: 760px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.st-hero__box input { flex: 1 1 auto; min-width: 0; min-height: 56px; padding: 0 1rem; border: 0; font: inherit; color: #1d2733; background: #fff; }
.st-hero__box input:focus-visible { outline-offset: -3px; }
.st-hero__box button { flex: none; min-height: 56px; padding: 0 1.6rem; border: 0; background: var(--st-accent); color: #000; font: inherit; font-weight: 800; cursor: pointer; }
.st-hero__box button:hover { filter: brightness(1.08); }

.st-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.st .st-tile { display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: 1rem 1.1rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: background .15s, transform .15s; }
.st .st-tile:hover { background: #fff; color: var(--st-primary); transform: translateY(-2px); }
.st-home__ico { flex: none; margin-bottom: .35rem; color: var(--st-accent); }
.st-tile__t { font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.st-tile__h { font-size: .88rem; opacity: .9; }

.st-homebody { padding-block: 1.75rem 2.5rem; }
.st-alert { margin: 0 0 1.5rem; padding: .8rem 1.1rem; border-left: 6px solid var(--st-accent); border-radius: 0 10px 10px 0; background: #fdf3df; color: #1d2733; }
.st .st-alert a { color: #6b4300; font-weight: 700; }

.st-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.st-col { padding: 1.2rem 1.25rem; border: 1px solid var(--st-line); border-radius: 14px; background: var(--st-card); }
.st-col__h { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; padding-bottom: .6rem; border-bottom: 3px solid var(--st-accent); font-size: 1.3rem; color: var(--st-primary); }
.st-col__h .st-home__ico { margin: 0; color: var(--st-primary); }
.st-col__links, .st-col__news { margin: 0; padding: 0; list-style: none; }
.st-col__links li + li { border-top: 1px solid var(--st-line); }
.st .st-col__links a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; font-weight: 700; text-decoration: none; }
.st .st-col__links a::after { content: "›"; color: var(--st-accent); font-size: 1.4rem; line-height: 1; }
.st .st-col__links a:hover { text-decoration: underline; }
.st-col__sub { margin: 1.1rem 0 .4rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--st-muted); }
.st-col__news li { display: flex; flex-direction: column; gap: .1rem; padding: .55rem 0; border-top: 1px solid var(--st-line); }
.st-col__news time { font-size: .8rem; font-weight: 700; color: var(--st-muted); }
.st-col__news a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .98rem; line-height: 1.4; overflow-wrap: anywhere; }

.st-home__all { margin: 1.5rem 0 0; text-align: center; }
.st .st-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.6rem; border: 2px solid var(--st-primary); border-radius: 999px; color: var(--st-primary); font-weight: 800; text-decoration: none; }
.st .st-btn:hover { background: var(--st-primary); color: #fff; }

.st-trans { margin-top: 2rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: var(--st-primary); color: #fff; }
.st-trans h2 { margin: 0 0 .6rem; font-size: 1.1rem; color: #fff; }
.st-trans ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.st .st-trans a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; }
.st .st-trans a:hover { background: #fff; color: var(--st-primary); }

:root.st-contrast .st-hero, :root.st-contrast .st-trans { background: #000; border: 2px solid #fff; box-shadow: none; }
:root.st-contrast .st-hero::before { display: none; }
:root.st-contrast .st-alert { background: #000; color: #fff; border-color: #ffd400; }
:root.st-contrast .st .st-alert a { color: #ffd400; }
:root.st-contrast .st-col__h, :root.st-contrast .st-col__h .st-home__ico { color: #fff; }

@media (max-width: 991px) {
	.st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.st-cols { grid-template-columns: 1fr; }
}
@media (max-width: 767px) { .st-hero { background-size: cover; background-position: 55% 50%; } .st-hero::before { background: linear-gradient(180deg, rgba(5, 25, 48, .78) 0%, rgba(5, 25, 48, .62) 45%, rgba(5, 25, 48, .92) 100%); } }
@media (max-width: 479px) {
	.st-hero__box { flex-direction: column; }
	.st-hero__box button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .st .st-tile { transition: none; } .st .st-tile:hover { transform: none; } }
@media print { .st-hero__search, .st-tiles, .st-trans { display: none; } }

/* recent events (com_stgalerie) */
.st-events { margin-top: 2rem; }
.st-events h2 { margin: 0 0 .8rem; font-size: 1.35rem; }
.st-events__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.st-events__item { margin: 0; background: var(--st-card); border: 1px solid var(--st-line); border-radius: 14px; overflow: hidden; }
.st .st-events__item a { display: flex; flex-direction: column; height: 100%; color: var(--st-text); text-decoration: none; }
.st-events__item img, .st-events__noimg { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--st-line); }
.st-events__t { display: block; padding: .8rem 1rem 1rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.st-events__t time { display: block; font-weight: 400; font-size: .92rem; color: var(--st-muted); }
.st .st-events__item a:hover .st-events__t, .st .st-events__item a:focus-visible .st-events__t { text-decoration: underline; }
:root.st-contrast .st-events__item { background: #000; border: 2px solid #fff; }
@media (max-width: 991px) { .st-events__list { grid-template-columns: 1fr; } }

.st-col__all { margin: .6rem 0 0; font-weight: 700; }

/* alert with the newest announcements (list variant of mod_stblocks) */
.st-alert--list { padding: 1rem 1.25rem; }
.st-alert__h { margin: 0 0 .5rem; font-size: 1.15rem; color: #1d2733; }
.st-alert__list { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.st-alert__list li { display: flex; flex-wrap: wrap; gap: .15rem .75rem; align-items: baseline; margin: 0; }
.st-alert__list time { flex: none; min-width: 5.5rem; font-size: .92rem; color: #4a3a12; }
@media (max-width: 575px) { .st-alert__list time { min-width: 0; flex-basis: 100%; } }
:root.st-contrast .st-alert__h { color: #fff; }
:root.st-contrast .st-alert__list time { color: #fff; }
