/* v54: master thesis outline + example plan; scoped exclusively to magisterska. */
html body.rf-home-page .pl54-mag-structure {
  --pl54-navy: #081a40;
  --pl54-red: #ed0d22;
  --pl54-rule: #dde2eb;
  width: 100%;
  padding: 42px 0 70px !important;
  margin: 0 !important;
  background: #fff !important;
  color: var(--pl54-navy) !important;
  font-family: Manrope, Inter, 'Segoe UI', system-ui, sans-serif !important;
  scroll-margin-top: 110px;
}
html body.rf-home-page .pl54-mag-structure,
html body.rf-home-page .pl54-mag-structure *,
html body.rf-home-page .pl54-mag-structure *::before,
html body.rf-home-page .pl54-mag-structure *::after { box-sizing: border-box; }

html body.rf-home-page .pl54-mag-structure .pl54-shell {
  width: calc(100% - 62px);
  max-width: 1570px;
  margin: 0 auto;
  padding: 0;
}
html body.rf-home-page .pl54-mag-structure .pl54-heading {
  margin: 0 0 29px;
  padding: 0 18px;
  text-align: left;
}
html body.rf-home-page .pl54-mag-structure .pl54-heading h2 {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100% !important;
  margin: 0 0 11px !important;
  padding: 0 !important;
  color: var(--pl54-navy) !important;
  background: transparent !important;
  font-family: inherit !important;
  font-size: clamp(36px, 4.33vw, 68px) !important;
  font-weight: 850 !important;
  line-height: 1.08 !important;
  letter-spacing: -.044em !important;
  text-align: left !important;
  text-decoration: none !important;
  text-wrap: balance;
}
html body.rf-home-page .pl54-mag-structure .pl54-heading h2 strong {
  display: inline !important;
  color: var(--pl54-red) !important;
  -webkit-text-fill-color: var(--pl54-red) !important;
  background: none !important;
  font: inherit !important;
  font-weight: 850 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
html body.rf-home-page .pl54-mag-structure h2::before,
html body.rf-home-page .pl54-mag-structure h2::after,
html body.rf-home-page .pl54-mag-structure h2 strong::before,
html body.rf-home-page .pl54-mag-structure h2 strong::after,
html body.rf-home-page .pl54-mag-structure h3::before,
html body.rf-home-page .pl54-mag-structure h3::after,
html body.rf-home-page .pl54-mag-structure h4::before,
html body.rf-home-page .pl54-mag-structure h4::after { content: none !important; display: none !important; }
html body.rf-home-page .pl54-mag-structure .pl54-heading > p {
  max-width: 1430px;
  margin: 0 !important;
  padding: 0;
  color: var(--pl54-navy) !important;
  font-family: inherit !important;
  font-size: clamp(17px, 1.53vw, 23px) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: -.019em;
  text-align: left !important;
}
/* Small graphic red strokes after the title, also used on previous master blocks. */
html body.rf-home-page .pl54-mag-structure .pl54-flare {
  position: absolute;
  display: block;
  right: -53px;
  top: -10px;
  width: 45px;
  height: 68px;
  pointer-events: none;
}
html body.rf-home-page .pl54-mag-structure .pl54-flare i {
  display: block;
  position: absolute;
  width: 7px;
  height: 32px;
  border-radius: 6px;
  background: var(--pl54-red);
}
html body.rf-home-page .pl54-mag-structure .pl54-flare i:nth-child(1) { left: 3px; top: 1px; transform: rotate(22deg); }
html body.rf-home-page .pl54-mag-structure .pl54-flare i:nth-child(2) { left: 22px; top: 22px; transform: rotate(51deg); }
html body.rf-home-page .pl54-mag-structure .pl54-flare i:nth-child(3) { left: 27px; top: 49px; height: 24px; transform: rotate(72deg); }

html body.rf-home-page .pl54-mag-structure .pl54-grid {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  align-items: start;
  gap: clamp(16px, 1.6vw, 27px);
  width: 100%;
  min-width: 0;
}
html body.rf-home-page .pl54-mag-structure .pl54-outline,
html body.rf-home-page .pl54-mag-structure .pl54-plan {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 24px 27px 19px;
  border: 1px solid #f4f2f2;
  border-radius: 31px;
  box-shadow: 0 8px 24px rgba(37,45,75,.09);
  isolation: isolate;
}
html body.rf-home-page .pl54-mag-structure .pl54-outline {
  background: linear-gradient(145deg, #fffafa 0%, #fff 74%);
}
html body.rf-home-page .pl54-mag-structure .pl54-plan {
  padding: 26px 28px 22px;
  background: linear-gradient(145deg, #f3f7ff 0%, #fff 73%);
  border-color: #f0f3fa;
  margin-top: 13px;
  overflow: visible;
}
html body.rf-home-page .pl54-mag-structure .pl54-card-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
}
html body.rf-home-page .pl54-mag-structure .pl54-heading-icon {
  display: block;
  width: clamp(52px, 4.18vw, 68px);
  height: clamp(52px, 4.18vw, 68px);
  flex: 0 0 auto;
  object-fit: contain;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
html body.rf-home-page .pl54-mag-structure .pl54-card-heading h3,
html body.rf-home-page .pl54-mag-structure .pl54-plan-heading h3 {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--pl54-navy) !important;
  font-family: inherit !important;
  font-size: clamp(22px, 1.94vw, 31px) !important;
  font-weight: 850 !important;
  line-height: 1.12 !important;
  letter-spacing: -.038em !important;
  text-align: left !important;
  text-decoration: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.rf-home-page .pl54-mag-structure .pl54-outline-list,
html body.rf-home-page .pl54-mag-structure .pl54-plan-list {
  display: grid;
  gap: 0;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
html body.rf-home-page .pl54-mag-structure .pl54-outline-list > li,
html body.rf-home-page .pl54-mag-structure .pl54-plan-list > li {
  display: grid;
  min-width: 0;
  margin: 0 !important;
  list-style: none !important;
  border-bottom: 1px solid var(--pl54-rule);
  background: transparent !important;
}
html body.rf-home-page .pl54-mag-structure .pl54-outline-list > li:last-child,
html body.rf-home-page .pl54-mag-structure .pl54-plan-list > li:last-child { border-bottom: 0; }
html body.rf-home-page .pl54-mag-structure .pl54-outline-list > li::before,
html body.rf-home-page .pl54-mag-structure .pl54-outline-list > li::after,
html body.rf-home-page .pl54-mag-structure .pl54-plan-list > li::before,
html body.rf-home-page .pl54-mag-structure .pl54-plan-list > li::after { content: none !important; display: none !important; }
html body.rf-home-page .pl54-mag-structure .pl54-outline-list > li {
  grid-template-columns: 86px minmax(0,1fr);
  align-items: center;
  gap: 16px;
  min-height: 73px;
  padding: 6px 0;
}
html body.rf-home-page .pl54-mag-structure .pl54-row-icon {
  display: grid;
  place-items: center;
  width: 83px;
  height: 61px;
  flex: none;
  border-radius: 17px;
  background: linear-gradient(180deg,#ffefef,#ffe6e8);
  box-shadow: 0 4px 10px rgba(221,34,47,.065);
}
html body.rf-home-page .pl54-mag-structure .pl54-row-icon img {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  border: 0;
}
html body.rf-home-page .pl54-mag-structure .pl54-outline-text,
html body.rf-home-page .pl54-mag-structure .pl54-plan-list > li > div { min-width: 0; }
html body.rf-home-page .pl54-mag-structure .pl54-outline-text h4,
html body.rf-home-page .pl54-mag-structure .pl54-plan-list h4 {
  margin: 0 0 2px !important;
  padding: 0 !important;
  background: none !important;
  color: var(--pl54-navy) !important;
  font-family: inherit !important;
  font-size: clamp(17px, 1.38vw, 22px) !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  letter-spacing: -.031em !important;
  text-align: left !important;
  text-decoration: none !important;
}
html body.rf-home-page .pl54-mag-structure .pl54-outline-text p,
html body.rf-home-page .pl54-mag-structure .pl54-plan-list p {
  margin: 0 !important;
  padding: 0;
  color: var(--pl54-navy) !important;
  font-family: inherit !important;
  font-size: clamp(15px, 1.14vw, 19px) !important;
  font-weight: 500 !important;
  line-height: 1.24 !important;
  letter-spacing: -.021em;
  text-align: left !important;
}

html body.rf-home-page .pl54-mag-structure .pl54-plan-heading {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 136px;
  margin: 0 0 21px;
  padding: 0 min(29%, 234px) 0 0;
}
html body.rf-home-page .pl54-mag-structure .pl54-plan-icon {
  display: block;
  width: 85px;
  height: 85px;
  margin: 0;
  padding: 0;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  background: transparent;
}
html body.rf-home-page .pl54-mag-structure .pl54-plan-heading h3 {
  margin: 0 0 18px !important;
  white-space: nowrap;
}
html body.rf-home-page .pl54-mag-structure .pl54-plan-heading p {
  margin: 0 !important;
  padding: 0;
  color: var(--pl54-navy) !important;
  font-size: clamp(15px, 1.28vw, 21px) !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  letter-spacing: -.018em;
}
html body.rf-home-page .pl54-mag-structure .pl54-plan-heading p strong { font-weight: 850 !important; }
html body.rf-home-page .pl54-mag-structure .pl54-toc {
  position: absolute;
  z-index: 2;
  top: -50px;
  right: -3px;
  display: block;
  width: clamp(180px, 18vw, 285px);
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
  pointer-events: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html body.rf-home-page .pl54-mag-structure .pl54-plan-list { position: relative; z-index: 1; }
html body.rf-home-page .pl54-mag-structure .pl54-plan-list > li {
  grid-template-columns: 55px minmax(0,1fr);
  align-items: center;
  gap: 22px;
  min-height: 87px;
  padding: 10px 2px;
}
html body.rf-home-page .pl54-mag-structure .pl54-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e0ecff;
  color: #0b2353;
  font-size: clamp(21px, 1.76vw, 28px);
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
html body.rf-home-page .pl54-mag-structure .pl54-plan-list h4 { font-size: clamp(18px, 1.49vw, 23px) !important; }
html body.rf-home-page .pl54-mag-structure .pl54-plan-list p { font-size: clamp(16px, 1.2vw, 19px) !important; }

@media (min-width: 1101px) and (max-width: 1300px) {
  html body.rf-home-page .pl54-mag-structure .pl54-outline,
  html body.rf-home-page .pl54-mag-structure .pl54-plan { padding-right: 20px; padding-left: 20px; }
  html body.rf-home-page .pl54-mag-structure .pl54-outline-list > li { grid-template-columns: 70px minmax(0,1fr); gap: 12px; }
  html body.rf-home-page .pl54-mag-structure .pl54-row-icon { width: 68px; height: 55px; }
  html body.rf-home-page .pl54-mag-structure .pl54-row-icon img { width: 50px; height: 50px; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan-heading { grid-template-columns: 70px minmax(0,1fr); gap: 10px; padding-right: 28%; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan-icon { width: 68px; height: 68px; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan-heading h3 { white-space: normal; }
  html body.rf-home-page .pl54-mag-structure .pl54-toc { top:-32px; right:0; width: 215px; }
}
@media (max-width: 1100px) {
  html body.rf-home-page .pl54-mag-structure { padding: 34px 0 53px !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-shell { width: calc(100% - 44px); max-width: 900px; }
  html body.rf-home-page .pl54-mag-structure .pl54-heading { padding: 0 3px; margin-bottom: 28px; }
  html body.rf-home-page .pl54-mag-structure .pl54-heading h2 { font-size: clamp(34px, 5.65vw, 56px) !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-heading p { font-size: clamp(17px, 2.2vw, 21px) !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-flare { display: none; }
  html body.rf-home-page .pl54-mag-structure .pl54-grid { grid-template-columns: minmax(0,1fr); gap: 30px; }
  html body.rf-home-page .pl54-mag-structure .pl54-outline,
  html body.rf-home-page .pl54-mag-structure .pl54-plan { margin: 0; padding: 26px 30px; }
  html body.rf-home-page .pl54-mag-structure .pl54-card-heading h3,
  html body.rf-home-page .pl54-mag-structure .pl54-plan-heading h3 { font-size: clamp(24px, 3.1vw, 32px) !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-outline-text h4 { font-size: clamp(18px, 2.6vw, 22px) !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-outline-text p { font-size: clamp(16px, 2.1vw, 19px) !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan-heading { min-height: 145px; padding-right: 210px; }
  html body.rf-home-page .pl54-mag-structure .pl54-toc { width: 220px; top: -25px; right: 5px; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan-list h4 { font-size: clamp(19px, 2.7vw, 23px) !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan-list p { font-size: clamp(16px, 2.35vw, 19px) !important; }
}
@media (max-width: 640px) {
  html body.rf-home-page .pl54-mag-structure { padding: 28px 0 42px !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-shell { width: calc(100% - 26px); }
  html body.rf-home-page .pl54-mag-structure .pl54-heading { margin-bottom: 20px; }
  html body.rf-home-page .pl54-mag-structure .pl54-heading h2 { font-size: clamp(29px, 8.2vw, 39px) !important; line-height: 1.11 !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-heading p { font-size: 16px !important; line-height: 1.5 !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-flare { display:none; }
  html body.rf-home-page .pl54-mag-structure .pl54-grid { gap: 22px; }
  html body.rf-home-page .pl54-mag-structure .pl54-outline,
  html body.rf-home-page .pl54-mag-structure .pl54-plan { padding: 18px 14px 15px; border-radius: 22px; }
  html body.rf-home-page .pl54-mag-structure .pl54-card-heading { gap: 9px; margin-bottom: 10px; }
  html body.rf-home-page .pl54-mag-structure .pl54-heading-icon { width: 42px; height:42px; }
  html body.rf-home-page .pl54-mag-structure .pl54-card-heading h3,
  html body.rf-home-page .pl54-mag-structure .pl54-plan-heading h3 { font-size: clamp(20px, 5.3vw, 25px) !important; line-height:1.15 !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-outline-list > li { grid-template-columns: 52px minmax(0,1fr); gap:10px; min-height: 62px; padding:7px 0; }
  html body.rf-home-page .pl54-mag-structure .pl54-row-icon { width: 50px; height: 49px; border-radius: 12px; }
  html body.rf-home-page .pl54-mag-structure .pl54-row-icon img { width: 38px; height: 38px; }
  html body.rf-home-page .pl54-mag-structure .pl54-outline-text h4 { font-size: 16.5px !important; margin-bottom: 3px !important; line-height:1.27 !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-outline-text p { font-size: 14px !important; line-height:1.36 !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan { display: flex; flex-direction: column; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan-heading { order:0; display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 10px; min-height:0; margin-bottom: 0; padding: 0; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan-icon { width: 52px; height: 52px; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan-heading h3 { margin-bottom: 8px !important; white-space: normal; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan-heading p { font-size: 15px !important; line-height: 1.45 !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-toc { order:1; position:static; align-self:center; width: 158px; height:auto; max-width: 80%; margin: 3px auto 3px; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan-list { order:2; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan-list > li { grid-template-columns: 40px minmax(0,1fr); gap:12px; min-height:0; padding:12px 0; }
  html body.rf-home-page .pl54-mag-structure .pl54-number { width: 38px; height:38px; border-radius:12px; font-size:20px; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan-list h4 { font-size: 16px !important; line-height:1.3 !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-plan-list p { font-size: 14px !important; line-height:1.37 !important; }
}
@media (max-width: 370px) {
  html body.rf-home-page .pl54-mag-structure .pl54-shell { width: calc(100% - 20px); }
  html body.rf-home-page .pl54-mag-structure .pl54-outline,
  html body.rf-home-page .pl54-mag-structure .pl54-plan { padding:16px 10px; }
  html body.rf-home-page .pl54-mag-structure .pl54-outline-list > li { grid-template-columns: 45px minmax(0,1fr); gap:9px; }
  html body.rf-home-page .pl54-mag-structure .pl54-row-icon { width:43px; height:43px; }
  html body.rf-home-page .pl54-mag-structure .pl54-row-icon img { width:33px; height:33px; }
  html body.rf-home-page .pl54-mag-structure .pl54-outline-text h4 { font-size:15.5px !important; }
  html body.rf-home-page .pl54-mag-structure .pl54-outline-text p { font-size:13px !important; }
}
