@font-face {
  font-family: "Chaparral Pro";
  src: url("fonts/ChaparralPro-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Chaparral Pro";
  src: url("fonts/ChaparralPro-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Chaparral Pro";
  src: url("fonts/ChaparralPro-Semibold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Chaparral Pro";
  src: url("fonts/ChaparralPro-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.masthead {
  max-width: 1170px;
  color: #302e2a;
  font-family: Arial, Helvetica, sans-serif;
}

.masthead *, .masthead *::before, .masthead *::after {
  box-sizing: border-box;
}

.masthead__name {
  min-height: 63px;
  background: #c6df6f;
  border-bottom: 4px solid #383630;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 18px;
}

.masthead__identity {
  display: block;
  min-width: 0;
  color: inherit;
  font-family: "Chaparral Pro", Georgia, 'Times New Roman', serif;
  text-decoration: none;
}

.masthead__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.masthead h1 {
  color: inherit;
  font-family: "Chaparral Pro", Georgia, 'Times New Roman', serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.02;
  margin: 2px 0 0;
  text-transform: uppercase;
}

.masthead__language {
  color: inherit;
  font-family: "Chaparral Pro", Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.masthead__language[aria-disabled="true"] {
  cursor: default;
  opacity: 0.55;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid #55513f;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu-toggle:focus-visible { outline: 3px solid #174f75; outline-offset: 2px; }

.masthead__details {
  min-height: 70px;
  background: #e1ac4c;
  border-bottom: 5px solid #383630;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 18px;
  font-family: "Chaparral Pro", Georgia, serif;
  font-size: 15px;
  font-weight: 300;
}

.masthead__details p {
  margin: 0;
}

.masthead__group {
  font-family: "Chaparral Pro", Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}

.masthead__mark {
  display: flex;
  align-items: center;
  gap: 16px;
}

.masthead__logo {
  position: relative;
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: #ed9abc;
  box-shadow: 1px 2px 3px rgb(58 42 32 / 25%);
}

.masthead__logo::before, .masthead__logo::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.masthead__logo::before {
  top: 7px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: white;
}

.masthead__logo::after {
  top: 1px;
  right: 14px;
  width: 23px;
  height: 23px;
  background: #ed9abc;
}

.site { max-width: 1170px; }
.layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; }
.sidebar { display: grid; min-width: 0; }
.sidebar__section { border-right: 3px solid #383630; border-bottom: 4px solid #383630; padding: 10px 13px; }
.sidebar__section--explore { background: #f49396; }
.sidebar__section--publications { background: #efc787; }
.sidebar__section--research { background: #cfdf9c; }
.sidebar__section--education { background: #a9cfdf; }
.sidebar__exhibit { display: block; }
.sidebar__exhibit-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 3px 0 5px; }
.sidebar__exhibit-images img { display: block; width: 100%; height: 44px; object-fit: cover; }
.sidebar h2 { font-family: "Chaparral Pro", Georgia, serif; font-size: 15px; line-height: 1.2; margin: 0 0 7px; text-transform: uppercase; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a { color: #302e2a; font: 13px/1.2 Arial, Helvetica, sans-serif; text-decoration: underline; text-underline-offset: 2px; }
.sidebar__logo-link { display: flex; align-items: center; gap: 6px; }
.sidebar__logos { display: inline-flex; flex: 0 0 auto; gap: 2px; }
.sidebar__logos img { display: block; width: 23px; height: 23px; object-fit: contain; }

.internal-page { margin: 0; background: #e1ac4c; color: #302e2a; font-family: Arial, Helvetica, sans-serif; }
.internal-page .interior-content { min-width: 0; padding: 16px 22px 40px; line-height: 1.45; overflow-wrap: anywhere; }
.internal-page .interior-content img { max-width: 100%; height: auto; }
.internal-page .interior-content a { color: #174f75; }
.internal-page .interior-content h1, .internal-page .interior-content h2, .internal-page .interior-content h3 { font-family: "Chaparral Pro", Georgia, serif; }

#tartalom h1, #tartalom h2, #tartalom h3 {
  font-family: "Chaparral Pro", Georgia, 'Times New Roman', serif;
}

@media (max-width: 900px) {
  .masthead h1 { font-size: 23px; }
  .sidebar__section { align-self: start; }
  .internal-page .layout { grid-template-columns: 1fr; }
  .internal-page .sidebar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .internal-page .sidebar__section--education { grid-column: 3; }
}

@media (max-width: 560px) {
  .masthead__name { align-items: center; gap: 10px; padding-right: 10px; }
  .masthead__identity { flex: 1 1 auto; }
  .masthead h1 { font-size: 18px; }
  .masthead__language { flex: 0 0 auto; font-size: 12px; }
  .mobile-menu-toggle { display: inline-flex; }
  .masthead__details, .sidebar { display: none !important; }
  .mobile-menu-open .masthead__details { display: flex !important; }
  .mobile-menu-open .sidebar { display: grid !important; }
  .masthead__details { align-items: flex-start; flex-direction: column; gap: 5px; }
  .masthead__group { text-align: left; }
  .masthead__mark { width: 100%; justify-content: space-between; }
  .internal-page .sidebar { grid-template-columns: 1fr; }
  .internal-page .sidebar__section--education { grid-column: auto; }
  .internal-page .sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .internal-page .interior-content { padding: 14px 13px 30px; }
}
