/* Loaded after the theme stylesheet: this page has no sidebar. */
#main > article.page,
#main .page {
  box-sizing: border-box !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#main > article.page > .page__inner-wrap,
#main > article.page .page__content {
  box-sizing: border-box !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* All sections share one full-width academic reading column. */
.page__content > .content-section,
.page__content > .content-section.about-section {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.page__content > .content-section > .section-label,
.page__content > .content-section > .section-body {
  box-sizing: border-box !important;
  position: static !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.page__content > .content-section:not(.about-section) > .section-label {
  margin-bottom: 1.5rem !important;
}

@media (max-width: 800px) {
  #main > article.page,
  #main > article.page .page__content { width: 100% !important; }
}

/* Refine the first viewport while keeping the academic three-column layout. */
#main { max-width: 1120px !important; }
.hero { grid-template-columns: 250px minmax(430px, 1fr) 270px !important; }
.hero__portrait { width: 250px !important; height: 313px !important; }
.hero__role { font-size: 1.68rem !important; }
.hero__affiliation { font-size: 1.38rem !important; }
.hero__highlight { font-size: 1.13rem !important; }
.hero__intro { font-size: 1.06rem !important; }
.hero__aside h2 { font-size: 1.42rem !important; }
.hero__aside ul { font-size: 1.18rem !important; }
.hero__links a { font-size: 1.07rem !important; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 220px minmax(0, 1fr) !important; }
  .hero__portrait { width: 220px !important; height: 275px !important; }
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr !important; }
  .hero__portrait { width: min(220px, 72vw) !important; height: auto !important; }
}

/* Larger reading type for every section below the introduction. */
.content-section .section-label h2 { font-size: 1.62rem !important; }
.content-section .section-label > span { font-size: .78rem !important; }
.about-section .about-copy p { font-size: 1.08rem !important; line-height: 1.9 !important; }
.timeline time,
.experience-grid time { font-size: .84rem !important; }
.timeline p { font-size: 1.04rem !important; line-height: 1.7 !important; }
.research-card h3 { font-size: 1.18rem !important; }
.research-card p { font-size: .96rem !important; line-height: 1.65 !important; }
.publication__copy h3 { font-size: 1.28rem !important; line-height: 1.45 !important; }
.publication__copy p { font-size: 1rem !important; line-height: 1.7 !important; }
.publication__copy .authors { font-size: .92rem !important; }
.publication__links a { font-size: .8rem !important; }
.experience-grid h3 { font-size: 1.12rem !important; }
.experience-grid p { font-size: .96rem !important; line-height: 1.6 !important; }
.site-footer { font-size: .84rem !important; }

@media (max-width: 520px) {
  .about-section .about-copy p { font-size: 1rem !important; }
  .publication__copy h3 { font-size: 1.14rem !important; }
  .publication__copy p,
  .timeline p { font-size: .98rem !important; }
}

/* Language and appearance controls. */
.masthead__menu { display: flex; align-items: center; gap: .8rem; }
.masthead__menu > nav { min-width: 0; flex: 1 1 auto; }
.site-controls { display: flex; flex: 0 0 auto; align-items: center; gap: .4rem; }
.site-control { min-width: 2.2rem; height: 2.2rem; padding: 0 .55rem; border: 1px solid #d5dbe5; border-radius: .55rem; background: transparent; color: #4d5561; cursor: pointer; font: 700 .72rem "DM Sans", sans-serif; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.site-control:hover { border-color: #8d99ac; background: #f0f3f8; color: #171a1f; }

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body { background: #121416 !important; color: #e8ebef !important; }
html[data-theme="dark"] .masthead { border-color: #2c3138 !important; background: rgba(18,20,22,.92) !important; }
html[data-theme="dark"] .greedy-nav { background: transparent !important; }
html[data-theme="dark"] .greedy-nav a,
html[data-theme="dark"] .masthead__menu-home-item a,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .hero__role,
html[data-theme="dark"] .hero__aside h2,
html[data-theme="dark"] .hero__aside li,
html[data-theme="dark"] .section-label h2,
html[data-theme="dark"] .about-section .about-copy p,
html[data-theme="dark"] .timeline p,
html[data-theme="dark"] .publication__copy h3,
html[data-theme="dark"] .experience-grid h3 { color: #f1f3f5 !important; }
html[data-theme="dark"] .masthead__menu-home-item span,
html[data-theme="dark"] .hero__intro,
html[data-theme="dark"] .about-copy p,
html[data-theme="dark"] .publication__copy p,
html[data-theme="dark"] .experience-grid p,
html[data-theme="dark"] .research-card p,
html[data-theme="dark"] .site-footer { color: #aeb6c2 !important; }
html[data-theme="dark"] .content-section,
html[data-theme="dark"] .about-section .section-label,
html[data-theme="dark"] .timeline__item,
html[data-theme="dark"] .site-footer { border-color: #303640 !important; }
html[data-theme="dark"] .research-card,
html[data-theme="dark"] .experience-grid article,
html[data-theme="dark"] .publication__visual { border-color: #343b46 !important; background: #1b1f24 !important; }
html[data-theme="dark"] .interest-list span,
html[data-theme="dark"] .button { border-color: #3b4350 !important; background: #1c2127 !important; color: #e8ebef !important; }
html[data-theme="dark"] .site-control { border-color: #3d4654; background: #1b2027; color: #dce2ea; }
html[data-theme="dark"] .site-control:hover { border-color: #718096; background: #28303a; color: #fff; }
html[data-theme="dark"] .hero__portrait { filter: saturate(.9) brightness(.9); }

@media (max-width: 560px) { .site-control { min-width: 2rem; height: 2rem; padding: 0 .42rem; } }

/* Do not retain a mouse-click focus ring on the Personal-page jump link. */
.greedy-nav .visible-links a:focus { outline: none !important; box-shadow: none !important; }
.greedy-nav .visible-links a:focus:not(:focus-visible) { border-color: transparent !important; background: transparent !important; }
.greedy-nav .visible-links a:focus-visible { outline: 2px solid #2850a0 !important; outline-offset: 3px; border-radius: 3px; }

/* Personal page: the same academic restraint with a warmer editorial tone. */
.personal-page { padding: 5.25rem 0 1rem; }
.personal-hero { max-width: 810px; padding-bottom: 4rem; }
.personal-hero__eyebrow { margin: 0 0 1rem; color: #a83232; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.personal-hero h1 { margin: 0 0 1.25rem; color: #171a1f; font: 700 clamp(3.3rem, 7.5vw, 6rem)/.95 "Manrope", sans-serif; letter-spacing: -.065em; }
.personal-hero__intro { max-width: 760px; margin: 0; color: #4e5662; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 2.1vw, 1.6rem); line-height: 1.75; }
.personal-hero__switch { display: inline-flex; margin-top: 1.8rem; padding-bottom: .15rem; border-bottom: 1px solid currentColor; color: #2850a0; font-size: .9rem; font-weight: 700; text-decoration: none; }
.personal-categories { padding: 3rem 0 5rem; border-top: 1px solid #dfe2e6; }
.personal-categories__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.personal-categories__heading h2 { margin: 0; color: #171a1f; font: 700 1.75rem Georgia, "Times New Roman", serif; }
.personal-categories__heading p { margin: 0; color: #7a838f; font-size: .82rem; }
.personal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.personal-card { min-height: 185px; padding: 1.3rem; border: 1px solid #dde1e6; border-radius: .9rem; background: rgba(255,255,255,.62); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.personal-card:hover { border-color: #b8c3d4; box-shadow: 0 16px 34px rgba(30,40,55,.09); transform: translateY(-3px); }
.personal-card__number { color: #a83232; font-size: .7rem; font-weight: 700; letter-spacing: .1em; }
.personal-card h3 { margin: 2.1rem 0 .55rem; color: #20242a; font: 700 1.16rem/1.25 "Manrope", sans-serif; }
.personal-card p { margin: 0; color: #66707c; font-size: .92rem; line-height: 1.65; }
html[data-theme="dark"] .personal-hero h1,
html[data-theme="dark"] .personal-categories__heading h2,
html[data-theme="dark"] .personal-card h3 { color: #f1f3f5; }
html[data-theme="dark"] .personal-hero__intro,
html[data-theme="dark"] .personal-card p,
html[data-theme="dark"] .personal-categories__heading p { color: #aeb6c2; }
html[data-theme="dark"] .personal-categories { border-color: #303640; }
html[data-theme="dark"] .personal-card { border-color: #343b46; background: #1b1f24; }
html[data-theme="dark"] .personal-card:hover { border-color: #536176; box-shadow: 0 16px 34px rgba(0,0,0,.25); }
@media (max-width: 760px) { .personal-page { padding-top: 3.25rem; } .personal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .personal-grid { grid-template-columns: 1fr; } .personal-categories__heading { display: block; } .personal-categories__heading p { margin-top: .5rem; } }

/* Personal page sections use the same quiet, rule-led language as About. */
.personal-page { padding: 3.5rem 0 1rem; }
.personal-page .personal-hero { max-width: none; padding: 0 0 2.5rem; }
.personal-page .personal-hero__eyebrow { margin-bottom: .75rem; }
.personal-page .personal-hero h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); }
.personal-page .personal-intro-section,
.personal-page .personal-categories,
.personal-page .personal-blogs { padding: 3.5rem 0; border-top: 1px solid #dfe2e6; }
.personal-page .personal-intro-section { padding-top: 0; border-top: 0; }
.personal-page .personal-intro-section .about-copy { max-width: 820px; }
.personal-page .personal-hero__switch { margin: 0; font-size: 1rem; }
.personal-page .personal-categories__intro { margin: 0 0 1.35rem; color: #66707c; font-size: 1rem; line-height: 1.7; }
.personal-page .personal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.personal-page .personal-card { min-height: 150px; padding: 1.35rem; border-radius: .25rem; }
.personal-page .personal-card h3 { margin: 0 0 .65rem; font-size: 1.1rem; }
.personal-page .personal-card p { font-size: .94rem; }
.personal-page .personal-blogs { padding-bottom: 5rem; }
.personal-page .personal-blog-entry { max-width: 760px; padding: 1.45rem 1.55rem; border-left: 3px solid #a83232; background: rgba(168,50,50,.045); }
.personal-page .personal-blog-entry__meta { margin: 0 0 .4rem; color: #a83232; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.personal-page .personal-blog-entry h3 { margin: 0 0 .55rem; color: #20242a; font: 700 1.22rem/1.3 "Manrope", sans-serif; }
.personal-page .personal-blog-entry > p:last-child { margin: 0; color: #66707c; font-size: .98rem; line-height: 1.7; }
html[data-theme="dark"] .personal-page .personal-intro-section,
html[data-theme="dark"] .personal-page .personal-categories,
html[data-theme="dark"] .personal-page .personal-blogs { border-color: #303640; }
html[data-theme="dark"] .personal-page .personal-categories__intro,
html[data-theme="dark"] .personal-page .personal-blog-entry > p:last-child { color: #aeb6c2; }
html[data-theme="dark"] .personal-page .personal-blog-entry { background: rgba(168,50,50,.12); }
html[data-theme="dark"] .personal-page .personal-blog-entry h3 { color: #f1f3f5; }
@media (max-width: 760px) { .personal-page .personal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .personal-page { padding-top: 2.5rem; } .personal-page .personal-grid { grid-template-columns: 1fr; } }
