/* Custom CSS */
h1,
h2,
h3,
.h1,
.h2,
.h3 {
	color: #e77919;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
}


.node__title-link,
.node__title-link:visited,
.node__title-link:hover {
	color: #e77919;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
}

.node--view-mode-full .node__title,
.node--view-mode-full .field-node--node-title * {
	color: #e77919;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
}

.node--view-mode-teaser .node__title,
.node--view-mode-teaser .field-node--node-title * {
	color: #e77919;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
}

.block__title,
.block-menu__title,
.pane__title {
	color: #e77919;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
  margin-bottom: 0.25rem;
}

.site-branding__slogan {
	color: #e77919;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
	margin: 0;
	line-height: 1.2;
	font-style: normal;
	font-size: 2rem;
	text-align: center;
}

.l-navbar {
	background-color: #fafafa;
}

.ms-dropmenu .rm-block__content .menu-level-1 >
li >
span >
.menu__link,
.ms-horizontal .rm-block__content .menu-level-1 >
li >
span >
.menu__link {
	border: 1px #ffffff solid;
	border-bottom: 0;
	margin: 0 5px;
	font-family: "square", sans-serif;
	font-size: 1.25rem;
	line-height: 1.2;
	text-indent: 0;
}

#user-name-block,
#user-name-block * {
	display: none;
}

.field_person_photo {
	float: right;
}

#left-info {
	display: inline-block;
}

#edit-group-tab-01,
#edit-group-publikacje,
#edit-group-tab-02 {
	overflow: hidden;
}

.horizontal-tabs-list,
.horizontal-tabs-list * {
	background-color: #ffffff;
}

/* * Style the Bibcite Contributor View */
.view-bibcite-contributor .view-title {
	font-size: 1.6em;
	font-weight: bold;
	margin-top: 2.5rem;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #ccc;
}

.view-bibcite-contributor .views-row {
	margin-bottom: 1.75rem;
	line-height: 1.6;
}

.view-bibcite-contributor .views-field-title a {
	font-weight: bold;
}

/* Target the container for the logo, name, and slogan */
#block-iitis-at-branding .block__content {
	display: flex;
	/* This is the magic part: it arranges items in a row */
	align-items: flex-start;
	/* This vertically aligns the logo and text nicely */
	gap: 3.5em;
	/* This adds a healthy space between the logo and the text */
}

/* ===================================================
   Final, Polished Menu CSS
   =================================================== */

/* --- 1. Position the entire menu bar --- */
.pr-navbar {
  margin-top: 1rem;
}

/* --- 2. Style the parent list item (the button) --- */
.pr-navbar .menu__item {
  margin-right: 4px;
  background-color: #f0f0f0;
  border-radius: 4px; /* Adds slightly rounded corners */
  overflow: hidden;    /* Ensures background respects the rounded corners */
  transition: background-color 0.2s ease-in-out;
}
.pr-navbar .menu__item:last-child {
  margin-right: 0;
}

/* --- 3. Style the link text inside the button --- */
.pr-navbar .menu__item .menu__link {
  display: block;
  padding: 0.6em 1.75em; /* Adjusted for a more balanced shape */
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase; /* Makes text uppercase */
  font-size: 0.9rem;         /* Slightly smaller font for uppercase text */
  letter-spacing: 0.05em;    /* Adds a little space between letters */
  color: #333;
  background-color: transparent !important;
}

/* --- 4. Style for HOVERING over an INACTIVE button --- */
.pr-navbar .menu__item:not(:has(.is-active)):hover {
  background-color: #e0e0e0;
}

/* --- 5. Style for the ACTIVE button (current page) --- */
.pr-navbar .menu__item:has(.is-active) {
  background-color: #e77919;
}
.pr-navbar .menu__item:has(.is-active) .menu__link {
  color: #ffffff !important;
}

/* --- Breadcrumb Styling --- */

.breadcrumb__list {
  list-style: none; /* Removes the default list bullets */
  padding: 0;
  margin: 0 0 1.5rem 0; /* Adds some space below the breadcrumb */
  font-size: 0.9em;
}

.breadcrumb__item {
  display: inline; /* Makes the list items flow in a line */
}

/* Adds the slash separator */
.breadcrumb__item:not(:last-child)::after {
  content: '/';
  padding: 0 0.5em;
  color: #666;
}

.breadcrumb__link {
  color: #555; /* A standard dark grey for links */
  text-decoration: none;
}

.breadcrumb__link:hover {
  color: #e77919; /* Your orange accent color on hover */
  text-decoration: underline;
}

/* Style for the last item (the current page) */
.breadcrumb__item.is-active .breadcrumb__link {
  color: #333;
  font-weight: bold;
}

/* Styling for the collapsible revision history */
.revision-history-item {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1em;
  margin-bottom: 0.5em;
  background-color: #f9f9f9;
}

.revision-history-item__summary {
  cursor: pointer;
  font-weight: bold;
}

.revision-history-item__details {
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid #e0e0e0;
}

/* restore 3-column layout */
#columns {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

#columns > aside {
  flex: 0 0 20%; /* szerokość sidebara */
}

#columns > #main-content {
  flex: 1;
  order: 2;
}

.sidebar-first { order: 1; }
.sidebar-second { order: 3; }

/* zachowanie dla mniejszych ekranów */
@media (max-width: 768px) {
  #columns { flex-direction: column; }
  #columns > aside { flex: 1 1 auto; }
}


html, body {
  background-color: #f2f2f2;
}

.header-first {
  width:auto;
  text-align:center;
}

.site-header, .site-footer {
  text-align:center;
}
