:root {
  --paper: #ffffff;
  --ink: #102b54;
  --body: #243650;
  --muted: #405675;
  --line: #c3d1e5;
  --accent: #164eaa;
  --wash: #edf4ff;
  --sans: 'Inter', Arial, Helvetica, sans-serif;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 1.125rem/1.8 var(--sans);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

button {
  font: inherit;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.wrap {
  width: min(1160px, calc(100% - 96px));
  margin-inline: auto;
}

.hero>*, .section-layout>*, .education-grid>*, .community-grid>*, .contact-grid>* {
  min-width: 0;
}

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

.skip-link {
  position: absolute;
  left: 18px;
  top: -80px;
  z-index: 30;
  background: var(--paper);
  padding: 10px 16px;
  font-weight: 700;
}

.skip-link:focus {
  top: 10px;
}

.eyebrow, .detail-label {
  display: block;
  font-size: .875rem;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: .055em;
  color: var(--accent);
}

.eyebrow {
  margin-bottom: 22px;
}

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

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.identity {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.identity span {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .035em;
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  padding-block: 8px;
}

.site-nav a:not(.nav-contact):is(:hover, [aria-current="location"]) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.site-nav .nav-contact {
  min-height: 44px;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
}

.site-nav .nav-contact:is(:hover, [aria-current="location"]) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  text-decoration: none;
}

.menu-button {
  display: none;
}

.hero {
  display: grid;
  grid-template-areas: 'eyebrow portrait''name portrait''role portrait''details portrait''credentials credentials';
  grid-template-columns: minmax(0, 1fr) 370px;
  column-gap: 80px;
  padding-top: 40px;
}

.hero>.eyebrow {
  grid-area: eyebrow;
}

.hero>h1 {
  grid-area: name;
}

.hero-details {
  grid-area: details;
}

h1 {
  font-size: clamp(3.5rem, 6.5vw, 5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.05em;
  margin-bottom: 24px;
}

.name-period {
  color: var(--accent);
}

.hero-role {
  grid-area: role;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-description {
  max-width: 580px;
  color: var(--body);
}

.hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: 100%;
  padding: 14px 20px;
  min-height: 56px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}

.button:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.button-secondary {
  background: var(--paper);
  color: var(--accent);
}

.button-secondary:hover {
  background: var(--wash);
  color: var(--ink);
}

.button:focus-visible {
  outline-offset: 4px;
}

.text-link {
  display: inline-block;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  padding-block: 9px;
}

.text-link span[aria-hidden] {
  margin-left: 7px;
}

.text-link:hover {
  color: var(--ink);
}

.portrait-group {
  grid-area: portrait;
  align-self: center;
}

.portrait-photo {
  background: #e0e9f5;
  border: 1px solid var(--line);
  overflow: hidden;
}

.portrait-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait-group figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
}

.hero-credentials {
  grid-area: credentials;
  display: grid;
  grid-template-columns: 1.1fr 1.2fr .65fr;
  gap: 32px;
  margin-top: 28px;
  padding-block: 24px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero-credentials p {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-top: 9px;
  line-height: 1.6;
}

.hero-credentials p span {
  font-size: 1rem;
  color: var(--body);
  font-weight: 600;
}

.section {
  padding-block: 84px;
}

.section-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 70px;
}

.section-intro h2 {
  margin-bottom: 24px;
}

.section-intro>p:not(.eyebrow) {
  max-width: 30ch;
  color: var(--body);
}

.section-intro>.button {
  margin-top: 24px;
}

.experience-list {
  border-top: 2px solid var(--ink);
}

.experience-entry {
  padding-block: 27px 38px;
}

.experience-entry+.experience-entry {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.experience-entry:last-child {
  padding-bottom: 0;
}

.entry-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.65;
}

.entry-meta>span:first-child {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .035em;
}

.entry-role {
  margin-top: 24px;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

.experience-entry h3 {
  font-size: 1.875rem;
  line-height: 1.3;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.hospital-name {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.experience-entry>.hospital-name {
  margin-bottom: 20px;
}

.experience-entry .hospital-name h3 {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.hospital-logo {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.hospital-logo-tianjin {
  object-fit: cover;
  object-position: left;
}

.entry-summary {
  max-width: 65ch;
  color: var(--body);
}

.experience-details {
  margin: 20px 0 0;
  padding-left: 22px;
  color: var(--body);
}

.experience-details li {
  padding-left: 6px;
  margin-bottom: 12px;
}

.experience-details li:last-child {
  margin-bottom: 0;
}

.experience-details li::marker {
  color: var(--accent);
  font-size: .85em;
}

.inline-link {
  display: inline-block;
  margin-top: 23px;
  padding-block: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration-thickness: 2px;
}

.inline-link span {
  margin-left: 7px;
}

.credential-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.credential-heading>h3, .credential-heading>h4 {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.credential-heading>.hospital-name {
  flex: 1;
}

.experience-entry .credential-heading {
  margin-bottom: 20px;
}

.award-item .credential-heading {
  margin-bottom: 10px;
}

.award-item .credential-heading>h4 {
  margin-bottom: 0;
}

.certificate-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 7px 2px;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
}

.certificate-link span {
  flex-shrink: 0;
}

.certificate-link span[aria-hidden] {
  font-size: 1.25rem;
}

.certificate-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.community-section {
  background: var(--wash);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 45px;
  align-items: flex-end;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  margin-bottom: 18px;
}

.section-heading>p {
  max-width: 370px;
  color: var(--body);
  padding-bottom: 2px;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.community-entry {
  border-top: 2px solid #819fc7;
  padding-top: 25px;
}

.community-entry h3 {
  font-size: 1.75rem;
  line-height: 1.35;
  letter-spacing: -.025em;
  margin-top: 24px;
  margin-bottom: 12px;
}

.institution {
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--accent);
  line-height: 1.75;
}

.community-entry .experience-details {
  margin-top: 24px;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.degree-block {
  border-top: 2px solid var(--ink);
  padding-top: 27px;
}

.degree-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  padding: 16px 20px;
  background: var(--wash);
  border-left: 4px solid var(--accent);
  color: var(--ink);
  line-height: 1.6;
}

.degree-dates {
  font-size: 1.25rem;
  font-weight: 800;
}

.degree-location {
  font-size: 1.125rem;
  font-weight: 700;
}

.degree-block h3 {
  font-size: 2.5rem;
  letter-spacing: -.035em;
  margin-block: 22px 0;
  line-height: 1.3;
}

.university {
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
}

.university-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
}

.university-identity>div {
  min-width: 0;
}

.university-logo {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.university-label {
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.6;
}

.university-identity .university {
  margin-top: 6px;
}

.degree-distinction {
  margin-top: 20px;
  color: var(--body);
}

.degree-distinction strong {
  font-weight: 700;
  color: var(--ink);
}

.early-education {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.early-education>div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.school-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.school-details {
  min-width: 0;
}

.school-year {
  display: block;
  margin-bottom: 4px;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--accent);
}

.early-education p {
  font-size: 1rem;
  color: var(--body);
}

.early-education strong {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}

.registration-note {
  margin-top: 28px;
  padding: 19px 21px;
  background: var(--wash);
  border-left: 3px solid var(--accent);
}

.registration-note p {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--body);
}

.honours {
  align-self: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--wash);
}

.honours-header {
  margin-bottom: 26px;
}

.honours-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.honours-header h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -.025em;
}

.award-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-block: 24px;
}

.award-item:last-child {
  padding-bottom: 0;
}

.award-item>span {
  justify-self: start;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--accent);
}

.award-item h4 {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.award-item p {
  font-size: 1.0625rem;
  color: var(--body);
}

.learning-section {
  border-top: 1px solid var(--line);
}

.learning-content {
  border-top: 2px solid var(--ink);
}

.learning-row {
  padding-block: 26px 30px;
  border-bottom: 1px solid var(--line);
}

.learning-row>h3 {
  font-size: 1.125rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  font-size: 1.0625rem;
  color: var(--body);
}

.course+.course {
  margin-top: 24px;
}

.course h4, .leadership-row h4 {
  font-size: 1.125rem;
  line-height: 1.65;
}

.course p, .leadership-row p {
  font-size: 1.0625rem;
  color: var(--body);
  margin-top: 6px;
}

.learning-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-section {
  padding-block: 72px 78px;
  background: var(--ink);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 75px;
}

.contact-section .eyebrow {
  color: #c6dbff;
  margin-bottom: 20px;
}

.contact-section h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
}

.contact-section h2+p {
  max-width: 380px;
  color: #e5edff;
  margin-top: 24px;
}

.contact-details {
  align-self: center;
  border-top: 1px solid #728eb4;
}

.contact-details>a,
.contact-details>.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 7px 16px;
  text-decoration: none;
  border-bottom: 1px solid #728eb4;
  padding-block: 22px;
}

.contact-details .detail-label {
  grid-column: 1;
  font-size: .875rem;
  color: #c6dbff;
  letter-spacing: .04em;
}

.contact-value {
  grid-column: 1;
  grid-row: 2;
  font-size: 1.125rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-details a:hover .contact-value {
  text-decoration: underline;
}

.contact-arrow {
  grid-column: 2;
  grid-row: 2;
  color: #fff;
  font-size: 1.375rem;
}

.contact-details a:focus-visible {
  outline-color: #c6dbff;
}

.contact-resume {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-block: 22px;
}

.button-footer {
  min-width: 180px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid #91add4;
  background: transparent;
  color: #fff;
  font-weight: 600;
  transition: background .18s, border-color .18s, color .18s;
}

.button-footer:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.footer {
  background: var(--ink);
  color: #dce8fc;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
  border-top: 1px solid #728eb4;
  font-size: .875rem;
  font-weight: 600;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer a:focus-visible {
  outline-color: #c6dbff;
}

@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: 45px;
  }

  h1 {
    font-size: 4.25rem;
  }

  .hero-role {
    font-size: 1.375rem;
  }

  .section-layout {
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 45px;
  }

  .section-intro h2 {
    font-size: 2.25rem;
  }

  .education-grid, .community-grid {
    gap: 40px;
  }

  .contact-grid {
    gap: 50px;
  }

  .site-nav {
    gap: 20px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 60px;
  }

  .wrap {
    width: calc(100% - 48px);
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0;
  }

  .identity {
    min-height: var(--header-height);
    align-items: center;
    font-size: 1.375rem;
  }

  .identity span {
    padding-top: 3px;
  }

  .menu-button:not([hidden]) {
    display: flex;
    width: 44px;
    height: 44px;
    margin-block: calc((var(--header-height) - 44px) / 2);
    background: transparent;
    border: 2px solid var(--line);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform .18s;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header-height) - 1px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 16px;
  }

  .site-nav a {
    padding: 10px 0;
    font-size: 1rem;
  }

  .site-nav .nav-contact {
    margin-top: 8px;
    padding: 10px 16px;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .hero {
    grid-template-areas: 'eyebrow' 'portrait' 'name' 'credentials' 'details';
    grid-template-columns: minmax(0, 1fr);
    column-gap: 24px;
    row-gap: 20px;
    padding-top: 28px;
  }

  .hero>.eyebrow {
    margin-bottom: 0;
    text-align: center;
  }

  .hero h1 {
    align-self: center;
    margin-bottom: 0;
    text-align: center;
  }

  h1 {
    font-size: 4rem;
  }

  .hero-role {
    font-size: 1.25rem;
    margin-bottom: 0;
  }

  .hero-links {
    gap: 16px;
  }

  .hero-credentials {
    gap: 24px;
    margin-top: 0;
    padding-block: 20px;
  }

  .hero-credentials p span {
    display: block;
  }

  .portrait-group {
    width: clamp(200px, 45vw, 260px);
    max-width: 100%;
    justify-self: center;
  }

  .portrait-photo img {
    aspect-ratio: 1;
    object-position: center 20%;
  }

  .section {
    padding-block: 68px;
  }

  .section-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .section-intro h2 {
    font-size: 2.5rem;
  }

  .section-intro h2 br {
    display: none;
  }

  .section-intro>p:not(.eyebrow) {
    max-width: 58ch;
  }

  .section-intro>.button {
    margin-top: 20px;
  }

  .section-heading {
    display: block;
    margin-bottom: 34px;
  }

  .section-heading>p {
    max-width: 56ch;
    margin-top: 20px;
  }

  .community-grid, .education-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .community-entry .experience-details {
    max-width: 65ch;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .contact-section h2+p {
    max-width: 54ch;
  }

  .footer-inner {
    flex-wrap: wrap;
  }

  .footer-note {
    display: none;
  }
}

@media (max-width: 700px) {
  .hero {
    row-gap: 20px;
  }

  .hero-role {
    font-size: 1.375rem;
  }

  .hero-credentials {
    margin-top: 0;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 1.0625rem;
  }

  .wrap {
    width: calc(100% - 40px);
  }

  .identity {
    font-size: 1.25rem;
    gap: 10px;
  }

  .identity span {
    font-size: .875rem;
  }

  .hero {
    padding-top: 28px;
    column-gap: 14px;
    row-gap: 20px;
  }

  .eyebrow, .detail-label {
    font-size: .875rem;
    letter-spacing: .035em;
  }

  .hero .eyebrow {
    margin-bottom: 0;
  }

  h1 {
    font-size: clamp(2.625rem, 12.5vw, 3.5rem);
  }

  .hero-role {
    font-size: 1.25rem;
    margin-bottom: 0;
  }

  .hero-description {
    max-width: 450px;
  }

  .hero-links {
    gap: 12px;
    margin-top: 26px;
  }

  .hero-links .button {
    width: 100%;
  }

  .button {
    font-size: 1rem;
    padding-inline: 19px;
    gap: 18px;
  }

  .text-link {
    font-size: 1rem;
  }

  .portrait-group figcaption {
    font-size: .875rem;
  }

  .hero-credentials {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 0;
  }

  .hero-credentials>div {
    display: grid;
    grid-template-columns: minmax(115px, .9fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 14px;
    padding-block: 10px;
  }

  .hero-credentials>div+div {
    border-top: 1px solid var(--line);
  }

  .hero-credentials .detail-label {
    line-height: 1.5;
  }

  .hero-credentials p {
    margin-top: 0;
    font-size: 1.0625rem;
    line-height: 1.5;
  }

  .hero-credentials p span {
    display: block;
    font-size: 1rem;
  }

  .section {
    padding-block: 54px;
  }

  h2, .section-intro h2 {
    font-size: 2rem;
  }

  .section-intro h2 {
    margin-bottom: 21px;
  }

  .section-layout {
    gap: 30px;
  }

  .experience-entry {
    padding-block: 23px 32px;
  }

  .experience-entry+.experience-entry {
    padding-top: 27px;
  }

  .entry-meta {
    font-size: .875rem;
    gap: 8px 16px;
  }

  .entry-meta>span:first-child {
    font-size: .875rem;
  }

  .entry-role {
    margin-top: 22px;
  }

  .experience-entry h3 {
    font-size: 1.625rem;
    margin-bottom: 19px;
  }

  .hospital-name {
    gap: 12px;
  }

  .hospital-logo {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .experience-details {
    padding-left: 19px;
  }

  .experience-details li {
    padding-left: 3px;
  }

  .community-entry {
    padding-top: 22px;
  }

  .community-entry h3 {
    margin-top: 22px;
    font-size: 1.5rem;
  }

  .institution {
    font-size: 1.0625rem;
  }

  .education-grid {
    gap: 36px;
  }

  .degree-block h3 {
    font-size: 2.25rem;
  }

  .university {
    font-size: 1.1875rem;
  }

  .university-identity {
    gap: 16px;
  }

  .university-logo {
    flex-basis: 80px;
    width: 80px;
    height: 80px;
  }

  .early-education>div {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
  }

  .school-logo {
    width: 72px;
    height: 72px;
  }

  .registration-note {
    padding: 18px;
  }

  .award-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .award-item>span {
    font-size: .9375rem;
  }

  .award-item h4 {
    font-size: 1.125rem;
  }

  .honours {
    padding: 24px 20px;
  }

  .honours-header {
    margin-bottom: 22px;
  }

  .skills-list {
    grid-template-columns: minmax(0, 1fr);
    font-size: 1.0625rem;
    gap: 13px;
  }

  .credential-heading {
    gap: 12px;
  }

  .certificate-label {
    display: none;
  }

  .contact-section {
    padding-block: 54px;
  }

  .contact-grid {
    gap: 30px;
  }

  .contact-section h2 {
    font-size: 2.25rem;
  }

  .contact-section h2+p {
    margin-top: 21px;
  }

  .contact-value {
    font-size: 1.0625rem;
  }

  .footer-inner {
    gap: 14px;
    padding-block: 24px;
  }

  .footer-inner>a {
    margin-left: auto;
  }
}

@media (min-width: 861px) and (max-height: 820px) {
  :root {
    --header-height: 64px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 48px;
    padding-top: 24px;
  }

  .hero .eyebrow {
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: 3.75rem;
    margin-bottom: 16px;
  }

  .hero-role {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .hero-description {
    max-width: 68ch;
    line-height: 1.7;
  }

  .hero-links {
    margin-top: 20px;
  }

  .hero-credentials {
    margin-top: 22px;
    padding-block: 18px;
  }

  .hero-credentials p {
    margin-top: 7px;
  }
}

@media (min-width: 861px) and (max-height: 680px) {
  :root {
    --header-height: 60px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 260px;
    column-gap: 40px;
    padding-top: 16px;
  }

  .hero .eyebrow {
    margin-bottom: 8px;
  }

  .hero h1 {
    font-size: 3.25rem;
    line-height: 1.05;
    margin-bottom: 12px;
  }

  .hero-role {
    font-size: 1.1875rem;
    line-height: 1.45;
    margin-bottom: 10px;
  }

  .hero-description {
    line-height: 1.65;
  }

  .hero-links {
    margin-top: 16px;
  }

  .hero-credentials {
    margin-top: 18px;
    padding-block: 12px;
  }
}

@media (max-width: 540px) and (max-height: 700px) {
  :root {
    --header-height: 56px;
  }

  .hero {
    padding-top: 12px;
    column-gap: 12px;
    row-gap: 10px;
  }

  .hero .eyebrow {
    margin-bottom: 0;
  }

  .hero h1 {
    font-size: clamp(2.625rem, 12.5vw, 3.5rem);
    line-height: 1.04;
    margin-bottom: 0;
  }

  .hero-role {
    font-size: 1.125rem;
    line-height: 1.5;
  }

  .hero-role br {
    display: none;
  }
}

@media (min-width: 541px) and (max-width: 860px) and (max-height: 500px) {
  :root {
    --header-height: 56px;
  }

  .hero {
    padding-top: 8px;
    column-gap: 16px;
    row-gap: 4px;
  }

  .hero .eyebrow {
    margin-bottom: 0;
  }

  .hero h1 {
    font-size: 3rem;
    margin-bottom: 0;
  }

  .hero h1 br, .hero-role br {
    display: none;
  }

  .hero-role {
    font-size: 1.125rem;
    line-height: 1.45;
  }

  .hero-credentials {
    padding-block: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
  }
}
