:root {
  --navy: #08265c;
  --royal: #204eb5;
  --blue: #4389f5;
  --yellow: #ffbf32;
  --pale: #dce6fa;
  --display: "Manrope", Arial, sans-serif;
  --editorial-card-radius: 5px 24px 5px 5px;
  --body: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0; color: var(--navy); background: #e8edf5; font-family: var(--body);
  height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr);
}
button { font: inherit; cursor: pointer; }
img { display: block; }
.app-bar {
  padding: 12px max(20px, calc((100vw - 1200px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: white; background: var(--navy);
}
.app-brand, .app-controls { display: flex; align-items: center; gap: 10px; }
.app-brand > span {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--navy); background: var(--yellow); font-weight: 800;
}
.app-brand small { display: block; color: var(--pale); font-size: 11px; }
.app-controls button {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px;
  color: white; background: var(--royal); border: 1px solid #ffffff45; border-radius: 5px;
}
.app-controls svg { width: 15px; }
.app-bar { flex-wrap: wrap; }
.page-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.page-nav a {
  padding: 7px 9px; border-radius: 4px; color: var(--pale);
  font-size: 13px; text-decoration: none;
}
.page-nav a:hover, .page-nav a[aria-current="page"] { color: white; background: #ffffff24; }
.workspace {
  --note-height: 0px;
  grid-row: 2; container-type: size; padding: 10px 12px 14px;
  display: grid; grid-template-rows: var(--note-height) minmax(0, 1fr);
}
.workspace:has(.workspace-note) { --note-height: 24px; }
.workspace-note { margin: 0; text-align: center; font-size: 13px; line-height: 20px; }
.calendar-sheet {
  position: relative; isolation: isolate; overflow: hidden; width: 1200px; height: 850px;
  grid-row: 2; place-self: center;
  zoom: min(1, calc(100cqw / 1200px), calc((100cqh - var(--note-height)) / 850px));
  background: #f7f9fd; box-shadow: 0 18px 44px #08265c26;
}
.background-art, .memphis { position: absolute; inset: 0; width: 100%; height: 100%; }
.background-art {
  z-index: -2; background: url('./assets/pages/polhas/geometric-background.png') center / cover no-repeat;
}
.background-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #edf3ff66, #f4f8ffe8 21%, #f9fbfff2 52%, #e6effdf2);
}
.layout-editorial .background-art::after {
  background:
    radial-gradient(ellipse at 0% 53%, #4389f528, transparent 24%),
    radial-gradient(ellipse at 100% 29%, #4389f529, transparent 27%),
    radial-gradient(ellipse at 92% 98%, #ffbf3233, transparent 24%),
    linear-gradient(180deg, #edf3ff66, #f4f8ffe8 21%, #f9fbfff2 52%, #e6effdf2);
}
.memphis { z-index: -1; pointer-events: none; }
.publication-grid {
  position: absolute; inset: calc(10% + 10px) 33px 16px;
  display: grid; grid-template-columns: 530px minmax(0, 1fr);
  grid-template-rows: 96px minmax(0, 1fr) 54px; gap: 14px;
}
.identity-block {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 20px;
  padding-bottom: 4px; border-bottom: 2px solid var(--navy);
}
.institution-logo { width: 75px; height: 75px; object-fit: contain; }
.identity-copy p { margin: 0 0 3px; color: var(--royal); font-size: 13px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.identity-copy h1 { margin: 0; font: 800 45px / 1.04 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.identity-copy span { font: italic 700 22px / 1.25 var(--display); color: var(--royal); }
.partner-logos { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.partner-logos img { height: 59px; width: auto; max-width: 132px; object-fit: contain; }

.campus-column { display: flex; flex-direction: column; min-height: 0; }
.study-routes { display: grid; grid-template-columns: 1.22fr 1fr; gap: 22px; }
.study-routes section { border-top: 2px solid #204eb54d; padding: 12px 0 11px; }
.study-routes h2, .registration-routes h2 {
  margin: 0 0 8px; font: 800 16px / 1.2 var(--display); text-transform: uppercase;
}
.study-routes ul, .registration-routes ul { margin: 0; padding: 0; list-style: none; }
.study-routes li { position: relative; padding-left: 12px; font-size: 15px; line-height: 1.6; font-weight: 600; }
.study-routes li + li { margin-top: 3px; }
.study-routes li::before {
  content: ""; position: absolute; left: 0; top: .63em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--royal);
}
.registration-routes { margin-top: 7px; padding: 11px 13px; background: #ffbf3266; border-left: 4px solid var(--yellow); }
.registration-routes ul { display: flex; flex-wrap: wrap; gap: 4px 21px; font-size: 14px; line-height: 1.45; font-weight: 700; }
.photo-story {
  position: relative; flex: 1; margin-top: 12px; isolation: isolate; overflow: hidden;
  min-height: 0; border-radius: 4px 48px 4px 4px;
  background: linear-gradient(144deg, #204eb517 0 17%, transparent 17% 73%, #204eb515 73% 83%, transparent 83%),
    radial-gradient(ellipse at 49% 6%, #f2f7ff, transparent 68%), linear-gradient(155deg, #dce6fa, #80a9e2);
}
.photo-story::after {
  content: ""; position: absolute; inset: -12px; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse at 11% 78%, #4389f5b0, transparent 31%),
    radial-gradient(ellipse at 32% 24%, #ffbf3252, transparent 34%),
    radial-gradient(ellipse at 95% 40%, #204eb589, transparent 40%),
    radial-gradient(ellipse at 91% 92%, #edf5ffdb, transparent 29%);
  filter: blur(14px);
}
.photo-story img { position: absolute; height: auto; filter: drop-shadow(0 3px 4px #08265c42); }
.photo-story img[data-photo-role="building"] {
  filter: saturate(.85);
  mask-image: linear-gradient(to bottom, #000 74%, transparent);
}
.photo-story img[data-photo-role="group"] { filter: drop-shadow(0 5px 8px #08265c40); }

.profile-panel {
  padding: 15px 16px 13px; display: flex; flex-direction: column;
  background: #ffffffd9; border: 1px solid white; border-radius: var(--editorial-card-radius);
  box-shadow: 0 8px 23px #08265c12;
}
.profile-heading h2 { font: 800 29px / 1.1 var(--display); letter-spacing: -.04em; margin: 0; }
.flagship-grid {
  flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr)); column-gap: 16px; margin: 10px 0;
}
.program {
  display: grid; grid-template-columns: 29px minmax(0, 1fr); align-items: start;
  gap: 7px; padding: 6px 0; border-top: 1px solid var(--pale);
}
.program > span { width: 26px; height: 26px; display: grid; place-items: center; background: var(--pale); color: var(--royal); border-radius: 50%; }
.program svg { width: 16px; height: 16px; }
.program b { display: block; font: 800 14.5px / 1.18 var(--display); }
.program small { display: block; margin-top: 3px; color: #2e466a; font-size: 13px; line-height: 1.26; }
.career-block { flex: none; background: var(--navy); color: white; padding: 9px 12px; border-radius: 3px 13px 3px 3px; }
.career-block h3 { display: flex; gap: 7px; align-items: center; margin: 0 0 5px; color: var(--yellow); font: 800 17px / 1.15 var(--display); }
.career-block svg { width: 17px; height: 17px; }
.career-list {
  margin: 0; padding-left: 19px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 5px 21px; font-size: 13px; line-height: 1.26;
}
.career-list li::marker { color: var(--yellow); font-weight: 700; }

.publication-footer {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 2.1fr; gap: 18px;
  align-items: center; padding: 8px 15px;
}
.unit-contact-footer {
  color: #fff;
  background: linear-gradient(105deg, var(--navy), var(--royal));
  border-top: 2px solid #4389f5;
}
.editorial-icon { display: inline-grid; width: 22px; height: 22px; place-items: center; flex: none; }
.editorial-icon svg { display: block; width: 18px; height: 18px; }
.unit-contact-footer .editorial-icon { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.contact-item { display: flex; align-items: center; gap: 9px; min-width: 0; }
.contact-item svg { width: 22px; height: 22px; color: #fff; flex: none; }
.contact-item small, .contact-item b { display: block; }
.contact-item small { font-size: 12px; line-height: 1.2; color: #fff; }
.contact-item b { font: 800 16px / 1.2 var(--display); }
.export-status {
  position: fixed; left: 50%; bottom: 24px; padding: 9px 14px; color: white; background: var(--navy);
  border-radius: 6px; font-size: 13px; opacity: 0; transform: translateX(-50%); pointer-events: none;
}
.export-status.show { opacity: 1; }

@media (max-width: 420px) {
  .app-bar { padding-inline: 9px; }
  .app-brand > span, .app-controls svg { display: none; }
}
@page { size: 240mm 170mm; margin: 0; }
@media print {
  html, body, .workspace { width: 240mm; height: 170mm; margin: 0; padding: 0; overflow: hidden; }
  body, .workspace { display: block; }
  [data-export-ignore], .export-status { display: none !important; }
  .calendar-sheet { zoom: .7559055; margin: 0; box-shadow: none; print-color-adjust: exact; }
}
