:root {
  color: #111111;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  --ink: #111111;
  --paper: #ffffff;
  --mist: #eaf5fb;
  --orange: #fd7313;
  --pink: #ef41a0;
  --line: #202020;
  --frame: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body, button, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.section-frame,
.funding-inner,
.header-inner {
  width: min(calc(100% - 64px), var(--frame));
  margin-inline: auto;
}

.funding-disclaimer {
  margin-top: 24px;
  border-top: 1px solid #d5d5d5;
}

.funding-inner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  padding-block: 24px;
}

.funding-eu-logo {
  width: 230px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.funding-inner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: stretch;
}

.brand {
  display: flex;
  align-items: center;
  padding-right: 28px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.brand img {
  width: 265px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
}

.primary-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  padding-left: 28px;
}

.primary-nav > a:not(.apply-button),
.nav-parent {
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  padding-block: 8px;
}

.primary-nav > a:not(.apply-button):hover,
.primary-nav > a:not(.apply-button):focus-visible,
.nav-parent:hover,
.nav-parent:focus-visible { border-color: currentColor; }

.nav-group {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-parent span {
  font-size: 18px;
  line-height: 1;
  transition: transform 160ms ease;
}

.nav-group.is-open .nav-parent span { transform: rotate(45deg); }

.submenu {
  position: absolute;
  top: calc(100% + 1px);
  left: -18px;
  z-index: 30;
  min-width: 220px;
  display: none;
  padding: 10px 18px 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.nav-group.is-open .submenu { display: grid; }

.submenu a {
  padding: 13px 0;
  border-bottom: 1px solid #d5d5d5;
  text-decoration: none;
  white-space: nowrap;
}

.submenu a:last-child { border-bottom: 0; }

.submenu a:hover,
.submenu a:focus-visible { color: #9d2b00; }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  padding: 10px 16px;
  cursor: pointer;
}

.apply-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border: 1px solid var(--orange);
  border-radius: 0;
  color: #111;
  background: var(--orange);
  text-decoration: none;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}

.apply-button:hover,
.apply-button:focus-visible {
  background: #111;
  border-color: #111;
  color: #fff;
}

.apply-button--header {
  min-height: 46px;
  padding-inline: 22px;
  flex-shrink: 0;
  white-space: nowrap;
}

.hero {
  background: var(--mist);
  border-bottom: 1px solid #cbd6da;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.84fr) minmax(560px, 1.16fr);
  gap: 0 48px;
  padding-top: 46px;
}

.hero-copy {
  padding: 16px 0 38px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  width: 74px;
  height: 1px;
  background: currentColor;
}

.application-dates {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.4;
}

h1, h2, p { max-width: 100%; }

h1, h2 {
  margin: 0;
  letter-spacing: -0.045em;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, Helvetica, sans-serif;
}

h1 {
  max-width: 670px;
  font-size: clamp(58px, 4.6vw, 66px);
  line-height: 0.92;
  font-weight: 900;
}

.pink-rule {
  width: 124px;
  height: 8px;
  margin: 14px 0 28px;
  background: var(--pink);
}

.hero-intro {
  max-width: 610px;
  margin: 0;
  font-size: clamp(19px, 1.55vw, 25px);
  line-height: 1.38;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover,
.text-link:focus-visible { color: #9d2b00; }

.hero-image {
  margin: 0;
  aspect-ratio: 1.5 / 1;
  align-self: start;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.proof-strip {
  grid-column: 1 / -1;
  min-height: 118px;
  display: grid;
  grid-template-columns: 190px 190px 220px minmax(0, 1fr);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip > div {
  min-height: 76px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-right: 1px solid #777;
  padding-right: 24px;
  margin-right: 24px;
}

.proof-strip strong {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 54px;
  line-height: 1;
}

.proof-strip span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.proof-strip p {
  margin: 0;
  text-align: right;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.applicant-section {
  padding: 54px 0 42px;
  border-bottom: 1px solid #888;
}

.applicant-section h2 {
  max-width: 1220px;
  font-size: clamp(48px, 5.2vw, 80px);
  line-height: 0.98;
}

.route-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(var(--aiss-route-columns, 4), minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.route-link {
  min-width: 0;
  min-height: 190px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 18px;
  padding: 20px 26px 22px;
  /* Grid gaps carry the separators; clipping removes outer-edge lines. */
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.route-link:hover,
.route-link:focus-visible { background: var(--mist); }
.route-link:focus-visible { outline-offset: -3px; }

.route-number {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 34px;
  font-weight: 800;
}

.route-label {
  align-self: center;
  font-size: 18px;
  line-height: 1.3;
}

.route-action {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.admissions-timeline-section {
  padding-block: 54px 42px;
  border-bottom: 1px solid #888;
  scroll-margin-top: var(--aiss-header-offset, 120px);
}

.timeline-heading {
  font-size: clamp(44px, 4.4vw, 68px);
  line-height: 1;
}

.admissions-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
}

.admissions-timeline::before {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
}

.timeline-item {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr 52px 1fr;
  justify-items: center;
}

.timeline-marker {
  z-index: 1;
  grid-row: 2;
  grid-column: 1;
  align-self: center;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--pink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.timeline-content {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  min-width: 0;
  width: 100%;
  padding: 0 10px 22px;
  text-align: center;
  overflow-wrap: anywhere;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-row: 3;
  align-self: start;
  padding: 22px 10px 0;
}

.timeline-date {
  margin: 0 0 10px;
  color: #843300;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.timeline-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.timeline-detail {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.experience-section { padding: 42px 0 48px; }

.experience-grid {
  display: grid;
  grid-template-columns: minmax(460px, 1.2fr) minmax(360px, 1fr) 180px;
  gap: 38px;
  align-items: stretch;
}

.cohort-image {
  margin: 0;
  min-height: 430px;
}

.cohort-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.experience-copy { padding-top: 10px; }

.experience-copy h2 {
  font-size: clamp(46px, 4.4vw, 68px);
  line-height: 0.98;
}

.experience-copy > p:not(.eyebrow) {
  margin: 28px 0;
  font-size: 18px;
  line-height: 1.55;
}

.manifesto {
  padding: 14px 0 0 28px;
  border-left: 1px solid var(--line);
}

.manifesto p {
  margin: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.manifesto blockquote {
  margin: 26px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-style: italic;
  line-height: 1.28;
}

.primary-nav > a.is-current { border-color: currentColor; }

.internal-hero {
  padding: 28px 0 58px;
  background: var(--mist);
  border-bottom: 1px solid #cbd6da;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 42px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.breadcrumb a { text-decoration: none; border-bottom: 1px solid currentColor; }

.internal-hero-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 310px;
  align-items: start;
  gap: 52px;
}

.section-marker {
  min-height: 248px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.section-marker strong {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 66px;
  line-height: 1;
}

.section-marker span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.internal-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(66px, 6.2vw, 92px);
  line-height: 0.88;
}

.internal-intro {
  max-width: 720px;
  margin: 0;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.42;
}

.deadline-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 8px solid var(--pink);
}

.deadline-panel > span {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.deadline-panel strong {
  display: block;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 39px;
  line-height: 1.02;
}

.deadline-panel p { margin: 20px 0; line-height: 1.45; }
.deadline-panel .apply-button { width: 100%; }

.internal-content { padding: 70px 0 0; }

.internal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: clamp(48px, 7vw, 104px);
}

.internal-sidebar {
  position: sticky;
  top: 120px;
  padding-top: 8px;
}

.internal-sidebar > p {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.internal-sidebar nav { border-top: 1px solid var(--line); }

.internal-sidebar nav a,
.sidebar-link {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid #bbb;
  text-decoration: none;
  line-height: 1.3;
}

.internal-sidebar a:hover,
.internal-sidebar a:focus-visible { color: #9d2b00; }

.sidebar-link { margin-top: 22px; padding-block: 0 9px; border-color: currentColor; font-weight: 700; }
.sidebar-link + .sidebar-link { margin-top: 12px; }

.internal-article { min-width: 0; }

.content-section {
  max-width: 900px;
  padding: 0 0 76px;
  scroll-margin-top: 120px;
}

.content-section + .content-section {
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.content-section h2,
.apply-callout h2 {
  margin: 0 0 28px;
  max-width: 840px;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.96;
}

.internal-article p { font-size: 18px; line-height: 1.62; }

.internal-article .article-lead {
  max-width: 820px;
  margin: 0 0 22px;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.38;
}

.requirements-list { margin-top: 48px; border-top: 1px solid var(--line); }

.requirement-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.requirement-row > span {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
}

.requirement-row h3 { margin: 0 0 8px; font-size: 24px; }
.requirement-row p { margin: 0; font-size: 16px; }

.editorial-note {
  margin-top: 46px;
  padding: 24px 28px;
  border-left: 9px solid var(--orange);
  background: #f5f5f2;
}

.editorial-note strong { font-size: 21px; }
.editorial-note p { margin: 7px 0 0; font-size: 16px; }

.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.materials-grid > div {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.materials-grid > div:nth-child(2n) { border-right: 0; }
.materials-grid span { font-size: 13px; letter-spacing: 0.18em; }
.materials-grid strong { font-size: 20px; }
.content-footnote { margin-top: 26px; font-size: 15px !important; }

.funding-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 42px;
  border-block: 1px solid var(--line);
}

.funding-route-grid > div {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 28px;
}

.funding-route-grid > div + div { border-left: 1px solid var(--line); }
.funding-route-grid h3 { margin: 24px 0 0; font-size: 26px; line-height: 1.15; }
.funding-route-grid p { margin: 18px 0 24px; font-size: 17px; }
.funding-route-grid .text-link { margin-top: auto; }

.cost-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 36px 0 0;
  background: var(--mist);
  border-block: 1px solid var(--line);
}

.cost-summary > div { padding: 28px; }
.cost-summary > div + div { border-left: 1px solid var(--line); }
.cost-summary dt { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.cost-summary dd { margin: 20px 0 0; font-size: clamp(42px, 4.5vw, 60px); font-weight: 700; letter-spacing: -0.04em; }
.cost-summary dd span { display: block; margin-top: 8px; font-size: 16px; font-weight: 400; letter-spacing: 0; }
.cost-summary--single { grid-template-columns: 1fr; }

.selection-section {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 64px;
}

.score-block {
  align-self: start;
  background: var(--mist);
  border-top: 1px solid var(--line);
}

.score-block > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.score-block strong {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 52px;
}

.score-block span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }

.apply-callout {
  max-width: none;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  margin: 0 0 76px;
  padding: 44px;
  scroll-margin-top: 120px;
  background: var(--orange);
}

.apply-callout h2 { margin-bottom: 0; font-size: clamp(42px, 4.6vw, 66px); }
.apply-callout p { margin: 0 0 26px; line-height: 1.5; }
.apply-button--dark { border-color: #111; background: #111; color: #fff; }
.apply-button--dark:hover, .apply-button--dark:focus-visible { background: #fff; color: #111; }

.partner-strip {
  padding: 24px 0 0;
  border-top: 1px solid #aaa;
  background: #fafafa;
}

.partner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.partner-logos {
  width: min(720px, 72%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 34px;
}

.partner-logos img {
  width: 100%;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.social-links {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-left: auto;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.social-link {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-link .icon-cutout { fill: #fafafa; }

.social-link:hover,
.social-link:focus-visible { color: var(--orange); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .funding-inner { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
  .funding-eu-logo { width: 250px; }
  .header-inner { grid-template-columns: 240px minmax(0, 1fr); }
  .brand img { width: 210px; }
  .primary-nav { gap: 16px; }
  .primary-nav > a:not(.apply-button), .nav-parent { font-size: 13px; }
  .hero-grid { grid-template-columns: 0.9fr 1.1fr; gap: 0 30px; }
  .proof-strip { grid-template-columns: 160px 160px 190px minmax(0, 1fr); }
  .experience-grid { grid-template-columns: 1.05fr 0.95fr; }
  .internal-hero-grid { grid-template-columns: 130px minmax(0, 1fr); gap: 36px; }
  .deadline-panel { grid-column: 2; width: min(100%, 620px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
  .deadline-panel > span, .deadline-panel p { grid-column: 1 / -1; }
  .deadline-panel .apply-button { align-self: end; }
  .internal-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
  .selection-section { grid-template-columns: minmax(0, 1fr) 280px; gap: 42px; }
  .manifesto {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 26px 0 0;
    gap: 30px;
  }
  .manifesto p { border-bottom: 0; border-right: 1px solid var(--line); }
  .manifesto blockquote { margin: 0; }
}

@media (max-width: 860px) {
  .section-frame, .funding-inner, .header-inner { width: min(calc(100% - 36px), var(--frame)); }
  .funding-inner { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .funding-eu-logo { width: 230px; }
  .site-header { position: relative; }
  .header-inner { min-height: 76px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .brand { border-right: 0; }
  .brand img { width: 190px; height: 56px; }
  .menu-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute;
    inset: 76px 0 auto;
    z-index: 20;
    padding: 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a:not(.apply-button) { padding: 14px 0; border-bottom: 1px solid #ddd; }
  .nav-group { display: block; }
  .nav-parent {
    width: 100%;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
  }
  .submenu {
    position: static;
    min-width: 0;
    padding: 0 0 8px 18px;
    border: 0;
    border-bottom: 1px solid #ddd;
  }
  .submenu a { padding: 12px 0; }
  .hero-grid { display: flex; flex-direction: column; padding-top: 20px; }
  .hero-copy { order: 1; }
  .hero-image { order: 2; min-height: 0; aspect-ratio: 1.5 / 1; }
  .proof-strip { order: 3; grid-template-columns: repeat(3, 1fr); }
  .proof-strip > div { min-height: 76px; gap: 8px; margin: 0; padding: 0 14px; }
  .proof-strip p { display: none; }
  .route-grid { grid-template-columns: repeat(var(--aiss-route-tablet-columns, 2), minmax(0, 1fr)); }
  .experience-grid { grid-template-columns: 1fr; }
  .internal-hero { padding-bottom: 42px; }
  .breadcrumb { margin-bottom: 30px; }
  .internal-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-marker { display: none; }
  .deadline-panel { grid-column: auto; width: 100%; }
  .internal-content { padding-top: 48px; }
  .internal-layout { grid-template-columns: 1fr; gap: 52px; }
  .internal-sidebar { position: static; }
  .internal-sidebar nav { display: grid; grid-template-columns: repeat(2, 1fr); }
  .internal-sidebar nav a:nth-child(odd) { border-right: 1px solid #bbb; padding-right: 18px; }
  .internal-sidebar nav a:nth-child(even) { padding-left: 18px; }
  .sidebar-link { display: inline-block; margin-right: 24px; }
  .selection-section { grid-template-columns: 1fr; }
  .apply-callout { grid-template-columns: 1fr; gap: 28px; }
  .cohort-image { min-height: 470px; }
  .partner-inner { align-items: flex-end; flex-direction: column; gap: 24px; }
  .partner-logos { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 34px; }
  .social-links { min-height: 32px; padding-left: 0; border-left: 0; }
}

@media (max-width: 560px) {
  .section-frame, .funding-inner, .header-inner { width: min(calc(100% - 28px), var(--frame)); }
  .funding-inner { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .funding-eu-logo { width: 230px; max-width: 100%; }
  h1 { font-size: clamp(52px, 16vw, 72px); }
  .application-dates { font-size: 14px; }
  .internal-hero-copy h1 { font-size: clamp(40px, 13vw, 54px); line-height: 0.94; }
  .internal-intro { font-size: 19px; }
  .deadline-panel { display: block; }
  .deadline-panel strong { font-size: 34px; }
  .content-section { padding-bottom: 54px; }
  .content-section + .content-section { padding-top: 50px; }
  .content-section h2, .apply-callout h2 { font-size: 43px; }
  .internal-article p { font-size: 17px; }
  .internal-article .article-lead { font-size: 22px; }
  .requirement-row { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .requirement-row h3 { font-size: 21px; }
  .materials-grid { grid-template-columns: 1fr; }
  .materials-grid > div { border-right: 0; }
  .funding-route-grid, .cost-summary { grid-template-columns: 1fr; }
  .funding-route-grid > div + div, .cost-summary > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .apply-callout { margin-inline: -14px; padding: 32px 22px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .hero-actions .text-link { align-self: flex-start; }
  .hero-image { min-height: 0; aspect-ratio: 1.45 / 1; }
  .proof-strip { grid-template-columns: 1fr; padding: 12px 0; }
  .proof-strip > div {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid #8b979c;
    justify-content: space-between;
  }
  .proof-strip > div:last-of-type { border-bottom: 0; }
  .proof-strip strong { font-size: 42px; }
  .applicant-section h2, .experience-copy h2 { font-size: 44px; }
  .route-grid { grid-template-columns: 1fr; }
  .route-link { min-height: 144px; }
  .cohort-image { min-height: 360px; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto p { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 360px) {
  .internal-hero-copy h1 { font-size: 38px; }
}

@media (max-width: 1120px) {
  .admissions-timeline { display: block; margin-top: 34px; }
  .admissions-timeline::before {
    top: 22px;
    bottom: 22px;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .timeline-item {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 24px;
    justify-items: stretch;
  }
  .timeline-item + .timeline-item { margin-top: 28px; }
  .timeline-marker { grid-row: 1; align-self: start; }
  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding: 2px 0 0;
    text-align: left;
  }
  .timeline-date { margin-bottom: 5px; }
  .timeline-title { font-size: 21px; }
  .timeline-detail { max-width: 660px; font-size: 16px; margin-top: 8px; }
}

@media (max-width: 560px) {
  .admissions-timeline-section { padding-block: 40px; }
  .timeline-heading { font-size: 44px; }
  .timeline-item { gap: 18px; }
}

/* The student-country map keeps its complete, horizontal image area. */
.experience-grid.experience-grid--map {
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 36px 48px;
}

.experience-map {
  grid-column: 1 / -1;
  min-height: 0;
  width: 100%;
  align-self: start;
}

.experience-map img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.experience-grid--map > .experience-copy {
  min-width: 0;
  padding-top: 0;
}

.experience-grid--map > .experience-copy h2 { max-width: 920px; }
.experience-grid--map > .experience-copy > p:not(.eyebrow) { max-width: 780px; }

.experience-grid--map > .manifesto {
  grid-column: auto;
  display: block;
  border-top: 0;
  border-left: 1px solid var(--line);
  padding: 14px 0 0 28px;
}

.experience-grid--map > .manifesto p {
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.experience-grid--map > .manifesto blockquote { margin: 26px 0 0; }

@media (max-width: 1120px) {
  .experience-grid.experience-grid--map {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 30px 36px;
  }
}

@media (max-width: 860px) {
  .experience-grid.experience-grid--map { grid-template-columns: minmax(0, 1fr); }
  .experience-grid--map > .manifesto {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 26px 0 0;
  }
  .experience-grid--map > .manifesto p {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding-right: 20px;
  }
  .experience-grid--map > .manifesto blockquote { margin: 0; }
  .apply-button--header {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .experience-grid--map > .manifesto { grid-template-columns: minmax(0, 1fr); }
  .experience-grid--map > .manifesto p {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* WordPress integration: keep authored content and native blocks readable. */
.skip-link {
  position: absolute; left: 14px; top: -100px; z-index: 100000;
  background: #111; color: #fff; padding: 14px 20px; text-decoration: none;
}
.skip-link:focus { top: 14px; }
:focus-visible { outline: 3px solid #6d0494; outline-offset: 4px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.admin-bar .site-header { top: 32px; }
.social-link .dashicons { font-size: 24px; width: 24px; height: 24px; }
.social-link { width: 36px; height: 36px; }
.internal-hero-copy h1 { overflow-wrap: anywhere; }
.internal-article h2 { margin: 42px 0 24px; font-size: clamp(40px, 4.5vw, 64px); line-height: 1.05; }
.internal-article .content-section h2 { margin: 0 0 28px; font-size: clamp(48px, 5vw, 72px); line-height: .96; }
.internal-article .apply-callout h2 { margin: 0; font-size: clamp(42px, 4.6vw, 66px); line-height: .96; }
.internal-article img { height: auto; }
.internal-article iframe { max-width: 100%; }
.internal-article li { font-size: 18px; line-height: 1.62; margin-bottom: 8px; }
.internal-article > :first-child { margin-top: 0; }
.internal-article .wp-block-group > :first-child { margin-top: 0; }
.internal-article .wp-block-group > :last-child { margin-bottom: 0; }
.internal-article .wp-block-group { box-sizing: border-box; }
.internal-article .requirements-list > .requirement-row,
.internal-article .requirement-row > .wp-block-group,
.internal-article .materials-grid > .wp-block-group,
.internal-article .funding-route-grid > .wp-block-group,
.internal-article .selection-section > .wp-block-group,
.internal-article .score-block > .wp-block-group,
.internal-article .apply-callout > .wp-block-group { margin-block: 0; }
.internal-article .requirement-number { font-family: "Arial Narrow", Arial, sans-serif; font-size: 30px; font-weight: 700; margin: 0; line-height: 1.2; }
.materials-grid .material-number, .materials-grid .material-label { margin: 0; }
.score-block .score-value, .score-block .score-label { margin: 0; }
.score-block .score-value { font-family: "Arial Narrow", Arial, sans-serif; font-size: 52px; font-weight: 700; }
.score-block .score-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.funding-route-grid > div > .route-number { font-size: 34px; font-weight: 800; margin: 0; }
.funding-route-grid > div > p:last-child { margin-top: auto; margin-bottom: 0; }
.editorial-note > p:first-child { margin-top: 0; }
.wp-block-button__link { border-radius: 0; }
.entry-content a:not(.apply-button):not(.text-link) { text-underline-offset: 4px; }
.entry-content :where(h2,h3,[id]) { scroll-margin-top: 120px; }
.content-section, .apply-callout, .entry-content :where(h2,h3,[id]) { scroll-margin-top: var(--aiss-header-offset,120px); }
.entry-content :where(table,pre) { max-width: 100%; overflow: auto; }
.entry-content table { border-collapse: collapse; }
.entry-content td, .entry-content th { padding: 12px; border: 1px solid #bbb; text-align: left; }
.entry-content pre { padding: 20px; background: #f5f5f2; }
.entry-content .alignwide { max-width: 100%; }
.entry-content::after { content: ""; display: table; clear: both; }
.internal-article { padding-bottom: 76px; }
.internal-article .apply-callout { margin-bottom: 0; }
.edit-page-link { padding-top: 30px; font-size: 14px !important; }
.homepage-editor-content { padding-block: 54px; }
.posts-section, .single-content, .error-page { padding-block: 70px; }
.single-content { max-width: 1000px; }
.post-featured-image { margin: 30px 0 40px; width: 100%; height: auto; }
.posts-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 48px; }
.post-preview { border-top: 1px solid #111; padding-top: 24px; }
.post-preview img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
.post-preview h2 { font-size: 38px; line-height: 1.05; margin: 18px 0; }
.post-preview h2 a { text-decoration: none; }
.post-preview p { font-size: 17px; line-height: 1.6; }
.post-preview .post-date, .post-date { font-size: 13px; letter-spacing: .08em; }
.search-form { margin: 28px 0; max-width: 700px; }
.search-form label { display: block; margin-bottom: 10px; font-weight: 700; }
.search-form > div { display: flex; gap: 12px; }
.search-form input { min-width: 0; flex: 1; border: 1px solid #111; padding: 14px; font: inherit; }
.navigation { margin: 42px 0; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.pagination .page-numbers { display: inline-block; padding: 12px 16px; border: 1px solid #111; text-decoration: none; }
.pagination .current { background: var(--mist); }
.comments-area { margin-top: 60px; border-top: 1px solid #111; padding-top: 40px; }
.comments-area textarea, .comments-area input:not([type="checkbox"]):not([type="submit"]) { width: 100%; font: inherit; border: 1px solid #111; padding: 12px; }
.comments-area .submit { border: 1px solid #111; border-radius: 0; padding: 14px 24px; font: inherit; font-weight: 700; background: var(--orange); cursor: pointer; }
.submenu .nav-group { display: block; }
.submenu .nav-parent { width: 100%; justify-content: space-between; padding-block: 13px; border-bottom: 1px solid #bbb; white-space: normal; text-align: left; }
.submenu .submenu { position: static; padding: 0 0 0 16px; border: 0; min-width: 0; }
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .submenu { display: grid; position: static; }
html:not(.js) .primary-nav { flex-wrap: wrap; }

@media (max-width: 1120px) {
  .primary-nav { flex-wrap: wrap; gap: 8px 16px; padding-block: 14px; }
  .posts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .admin-bar .site-header { top: auto; }
  .primary-nav { flex-wrap: nowrap; gap: 4px; padding: 18px; }
  .internal-hero-copy h1 { overflow-wrap: normal; }
  html:not(.js) .primary-nav { display: flex; position: static; grid-column: 1 / -1; }
  .posts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .internal-article .content-section h2, .internal-article .apply-callout h2 { font-size: 43px; }
  .internal-article { padding-bottom: 54px; }
  .search-form > div { flex-direction: column; }
}
