/* INETE colours. Figtree for headings and text, the face Sword Health uses. Soft green is the main accent. Blue stays on text links, apart from the green buttons. */

:root {
  --green: #7ab51d;
  --green-dark: #1f5c2e;
  --green-deep: #0f3d1f;
  --green-light: #b8e986;
  --green-soft: #f3f8ec;
  --blue: #1a5bb5;
  --ink: #111111;
  --muted: #525252;
  --line: #e4e4e4;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-2: #ffffff;
  --bg-3: #f3f8ec;
  --fg: #111111;
  --fg-2: #525252;
  --fg-3: #6b6b6b;
  --serif: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-h: 52px;
  --shadow: 0 16px 40px rgba(15, 61, 31, 0.08);
  --curve: 252.5vw;
  --curve-depth: 5vw;
}

body[data-page="home"] {
  --ink: #161616;
  --muted: #5c5b57;
  --line: #e6e1d6;
  --white: #ffffff;
  --bg: #f4f1ea;
  --bg-2: #ffffff;
  --bg-3: #f3f8ec;
  --fg: #161616;
  --fg-2: #4e4e4c;
  --fg-3: #6e6d68;
  --shadow: 0 18px 44px rgba(20, 20, 19, 0.07);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
}

body[data-page="home"] {
  --bg: #ffffff;
  background: #fff;
  background-image: none;
}

body:not([data-page="home"]) {
  padding-top: 84px;
}

h1, h2, h3, .section-title, .brand-text, .phase h2 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}

h1, .page-hero h1, .page-head h1, .mark h1 {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.eyebrow, .phase-kicker, .f3-kicker, .status {
  font-family: var(--sans);
  letter-spacing: 0.08em;
}

/* Hovering pill */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(1120px, calc(100% - 20px));
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 61, 31, 0.1);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(20, 20, 19, 0.06);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 0;
  height: 100%;
  width: 100%;
  padding: 0 10px 0 12px;
  gap: 8px;
}

.brand { grid-column: 1; grid-row: 1; justify-self: start; }
.nav-drawer {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}
.nav-links { grid-column: 1; grid-row: 1; justify-self: center; }
.countdown { grid-column: 2; grid-row: 1; justify-self: end; }
.nav-tools { grid-column: 3; grid-row: 1; justify-self: end; }

.brand img {
  width: 28px;
  height: 28px;
}

.brand-text {
  font-size: 18px;
  font-weight: 500;
}

.brand-text em {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
}

.nav-ico,
.count-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.nav-links a:hover { background: transparent; color: var(--fg); }

.nav-burger { display: none; }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: rgba(20, 20, 19, 0.05);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--fg-3);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 7px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 1px 4px rgba(20, 20, 19, 0.08);
}

.nav-backdrop { display: none; }

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

.nav-links a[aria-current="page"] {
  background: transparent;
  box-shadow: none;
  color: var(--fg);
}

body[data-page="home"] .nav {
  background: rgba(250, 249, 245, 0.9);
  border-color: rgba(20, 20, 19, 0.08);
}

.countdown {
  justify-self: end;
  align-self: center;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  margin-left: 0;
  min-width: max-content;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--fg-2);
  line-height: 1;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.count-name {
  color: var(--fg);
  font-weight: 600;
}

.count-num {
  display: inline-flex;
  align-items: flex-end;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  text-align: center;
  vertical-align: middle;
}

#count-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cal {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  color: #2a2a28;
  line-height: 1;
  transform: translateY(-7px);
}

.cal-rings {
  position: absolute;
  top: 3.6px;
  left: 50%;
  display: block;
  width: 28px;
  height: 7px;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.cal-rings--back { z-index: 0; }
.cal-rings--front { z-index: 4; }

.cal-stage {
  position: relative;
  z-index: 1;
  display: grid;
  perspective: 160px;
  min-width: 28px;
  height: 22px;
  margin-top: 7px;
}

.cal-stage::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: -2px;
  height: 3px;
  background: #eceae4;
  border-radius: 0 0 2px 2px;
  z-index: -1;
}

.cal-sheet {
  grid-area: 1 / 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
  padding: 5px 3px 2px;
  background:
    linear-gradient(#f4f1ea, #f4f1ea) top / 100% 3px no-repeat,
    #fffefb;
  color: #161616;
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 3px 3px 2px 2px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.cal-sheet--turn {
  z-index: 1;
  transform-origin: top center;
  backface-visibility: hidden;
  background: linear-gradient(#fff, #f3f0e8);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.08);
}

.cal-sheet--turn[hidden] { display: none; }

.cal-sheet--turn.is-turning {
  animation: cal-turn 0.05s linear forwards;
}

@keyframes cal-turn {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(-112deg); opacity: 0; }
}

.countdown-label {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-2);
  font-weight: 500;
}

.countdown-cols {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 7px;
}

.countdown-cols b {
  font-weight: 500;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.countdown-cols i {
  font-style: normal;
  margin-left: 1px;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-3);
  font-weight: 500;
}

/* Orbit hero, adapted from the portfolio stage */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #f3efe6;
  background-image: none;
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  z-index: 8;
  pointer-events: none;
  background: linear-gradient(to top, rgba(243, 239, 230, 0.55), transparent 70%);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.8) 36%, transparent 82%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.8) 36%, transparent 82%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--curve-depth) + 2vw);
  background: #fff;
  -webkit-mask-image: radial-gradient(circle at 50% calc(100% - var(--curve)), transparent var(--curve), #000 var(--curve));
  mask-image: radial-gradient(circle at 50% calc(100% - var(--curve)), transparent var(--curve), #000 var(--curve));
}

.hero::after { content: none; }

.stage { position: absolute; inset: 0; z-index: 1; }

.mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  width: min(640px, calc(100% - 48px));
  text-align: center;
  pointer-events: none;
}

.mark h1 {
  margin: 0;
  position: relative;
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 36px);
  transform: translateX(-50%);
  font-size: 72px;
  line-height: 1.02;
  white-space: nowrap;
  color: var(--fg);
}

.mark-sub {
  width: max-content;
  margin: 2px auto 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg-2);
}

.mark-lead {
  width: max-content;
  margin: 26px auto 0;
  color: var(--fg-3);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ring-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.ring-frame[data-ring="outer"] {
  z-index: 1;
}

.ring-frame[data-ring="inner"] { z-index: 7; }

.ring-bloom {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  animation: ring-bloom 1.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ring-frame[data-ring="outer"] .ring-bloom { animation-delay: 0.06s; }

.ring-spin {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  animation: orbit-spin var(--spin, 110s) linear infinite;
}

.ring-frame[data-ring="outer"] .ring-spin { animation-name: orbit-spin-rev; }

.tile {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--tile, 112px);
  height: var(--tile, 112px);
  margin: calc(var(--tile, 112px) / -2) 0 0 calc(var(--tile, 112px) / -2);
  color: var(--fg-3);
  text-decoration: none;
  pointer-events: auto;
  transform: rotate(calc(var(--i) * var(--step, 24deg))) translateY(calc(var(--r, 340px) * -1));
}

.ring-frame[data-ring="inner"] .tile { --r: var(--r-inner); }
.ring-frame[data-ring="outer"] .tile { --r: var(--r-outer); pointer-events: none; }

.tile-face {
  display: block;
  width: 100%;
  height: 100%;
  animation: orbit-counter var(--spin, 110s) linear infinite;
  transform-origin: center center;
}

.ring-frame[data-ring="outer"] .tile-face { animation-name: orbit-counter-rev; }

.tile-visual {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7.5%;
  overflow: hidden;
  background: #f6f3ee;
  box-shadow: 0 12px 28px rgba(20, 20, 19, 0.1), 0 0 0 1px rgba(20, 20, 19, 0.06);
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.tile[data-kind="mobility"] .tile-visual { background: #e7eef8; }

.tile-visual img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }

.tile-caption {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: calc(var(--tile, 112px) + 28px);
  transform: translateX(-50%);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  color: var(--fg-3);
}

.ring-frame[data-ring="outer"] .tile-caption { opacity: 0.7; }

.tile:hover .tile-visual,
.tile.is-held .tile-visual { transform: scale(1.06); }

.tile:hover .tile-caption,
.tile.is-held .tile-caption { color: var(--fg); }

.hero.is-paused .ring-spin,
.hero.is-paused .tile-face { animation-play-state: paused; }

.tile-lift {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.tile-lift.is-on {
  opacity: 1;
  visibility: visible;
}

.tile-lift-visual {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7.5%;
  overflow: hidden;
  background: #f6f3ee;
  box-shadow: 0 12px 28px rgba(20, 20, 19, 0.1), 0 0 0 1px rgba(20, 20, 19, 0.06);
  transform: scale(1);
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.tile-lift.is-on .tile-lift-visual { transform: scale(1.06); }

.tile-lift.is-mobility .tile-lift-visual { background: #e7eef8; }

.tile-lift-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
}

.tile-lift-name {
  position: absolute;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  color: var(--fg);
}

.hero.is-static .tile-lift { display: none; }

.tilecard {
  position: absolute;
  z-index: 7;
  width: 248px;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tilecard.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tilecard-year {
  margin: 0;
  font-size: 12px;
  color: var(--fg-3);
}

.tilecard h2 {
  margin: 4px 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.tilecard p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg-2);
}

.tilecard a {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.hero.is-static {
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 96px 0 40px;
}

.hero.is-static .stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px 8px;
}

.hero.is-static .mark {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin-bottom: 28px;
}

.hero.is-static .mark h1 {
  left: auto;
  transform: none;
  white-space: normal;
  width: auto;
  font-size: 48px !important;
}

.hero.is-static .ring-frame[data-ring="outer"],
.hero.is-static .hero-fade,
.hero.is-static::before,
.hero.is-static::after { display: none; }

.hero.is-static .ring-frame[data-ring="inner"] {
  position: relative;
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 8px;
  justify-items: center;
}

.hero.is-static .ring-bloom,
.hero.is-static .ring-spin {
  position: static;
  width: auto;
  height: auto;
  animation: none;
  display: contents;
}

.hero.is-static .tile {
  position: relative;
  width: 96px;
  height: auto;
  margin: 0;
  transform: none !important;
}

.hero.is-static .tile-face { animation: none; }
.hero.is-static .tile-visual { width: 96px; height: 96px; }

@keyframes ring-bloom {
  from { transform: translate(-50%, -50%) scale(0.12); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-rev { to { transform: rotate(-360deg); } }

@keyframes orbit-counter {
  from { transform: rotate(calc(var(--i) * var(--step, 24deg) * -1)); }
  to { transform: rotate(calc(var(--i) * var(--step, 24deg) * -1 - 360deg)); }
}

@keyframes orbit-counter-rev {
  from { transform: rotate(calc(var(--i) * var(--step, 24deg) * -1)); }
  to { transform: rotate(calc(var(--i) * var(--step, 24deg) * -1 + 360deg)); }
}

/* Inner pages: INETE green, with Erasmus blue for labels and links */

body:not([data-page="home"]) {
  background: #f7f6f2;
  background-image: none;
}

body:not([data-page="home"]) .nav-links a[aria-current="page"],
body:not([data-page="home"]) .countdown {
  color: var(--green-dark);
}

body:not([data-page="home"]) .eyebrow,
body:not([data-page="home"]) .entry-kicker,
body:not([data-page="home"]) .phase-kicker,
body:not([data-page="home"]) .f3-kicker,
body:not([data-page="home"]) .status {
  color: var(--green-dark);
}

body:not([data-page="home"]) main .reading-nav a:not(.how-btn):not(.apply-btn):not(.entry-main):not(.btn):not(.btn-quiet):not(.partner) {
  color: var(--fg-2);
}
body:not([data-page="home"]) main .reading-nav a:hover {
  color: var(--green-dark);
}

body:not([data-page="home"]) .entry-links a,
body:not([data-page="home"]) main a:not(.how-btn):not(.apply-btn):not(.entry-main):not(.btn):not(.btn-quiet):not(.partner):not(.pdf-btn):not(.social-link) {
  color: var(--blue);
}

body:not([data-page="home"]) main .entry-more a:not(.how-btn):not(.apply-btn):not(.entry-main):not(.btn):not(.btn-quiet):not(.partner):not(.pdf-btn):not(.social-link),
body:not([data-page="home"]) main .marquee a:not(.how-btn):not(.apply-btn):not(.entry-main):not(.btn):not(.btn-quiet):not(.partner):not(.pdf-btn):not(.social-link) {
  color: var(--fg);
}

.fact-band { padding: 12px 0 72px; }

body:not([data-page="home"]) .entry h2,
body:not([data-page="home"]) .page-head h1,
body:not([data-page="home"]) .page-hero h1,
body:not([data-page="home"]) .section-title,
body:not([data-page="home"]) .phase h2 {
  color: var(--fg);
}

.page-hero,
.page-head {
  background: transparent;
  color: inherit;
  padding: 36px 0 8px;
}

.page-hero .wrap {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.page-hero h1,
.page-head h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: none;
}

.page-head h1 { white-space: nowrap; }

.page-hero .lead,
.page-head .lead {
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.5;
}

.page-hero .lead {
  max-width: 38rem;
  margin-top: 20px;
  text-align: left;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.hero-side {
  display: inline-grid;
  align-content: start;
  justify-items: stretch;
  gap: 10px;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
}

.hero-side .pdf-btn,
.hero-side .how-btn {
  width: 100%;
  margin-top: 0;
  box-sizing: border-box;
}

.page-hero .pdf-btn {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 10px 14px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.8);
}

.page-hero .eyebrow { color: var(--green-dark); }
.page-hero h1 { color: var(--green-deep); }
.page-hero .lead { color: var(--fg-2); }

.page-head .eyebrow { color: var(--green-dark); }
.page-head h1 { color: var(--green-deep); }

body[data-page="ka2"] .page-head {
  margin: 0 0 28px;
  padding: 36px 0 8px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-head .lead,
.lead { color: var(--fg-2); }

.page-hero .how-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  margin-top: 0;
  padding: 8px 8px 8px 22px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--fg);
  text-decoration: none;
  box-shadow: none;
}

.page-hero .how-btn:hover { background: #f7f4ee; color: var(--fg); transform: none; }

.page-hero .how-btn strong {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--fg);
}

.page-hero .how-btn small { color: var(--fg-3); }

.page-hero .how-btn-arrow {
  width: 40px;
  height: 40px;
  background: #f3efe6;
  color: var(--fg);
}

.chip {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(31, 92, 46, 0.14);
  color: var(--fg-2);
}

.follow-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 22px 0 0;
}

.apply-btn,
.phase .apply-btn,
.pdf-btn,
.phase .pdf-btn,
.page-hero .pdf-btn {
  width: auto;
  align-self: flex-start;
  display: inline-flex;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 999px;
}

.phase-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin-top: 8px;
  gap: 12px;
}

.phase-actions .apply-btn,
.phase-actions .pdf-btn {
  margin-top: 0;
}

.phase-actions .apply-btn { width: 100%; }

.phase-actions .pdf-btn {
  width: fit-content;
  align-self: flex-start;
}

.apply-btn,
.phase .apply-btn {
  background: var(--green-dark);
  color: #fff;
  border: 0;
}

.apply-btn:hover { background: var(--green-deep); color: #fff; }

.apply-btn.is-wait,
.apply-btn.is-wait:hover {
  background: #fff;
  color: var(--fg-3);
  border: 1px solid rgba(17, 17, 17, 0.14);
  cursor: default;
  pointer-events: none;
}

.page-hero .apply-btn.is-wait,
.page-hero .apply-btn.is-wait:hover {
  display: flex;
  width: 100%;
  min-height: 64px;
  margin-top: 22px;
  padding: 8px 8px 8px 28px;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  background: var(--green-dark);
  color: #fff;
  border: 0;
  cursor: default;
  pointer-events: auto;
}

.apply-main {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.apply-clock {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
}

.apply-days {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px 4px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-deep);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.apply-rest {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.apply-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  flex: none;
}

.page-hero .apply-arrow,
.phase-actions .apply-arrow {
  width: clamp(56px, 16vw, 192px);
}

.apply-tip {
  position: absolute;
  right: 24px;
  bottom: calc(100% + 10px);
  z-index: 3;
  max-width: 32ch;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 10px 28px rgba(20, 20, 19, 0.14);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.phase-actions .apply-btn.is-wait,
.phase-actions .apply-btn.is-wait:hover {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  min-height: 56px;
  padding: 8px 8px 8px 22px;
  background: var(--green-dark);
  color: #fff;
  border: 0;
  cursor: default;
  pointer-events: auto;
}

.phase-actions .apply-label { white-space: nowrap; }

.page-hero .apply-btn.is-wait:hover .apply-tip,
.page-hero .apply-btn.is-wait:focus-visible .apply-tip,
.phase-actions .apply-btn.is-wait:hover .apply-tip,
.phase-actions .apply-btn.is-wait:focus-visible .apply-tip {
  opacity: 1;
  transform: none;
}

.apply-arrow svg { width: 24px; height: 24px; }

.apply-btn.is-wait .pdf-tag {
  background: #f3efe6;
  color: var(--fg);
}

.apply-btn .pdf-tag {
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border: 0;
}

.pdf-btn {
  border-color: rgba(17, 17, 17, 0.14);
  background: #fff;
  color: var(--fg);
}

button.pdf-btn {
  font: inherit;
  cursor: pointer;
  text-align: left;
}

button.rules-link,
button.rules-inline {
  font: inherit;
  cursor: pointer;
  color: inherit;
}

button.rules-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

button.rules-inline {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.rules-open { overflow: hidden; }

.rules-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px 16px;
}

.rules-modal[hidden] { display: none; }

.rules-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 19, 0.46);
}

.rules-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(20, 20, 19, 0.22);
}

.rules-head {
  position: relative;
  flex: none;
  padding: 28px 28px 16px;
}

.rules-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  cursor: pointer;
}

.rules-close svg { width: 18px; height: 18px; }

.rules-kicker {
  margin: 0 48px 6px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.rules-panel h2 {
  margin: 0 48px 8px 0;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.rules-lead {
  margin: 0;
  max-width: 42em;
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.45;
}

.rules-list {
  overflow: auto;
  padding: 0 28px 22px;
}

.rules-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rules-block h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.rules-note {
  margin: 3px 0 10px;
  color: var(--fg-3);
  font-size: 13px;
  line-height: 1.4;
}

.rules-table {
  width: 100%;
  margin-top: 4px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.rules-table th {
  padding: 0 0 6px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--fg-3);
}

.rules-table td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.rules-table tr:last-child td { border-bottom: 0; }

.rules-table .pts {
  width: 7.2rem;
  padding-right: 0;
  text-align: right;
  white-space: nowrap;
}

.rules-table td.pts {
  font-weight: 700;
  color: var(--green-dark);
}

.rules-table tr.is-top td.pts { color: var(--green-deep); }
.rules-table tr.is-zero td.pts { color: var(--fg-2); font-weight: 600; }
.rules-table tr.is-out td.pts { color: #8a3b16; }

@media (max-width: 640px) {
  .rules-head { padding: 22px 16px 12px; }
  .rules-list { padding: 0 16px 16px; }
  .rules-panel { border-radius: 18px; }
  .rules-table .pts { width: 6.4rem; }
}

.pdf-tag { background: var(--bg-3); color: var(--fg-2); }

.phases { gap: 64px; padding: 36px 0 8px; }

.phase,
.phase--apply,
.phase--go {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.phase--go { border-left: 0; padding-left: 0; }

.phase h2 { color: var(--fg); }
.phase--go h2 { color: var(--fg); }
.phase-kicker, .phase--go .phase-kicker { color: var(--fg-3); }

.step-n {
  border: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-variant-numeric: lining-nums;
}

.phase--apply .step-n {
  background: #e4f0c8;
  color: var(--green-dark);
}

.phase--go .step-n {
  background: #e4eef8;
  color: var(--blue);
}

.phase--apply .steps > li::before { background: #d3e7a8; }
.phase--go .steps > li::before { background: #c9daf0; }

.faq-list { gap: 0; }

.faq-list > details,
.faq-list > details[open] {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0;
}

.faq-list > details:last-of-type { border-bottom: 1px solid var(--line); }

.note,
.resources,
.callout,
.after {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  color: var(--fg-2);
}

.wrap.after {
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.legend {
  margin: 8px auto 36px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-3);
}

.note-mark {
  font-size: 0.72em;
  margin-left: 1px;
}

.score-list li {
  background: none;
  border-color: var(--line);
  color: var(--fg-2);
}

.faq-list summary,
.faq-list details[open] summary {
  background: transparent;
  color: var(--fg);
  font-family: var(--sans);
}

.q-badge {
  background: transparent;
  border-color: var(--line);
  color: var(--fg-3);
}

.note {
  background: transparent;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--fg-2);
}

.section-title { color: var(--fg); }

#perguntas.section { padding-top: 88px; }

#perguntas .section-title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.f3 {
  background: transparent;
  color: var(--fg);
  border-radius: 0;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
}

.f3 h2, .f3-kicker { color: var(--fg); }
.f3 p { color: var(--fg-2); }

.f3-links a {
  background: transparent;
  color: var(--fg);
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.f3-links a span { color: var(--fg-3); }

.project-grid { display: block; padding: 0 0 48px; }

.project {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 28px 0;
  background: transparent;
}

.project h3 { font-size: 1.7rem; }

.status {
  background: transparent;
  color: var(--fg-3);
  padding: 0;
}

.site-footer {
  background: #f7f4ee;
  color: #1c1c1c;
  margin-top: 72px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 1.15fr;
  gap: 36px 48px;
  padding: 48px 0 36px;
}

.footer-kicker {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.footer-grid p,
.footer-grid li {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a,
.footer-grid button.rules-link {
  color: #1c1c1c;
  text-decoration: none;
}

.footer-grid a:hover,
.footer-grid button.rules-link:hover { color: var(--green-dark); }

.logo-inete {
  width: max-content;
  max-width: 100%;
}

.logo-inete img {
  width: auto;
  height: 64px;
  max-width: 100%;
}

.footer-brand p { max-width: 36ch; }

.footer-brand strong {
  font-weight: 700;
  color: #1c1c1c;
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: none;
}

.copy-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #1c1c1c;
  cursor: pointer;
  opacity: 0;
  flex: none;
}

.footer-mail:hover .copy-mail,
.footer-mail:focus-within .copy-mail,
.copy-mail.is-copied {
  opacity: 1;
}

.copy-mail svg { width: 13px; height: 13px; }

.copy-mail.is-copied {
  background: #e4f0c8;
  border-color: transparent;
  color: var(--green-dark);
}

.copy-mail.is-copied svg { display: none; }

.copy-mail.is-copied::after {
  content: "✓";
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #fff;
  color: #1c1c1c;
  box-shadow: 0 8px 18px rgba(20, 20, 19, 0.04);
}

.footer-social a:hover {
  background: var(--green-soft);
  border-color: transparent;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  margin: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  padding: 16px 0 22px;
  font-size: 13px;
  color: #5c5b57;
}

.footer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-bar p {
  margin: 0;
  text-align: center;
}

.footer-bar .logo-erasmus,
.footer-bar .logo-eu {
  height: 42px;
  width: auto;
}

.footer-bar .logo-erasmus { justify-self: start; }
.footer-bar .logo-eu { justify-self: end; }

.home-band {
  position: relative;
  padding: 64px 0 112px;
  background: #fff;
}

.home-band .wrap { position: relative; z-index: 1; }

.home-band h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  max-width: 16ch;
}

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.bento li {
  margin: 0;
  padding: 26px 24px 24px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(20, 20, 19, 0.06);
  color: var(--fg-2);
}

.bento-n {
  display: block;
  font-family: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-style: normal;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "kern" 1;
  font-size: clamp(3.2rem, 5vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--green-dark);
}

.bento strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--fg);
  font-size: 1.15rem;
}

.bento p { margin: 0; max-width: 36ch; }

.bento-points {
  margin: 10px 0 0;
  padding: 0 0 0 1.15em;
  list-style: disc;
  max-width: 40ch;
}

.bento-points li {
  margin: 0 0 6px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--fg-2);
}

.bento-points li strong {
  display: inline;
  margin: 0;
  font-size: inherit;
}

.bento-points + p { margin-top: 10px; }

.bento .btn { margin-top: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(31, 92, 46, 0.16);
}

.btn:hover { background: var(--green-deep); color: #fff; }

.btn-quiet {
  background: #fff;
  color: var(--green-dark);
  border: 1px solid rgba(31, 92, 46, 0.22);
  box-shadow: none;
}

.btn-quiet:hover { background: var(--green-soft); color: var(--green-dark); }

.curiosity-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.curiosity-list li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--fg-2);
  max-width: 46ch;
}

.curiosity-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.news-band {
  position: relative;
  margin: 0;
  padding: calc(var(--curve-depth) + 64px) 0 80px;
  background: #f3efe6;
  color: #161616;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

/* Same arc as the hero bottom. White in the centre, beige at the top corners. */
.news-band::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--curve-depth) + 2vw);
  background: #fff;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 50% calc(var(--curve-depth) - var(--curve)), #000 var(--curve), transparent var(--curve));
  mask-image: radial-gradient(circle at 50% calc(var(--curve-depth) - var(--curve)), #000 var(--curve), transparent var(--curve));
}

.news-band .wrap { position: relative; z-index: 1; }

.news-band .news-head .eyebrow { color: #161616; }
.news-band h2 { color: #161616; }
.news-band .news-head p { color: #4e4e4c; }

.news-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.news-head p {
  margin: 0;
  max-width: 36ch;
  color: var(--fg-2);
}

.news-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card {
  margin: 0;
  padding: 18px 20px;
  background: none;
  color: #161616;
  border: 1px solid rgba(22, 22, 22, 0.16);
  border-radius: 8px;
  box-shadow: none;
}

.news-card time {
  font-size: 12px;
  font-weight: 500;
  color: #5c5b57;
}

.news-card h3 {
  margin: 8px 0 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.news-card h3 a {
  color: #161616;
  text-decoration: none;
}

.news-card h3 a:hover { color: #111; }

.news-card p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: #4e4e4c;
}

.news-card .more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: #161616;
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 22, 22, 0.28);
}

.news-card .more:hover { color: #111; border-bottom-color: #111; }

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 72px;
  padding: 64px 0 56px;
}

.paths article {
  max-width: none;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.paths h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.paths p { margin: 0 0 16px; color: var(--fg-2); }

.paths a.more {
  font-weight: 500;
  color: var(--fg);
}

.reading {
  display: grid;
  grid-template-columns: 1fr 208px;
  gap: 48px;
  padding-bottom: 64px;
}

.reading > div { grid-column: 1; grid-row: 1; }

.reading-nav-shell { display: contents; }

.reading-nav-arrow { display: none; }

.reading-nav {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 2px;
  padding: 10px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(20, 20, 19, 0.06);
}

.reading-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
}

.reading-nav a:hover { background: var(--green-soft); color: var(--green-dark); }

body:not([data-page="home"]) main .reading-nav a[aria-current="true"]:not(.how-btn):not(.apply-btn):not(.entry-main):not(.btn):not(.btn-quiet):not(.partner):not(.pdf-btn):not(.social-link) {
  background: #e4f0c8;
  color: var(--green-dark);
  font-weight: 600;
}

body:not([data-page="home"]) main .reading-nav a[aria-current="true"]:not(.how-btn):not(.apply-btn):not(.entry-main):not(.btn):not(.btn-quiet):not(.partner):not(.pdf-btn):not(.social-link):hover {
  background: #d7ebbc;
  color: var(--green-dark);
}

.entry, #perguntas { scroll-margin-top: 96px; }

.entry { padding: 20px 0 144px; border-bottom: 1px solid var(--line); }

.entry-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.entry h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.entry p { margin: 0 0 12px; color: var(--fg-2); max-width: 68ch; }

.entry ul { margin: 0; padding-left: 18px; color: var(--fg-2); }

.entry li + li { margin-top: 6px; }

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 22px;
}

.entry-main {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  background: var(--green-dark);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(31, 92, 46, 0.16);
}

.entry-main:hover { background: var(--green-deep); color: #fff; }

.entry-more {
  display: contents;
}

.entry .entry-more,
.entry .entry-social {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry .entry-more li,
.entry .entry-social li,
.entry .entry-more li + li,
.entry .entry-social li + li {
  margin: 0;
}

.entry-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.entry-more a:hover { border-color: rgba(17, 17, 17, 0.28); }

.entry-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #fff;
  color: #1c1c1c;
  box-shadow: 0 8px 18px rgba(20, 20, 19, 0.04);
}

body:not([data-page="home"]) main .entry-social a {
  color: #1c1c1c;
}

.entry-social a:hover {
  background: var(--green-soft);
  border-color: transparent;
  color: #1c1c1c;
}

.entry-social svg {
  width: 18px;
  height: 18px;
}

.entry-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  margin-top: 28px;
}

.entry-sections section:nth-child(1),
.entry-sections section:nth-child(3) {
  background: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.entry-sections section:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 2;
}

.entry-sections section:nth-child(1) { grid-row: 1; }
.entry-sections section:nth-child(3) { grid-row: 1; }

.entry-sections h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.entry .partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry .partners li {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.entry .partners a.partner {
  display: grid;
  justify-items: start;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.entry .partners li:has(a.partner) { padding: 0; }

.entry .partners a.partner { padding: 0; }

.entry .partners a.partner:hover strong { color: var(--green-dark); }

.partners img {
  width: 104px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 8px 10px rgba(20, 20, 19, 0.14));
}

.partners strong {
  font-size: 14px;
  line-height: 1.3;
  color: var(--fg);
}

.partners span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--fg-3);
}

@media (max-width: 980px) {
  .footer-grid,
  .curiosity-list,
  .bento,
  .paths { grid-template-columns: 1fr 1fr; }
  .news-columns { grid-template-columns: 1fr 1fr; }
  .footer-bar { grid-template-columns: 1fr; justify-items: center; }
  .footer-bar .logo-erasmus,
  .footer-bar .logo-eu { justify-self: center; }
}

@media (max-width: 860px) {
  body { overflow-x: clip; }
  .wrap { width: calc(100% - 32px); }

  .nav {
    top: 8px;
    width: calc(100% - 32px);
    height: 56px;
    border-radius: 16px;
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 6px 0 12px;
    gap: 8px;
  }
  .nav-tools {
    margin-left: auto;
    height: 56px;
  }
  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--fg);
    cursor: pointer;
  }
  .nav-burger-box {
    display: grid;
    gap: 5px;
  }
  .nav-burger-box span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  body.nav-open .nav-burger-box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-burger-box span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger-box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-inner { flex-wrap: wrap; align-content: flex-start; }
  .brand,
  .nav-burger { height: 56px; flex: none; }
  body.nav-open .nav,
  body.nav-open .nav-inner { height: auto; }
  .nav-drawer { display: none; }
  body.nav-open .nav-drawer {
    display: flex;
    flex-direction: column;
    position: static;
    flex: 1 0 100%;
    width: 100%;
    max-height: none;
    margin: 0;
    padding: 0 2px 10px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-backdrop {
    display: block;
    position: fixed;
    z-index: 35;
    inset: 0;
    background: rgba(20, 20, 19, 0.35);
  }
  .nav-drawer .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid rgba(15, 61, 31, 0.08);
  }
  .nav-drawer .nav-links a {
    justify-content: flex-start;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 1.05rem;
    border-radius: 12px;
  }
  .nav-drawer .nav-links a[aria-current="page"] {
    background: #e4f0c8;
    color: var(--green-dark);
    font-weight: 600;
  }
  .nav-drawer .countdown {
    display: flex;
    justify-content: flex-start;
    align-self: stretch;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 8px 10px 2px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--line);
    white-space: normal;
    box-sizing: border-box;
  }
  .nav-drawer .cal { transform: translateY(-4px); }

  .countdown-sub { display: none; }
  body:not([data-page="home"]) { padding-top: 76px; }
  .home-band { padding: 28px 0 56px; }
  .home-band h2,
  .page-hero h1,
  .page-head h1 { font-size: 2.15rem; }
  .page-hero,
  .page-head { padding: 8px 0 4px; }
  .page-head h1 { white-space: normal; }
  .page-hero .lead { margin-top: 14px; }
  .bento { margin-top: 18px; gap: 12px; }
  .fact-band { padding-bottom: 36px; }
  .entry { padding: 12px 0 48px; }
  .reading { gap: 18px; padding-bottom: 28px; min-width: 0; }
  .reading-nav-shell {
    display: block;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    margin-left: calc(50% - 50vw);
  }
  .reading-nav {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: none;
    gap: 6px;
    padding: 8px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .reading-nav::-webkit-scrollbar { display: none; height: 0; }
  .reading-nav a { white-space: nowrap; }
  .reading-nav-arrow {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--green-dark);
    box-shadow: 0 4px 14px rgba(20, 20, 19, 0.14);
    cursor: pointer;
  }
  .reading-nav-arrow[hidden] { display: none; }
  .reading-nav-arrow svg { width: 16px; height: 16px; }
  .reading-nav-arrow.is-prev { left: 6px; }
  .reading-nav-arrow.is-next { right: 6px; }
  .phases { gap: 36px; }
  .faq-search input,
  .phase-actions { width: 100%; }
  .apply-tip { right: 8px; max-width: min(32ch, calc(100vw - 48px)); }
  .phases, .reading { grid-template-columns: 1fr; }
  .phases,
  .phase,
  .phase-actions,
  .callout,
  .steps,
  .steps > li,
  .steps > li > div {
    min-width: 0;
    max-width: 100%;
  }
  .phase-actions .apply-btn { min-width: 0; max-width: 100%; }
  .phase-actions .apply-label { white-space: normal; }
  .phase-actions .apply-btn.is-wait,
  .phase-actions .apply-btn.is-wait:hover {
    align-items: stretch;
    padding: 8px 8px 8px 28px;
  }
  .phase-actions .apply-main {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    min-width: 0;
  }
  .hero-top { flex-direction: column; }
  .hero-side { width: 100%; }
  .page-hero .apply-btn.is-wait,
  .page-hero .apply-btn.is-wait:hover {
    width: 100%;
    align-items: stretch;
    padding: 8px 8px 8px 28px;
  }
  .page-hero .apply-main {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    min-width: 0;
  }
  .page-hero .apply-arrow,
  .phase-actions .apply-arrow {
    height: auto;
    align-self: stretch;
    min-height: 44px;
  }
  .phase--go { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .reading-nav,
  .reading > div { grid-column: auto; grid-row: auto; }
  .reading-nav { position: static; }
  .page-head h1 { white-space: normal; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
    align-items: start;
  }
  .footer-brand { grid-column: 1 / -1; grid-row: 1; }
  .footer-grid > div:not(.footer-brand) { grid-column: 1; grid-row: 2; }
  .footer-grid > nav { grid-column: 2; grid-row: 2; }
  .footer-brand p { max-width: none; }
  .footer-mail {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .footer-mail a { overflow-wrap: anywhere; }
  .copy-mail { opacity: 1; }
  .footer-bar {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "erasmus eu"
      "copy copy";
    justify-items: center;
    align-items: center;
    gap: 14px 12px;
  }
  .footer-bar .logo-erasmus,
  .footer-bar .logo-eu {
    height: 34px;
    width: auto;
    max-width: 100%;
  }
  .footer-bar .logo-erasmus { grid-area: erasmus; justify-self: end; }
  .footer-bar .logo-eu { grid-area: eu; justify-self: start; }
  .footer-bar p { grid-area: copy; }
  .curiosity-list,
  .bento,
  .paths,
  .news-head { grid-template-columns: 1fr; display: grid; }
  .news-band { margin-left: 0; margin-right: 0; border-radius: 0; }
  .entry-sections { grid-template-columns: 1fr; }
  .entry-sections section:nth-child(1),
  .entry-sections section:nth-child(2),
  .entry-sections section:nth-child(3) { grid-column: auto; grid-row: auto; }
  .news-columns { grid-template-columns: 1fr; }
  .news-head { align-items: start; }
}

.partner-strip {
  margin-top: 28px;
  padding: 8px 0 12px;
  overflow: hidden;
}

.partner-strip .eyebrow {
  margin: 0 0 14px;
  padding-left: max(20px, calc((100% - 1080px) / 2));
}

.marquee ul {
  display: flex;
  gap: 12px;
  width: max-content;
  margin: 0;
  padding: 8px 0 18px;
  list-style: none;
  animation: ticker 42s linear infinite;
}

.marquee li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px 20px 8px 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
}

.marquee img {
  width: 48px;
  height: 32px;
  object-fit: contain;
}

.marquee a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ring-bloom, .ring-spin, .tile-face, .marquee ul { animation: none; }
  .marquee ul { flex-wrap: wrap; width: auto; padding-left: 20px; padding-right: 20px; }
}

#netlify-drawer-controller,
#netlify-drawer,
netlify-drawer,
[id^="netlify-"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
