@import url("https://fonts.googleapis.com/css2?family=Playpen+Sans:wght@400;500;600;700&display=swap");

:root {
  --navy: #21476f;
  --navy-dark: #163557;
  --red: #a8233a;
  --blue: #326aa7;
  --paper: #ffffff;
  --mist: #eef3f7;
  --soft-panel: #f6f8fb;
  --line: #dfe5ee;
  --text: #263d55;
  --muted: #5e6d81;
  --shadow: 0 18px 45px rgba(22, 53, 87, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  background:
    linear-gradient(180deg, rgba(6, 40, 92, 0.06), rgba(168, 22, 50, 0.06)),
    var(--mist);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 48px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  border-top: 56px solid var(--red);
  background: linear-gradient(180deg, #ffffff 0%, var(--soft-panel) 100%);
}

.hero-stripe {
  height: 10px;
  background: var(--navy);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.22);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  padding: 34px 40px 46px;
}

.intro {
  max-width: none;
}

.identity-block {
  display: grid;
  justify-items: start;
  gap: 20px;
  margin-bottom: 34px;
}

.logo-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.university-logo {
  display: block;
  width: min(300px, 34vw);
  height: auto;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.16));
}

.wish-heading-block {
  display: grid;
  justify-self: end;
  justify-items: center;
  position: relative;
  padding-bottom: 0;
  gap: 12px;
}

.wish-top-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6fa;
  box-shadow: 0 12px 24px rgba(22, 53, 87, 0.11);
}

.wish-top-logo {
  display: block;
  width: min(225px, 28vw);
  height: auto;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: end;
  margin-top: 54px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  display: inline-block;
  max-width: 760px;
  margin-bottom: 0;
  color: var(--navy-dark);
  font-family: "Playpen Sans", "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.26rem, 2.45vw, 1.72rem);
  font-weight: 500;
  line-height: 1.34;
  border-bottom: 0;
  box-shadow: none;
}

h2 {
  color: var(--navy);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 650;
  line-height: 1.15;
}

.researcher-card {
  display: block;
  margin-bottom: 20px;
  padding: 24px 28px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fbfcff;
  box-shadow: 0 14px 30px rgba(22, 53, 87, 0.08);
}

.researcher-card img {
  float: left;
  width: 138px;
  aspect-ratio: 4 / 5;
  margin: 2px 28px 14px 0;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(22, 53, 87, 0.18);
}

.intro .researcher-note {
  min-width: 0;
  max-width: none;
  margin-bottom: 0;
  color: #5b6675;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.9rem, 1.28vw, 0.95rem);
  font-weight: 400;
  line-height: 1.68;
  text-align: left;
  hyphens: auto;
  overflow-wrap: normal;
}

.researcher-note p {
  max-width: 74ch;
  margin: 0 0 14px;
  color: #5b6675;
  font-size: clamp(0.9rem, 1.28vw, 0.95rem);
  font-weight: 400;
  line-height: 1.68;
  text-align: left;
  overflow-wrap: normal;
}

.researcher-note p:last-child {
  margin-bottom: 0;
}

.researcher-note .body-note {
  font-family: inherit;
}

.wish-highlight {
  display: inline-block;
  margin: 2px 0 16px;
  padding: 9px 12px;
  border-left: 5px solid var(--red);
  border-right: 5px solid #143f7e;
  color: #8f2d3f;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 800;
  line-height: 1.35;
  background: #f7f2f4;
}

.standalone-highlight {
  margin: -10px 0 20px;
}

.logo-highlight {
  justify-self: center;
  margin: 0;
  white-space: nowrap;
}

.researcher-note::after {
  display: block;
  clear: both;
  content: "";
}

.researcher-note strong {
  color: #3c526f;
  font-weight: 650;
}

.accent-blue {
  color: #159bd7 !important;
  font-weight: 700;
}

.title-blue {
  color: var(--navy-dark) !important;
  font-weight: 700;
}

.intro p {
  min-width: 0;
  max-width: none;
  color: var(--navy);
  font-size: clamp(1.06rem, 2vw, 1.34rem);
  font-weight: 440;
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.intro p .accent-blue,
.researcher-note strong.accent-blue {
  color: #159bd7 !important;
}

.intro .lead {
  margin-bottom: 18px;
}

.reminder-box {
  display: grid;
  align-items: center;
  max-width: none;
  margin-top: 12px;
  padding: 14px 16px;
  border-left: 6px solid var(--red);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--line);
}

.reminder-box.compact {
  max-width: none;
  padding: 12px 14px;
}

.reminder-text {
  display: grid;
  gap: 4px;
}

.reminder-text strong,
.reminder-text span {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.4;
}

.reminder-text span {
  color: #334a68;
}

.progress-section,
.share-section {
  padding: 42px 40px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 24px;
}

.section-copy {
  max-width: none;
  margin-bottom: 0;
  color: #334a68;
  font-size: 1.05rem;
  line-height: 1.55;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric-card,
.progress-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(6, 40, 92, 0.08);
}

.metric-card {
  display: grid;
  gap: 8px;
  min-height: 158px;
  padding: 22px;
}

.metric-card.highlight {
  background: var(--navy);
  color: var(--paper);
}

.metric-label,
.metric-card small {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.metric-card.highlight .metric-label,
.metric-card.highlight small {
  color: rgba(255, 255, 255, 0.82);
}

.metric-card strong {
  color: var(--navy);
  font-size: clamp(2.15rem, 5vw, 3.2rem);
  line-height: 1;
}

.metric-card.highlight strong {
  color: var(--paper);
}

.progress-card {
  margin-top: 18px;
  padding: 22px;
}

.progress-topline,
.progress-scale {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--navy);
  font-weight: 700;
}

.progress-track {
  height: 24px;
  margin: 14px 0 9px;
  overflow: hidden;
  border: 1px solid #c9d3e0;
  border-radius: 999px;
  background: #eef2f7;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transition: width 600ms ease;
}

.progress-scale {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.share-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 32px;
  align-items: center;
  background: #fbfcfe;
}

.share-copy p {
  max-width: 780px;
  color: #334a68;
  font-size: 1.05rem;
  line-height: 1.6;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--paper);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}

.share-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.share-button.email {
  background: #4b647d;
}

.share-button.facebook {
  background: #1877f2;
}

.share-button.instagram {
  background: #c13584;
}

.share-button.linkedin {
  background: #0a66c2;
}

.share-button:hover {
  filter: brightness(0.92);
}

.share-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 0.94rem;
  font-weight: 700;
}

.qr-share {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.qr-link {
  display: block;
  width: 174px;
  padding: 12px;
  border: 4px solid var(--navy-dark);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 12px 24px rgba(6, 40, 92, 0.16);
}

.qr-link img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

.qr-share span {
  color: var(--navy);
  font-weight: 700;
}

.qr-share small {
  max-width: 210px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.cheque-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.inline-cheque {
  margin-top: 24px;
  padding: 22px 24px 22px 26px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(22, 53, 87, 0.08);
}

.cheque-section p {
  max-width: none;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.7;
}

.wish-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 172px;
  padding: 24px;
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(31, 95, 191, 0.14);
}

.wish-logo-panel img {
  display: block;
  width: min(100%, 270px);
  height: auto;
}

@media (max-width: 880px) {
  .page-shell {
    width: min(100% - 20px, 680px);
    margin-top: 10px;
  }

  .hero {
    border-top-width: 36px;
  }

  .hero-grid,
  .share-section,
  .cheque-section {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .progress-section,
  .share-section,
  .cheque-section {
    padding: 28px 20px;
  }

  .university-logo {
    width: min(270px, 78vw);
  }

  .logo-row {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 16px;
  }

  .wish-heading-block {
    justify-self: start;
    justify-items: start;
  }

  .wish-top-logo {
    width: min(250px, 78vw);
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  h1 {
    border-bottom-width: 6px;
  }

  .intro p {
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .share-button {
    width: 100%;
  }

  .qr-link {
    width: 152px;
  }

  .researcher-card img {
    float: none;
    width: 128px;
    margin: 0 0 16px;
  }

  .progress-topline {
    display: grid;
  }

}
