/* A quieter hierarchy: profile and IELTS first, details in the framed sections. */
.hero-role-block { grid-column: 1; }
.hero-experience { margin: 7px 0 0; color: var(--body); font-size: .9375rem; line-height: 1.6; }
.focus-tags span { cursor: default; }
.hero-ielts-caption { font-size: .875rem; }
.credential-total { margin: -12px 0 18px; font-size: .9375rem; color: var(--muted); }
.credential-total strong { color: var(--ink); font-weight: 600; }
.cert-group-description { text-wrap: balance; }
.cert-list a { text-decoration-skip-ink: none; }
.cert-link > span[aria-hidden] { margin-left: 0; }
.cert-link:focus-visible { color: var(--blue); text-decoration: underline; }
.cert-list .cert-secondary-link { display: block; width: fit-content; margin-top: 4px; color: var(--muted); font-size: .875rem; font-weight: 400; text-decoration: none; }
.cert-list .cert-secondary-link:hover, .cert-list .cert-secondary-link:focus-visible { color: var(--blue); text-decoration: underline; }
.highlights > .highlight-card { background: transparent; box-shadow: none; border-color: var(--subtle-line); }
.highlights .highlight-value { min-height: 0; text-decoration-skip-ink: none; }
.highlights .highlight-arrow { margin-left: 0; }
.company-stack { gap: 0; }
.company-stack > .company-card { border: 0; border-radius: 0; border-top: 1px solid var(--line); background: transparent; }
.company-stack > .company-card > summary { padding: 21px 8px; }
.company-stack > .company-card > summary:hover { color: var(--blue); }
.company-stack > .company-card > summary:hover .company-name { color: var(--blue); }
.company-stack > .company-card > .company-body { padding: 2px 8px 24px; border: 0; }
.work-details, .project-details { display: grid; gap: 18px; margin: 0; }
.work-details > div, .project-details > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; }
.work-details dt, .project-details dt { font-size: .875rem; font-weight: 600; color: var(--muted); line-height: 1.9; }
.work-details dd, .project-details dd { margin: 0; font-size: 1rem; line-height: 1.85; color: var(--body); }
.work-details dd p { font-size: 1rem; line-height: 1.85; }
.work-details ul { margin: 0; padding-left: 1.15em; }
.work-details li { text-wrap: pretty; }
.work-details li + li { margin-top: 8px; }
.work-details li::marker { color: var(--muted); }
.project-card { margin: 0 0 28px; }
.project-card-link { display: block; padding: 24px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--body); text-decoration: none; transition: border-color .15s; }
.project-card-link .small-label { margin-bottom: 10px; }
.project-card-link h3 { font-size: 1.25rem; line-height: 1.65; }
.project-card-arrow { color: var(--blue); font-size: .9375rem; }
.project-card-link p { margin: 10px 0 0; font-size: 1rem; line-height: 1.85; }
.project-card-link:hover, .project-card-link:focus-visible { border-color: var(--blue); text-decoration: none; }
.project-card-link:hover h3, .project-card-link:focus-visible h3 { text-decoration: underline; text-underline-offset: 4px; }
.project-card-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 14px; }
.intro .about-link { margin: 18px 0 0; font-size: 1rem; line-height: 1.8; }
.intro .about-link + .about-link { margin-top: 6px; }
.about-text-link { color: var(--blue); font-weight: 400; text-decoration: none; text-decoration-skip-ink: none; }
.about-text-link:hover, .about-text-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.project-card-link .project-intro { margin: 10px 0 20px; }
.project-episode { display: inline-block; margin-top: 22px; color: var(--blue); font-size: .875rem; line-height: 1.8; }
.activity-links { margin-top: 26px; }
.activity-links > a { padding: 13px 0; }
.strengths-overview { padding: 0 0 22px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.strengths-overview h3 { margin: 12px 0 10px; }
.menu-toggle { display: none; }
.menu-toggle[hidden] { display: none !important; }
html { scroll-padding-top: var(--header-offset, 100px); }
@media (max-width: 760px) {
  .site-header { gap: 4px 8px; padding-top: 10px; padding-bottom: 7px; }
  html[data-nav-ready] .menu-toggle { order: 2; display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 40px; padding: 4px 0; border: 0; background: none; color: var(--body); font: inherit; font-size: .875rem; cursor: pointer; }
  .menu-symbol { width: 8px; height: 8px; margin-right: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
  .menu-toggle[aria-expanded=true] .menu-symbol { transform: rotate(225deg); }
  .menu-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
  html[data-nav-ready] .site-header:not(.menu-open) nav { display: none; }
  html[data-nav-ready] .site-header nav { order: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; width: 100%; margin: 0; padding: 5px 0 10px; max-height: 55vh; overflow-y: auto; border-top: 1px solid var(--line); }
  .site-header nav a { min-height: 44px; padding: 8px 0; font-size: .875rem; white-space: normal; }
  .work-details > div { grid-template-columns: 1fr; gap: 5px; }
  .work-details { gap: 18px; }
}
@media (max-width: 600px) {
  .hero-role-block { grid-column: 1 / -1; grid-row: 2; }
  .hero-experience { font-size: .875rem; margin-top: 6px; }
  .focus-tags span { font-size: .875rem; padding: 5px 10px; }
  .intro.section-card { padding: 25px 20px; }
  .highlights { gap: 12px; }
  .highlights > .highlight-card { padding: 14px 16px; }
  .company-card > summary { padding: 18px 14px; }
  .company-body { padding: 18px 14px; }
  .group-body { padding: 16px 8px 4px; }
  .group-body > .group-description { margin: 0 6px 20px; }
  .company-stack > .company-card > summary { padding: 18px 6px; }
  .company-stack > .company-card > .company-body { padding: 0 6px 22px; }
  .company-card > summary { column-gap: 10px; }
  .credential-total { margin: -10px 0 14px; font-size: .875rem; }
  .cert-group-description { font-size: .875rem; line-height: 1.8; }
  .cert-group:not(.language-block) > summary { gap: 8px 10px; }
  .cert-group-title { font-size: 1rem; }
  .language-block > summary { font-size: 1rem; }
  .project-card { margin-bottom: 24px; }
  .project-card-link { padding: 18px; }
  .project-card-link h3 { font-size: 1.125rem; }
  .project-details > div { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; }
  .strengths-overview { padding: 0 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-symbol { transition: none; }
  .project-card-link { transition: none; }
}
@media print {
  .work-details > div { break-inside: avoid; }
  .menu-toggle { display: none !important; }
  .hero-experience { margin-bottom: 12px; }
}


.language-block > .skill-note { margin: 22px 0 24px; }

/* Align the header with the hero text, including its responsive inner padding. */
:root {
  --page-max-width: 1060px;
  --page-gutter: 30px;
  --hero-max-width: 1060px;
  --hero-gutter: 42px;
}
@media screen {
  .page { max-width: var(--page-max-width); padding-inline: var(--page-gutter); }
  .hero-inner { max-width: var(--hero-max-width); padding-inline: var(--hero-gutter); }
  .site-header { padding-inline: max(var(--hero-gutter), calc((100% - var(--hero-max-width)) / 2 + var(--hero-gutter))); }
}
@media (max-width: 1100px) { :root { --hero-max-width: 940px; } }
@media (max-width: 900px) { :root { --page-gutter: 24px; --hero-gutter: 30px; } }
@media (max-width: 600px) { :root { --page-gutter: 16px; --hero-gutter: 24px; } }

.site-header nav a > [data-locale] { font: inherit; color: inherit; }
.site-header nav a > [data-locale]:not([hidden]) { display: inline; }
