/* Website v4 — supplementary improvements. Load AFTER /style.css and /v3-updates.css. */
/* Homepage: move hero group slightly down, borrowing space below it. */
.hero-v4 { min-height: 0; padding-top: 80px; padding-bottom: 25px; align-items: center; }
.hero-v4 h1 { font-size: clamp(30px, 3.5vw, 49px); margin-bottom: 22px; }
.hero-v4 .hero-intro { border-left: 0; padding-left: 0; }
.hero-v4 .signature.credentials { border-left: 4px solid #d78dab; padding: 6px 0 6px 18px; margin-top: 18px; margin-bottom: 17px; }
/* Brand icons: user-supplied graphics; align row below credentials block. */
.branded-profiles { width: 100%; max-width: 590px; justify-content: center; flex-wrap: wrap; gap: 14px 20px; margin: 19px auto 0; }
.branded-profiles a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border: 0; padding: 5px 2px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.branded-profiles a:hover { color: #aa5277; }
.branded-profiles img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.branded-profiles a:focus-visible { outline: 2px solid #ab5d83; outline-offset: 3px; border-radius: 4px; }
/* Stats: keep each card centered, halve the visible gaps. */
.metrics { gap: 6px; }
.metrics > div { width: 90%; }
/* Home-section vertical spacing: ~20% less between blocks. */
.metrics-section { padding-bottom: 44px; }
.questions-section { padding-top: 44px; padding-bottom: 44px; }
.questions-section .section-head h2 .highlight-pink { color: #c07893; }
.updates { padding-top: 44px; }
/* Recent updates: equal physical gap between date/body/link columns. */
.updates .update { display: grid; grid-template-columns: 112px minmax(0,1fr) 170px; column-gap: 24px; align-items: start; }
.updates .update > * { min-width: 0; }
.updates .update .update-date, .updates .update a { font-size: 14px; line-height: 1.5; font-weight: 400; }
.updates .update strong { font-size: 14px; line-height: 1.5; font-weight: 600; }
.updates .update a { text-decoration: none; }
.updates .update a:hover { text-decoration: underline; }
/* Service and CV: restrained, readable grouping. */
.service-content, .cv-content { max-width: 940px; }
.service-content section, .cv-content section { scroll-margin-top: 95px; }
.service-content h2, .cv-content h2 { margin: 32px 0 6px; }
.section-period { margin: 0 0 21px; color: #667c6e; font-size: 14px; letter-spacing: .015em; }
.experience-list { margin: 12px 0 18px; padding-left: 25px; }
.experience-list li { padding: 3px 0; line-height: 1.65; }
.experience-entry { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 20px; border-top: 1px solid #d0dccc; padding: 23px 0; }
.experience-period { font-size: 14px; color: #668073; line-height: 1.5; padding-top: 3px; }
.experience-entry h3, .cv-role h3 { font-size: 19px; line-height: 1.35; margin: 0 0 7px; letter-spacing: -.02em; }
.experience-entry p, .cv-role p { font-size: 16px; line-height: 1.55; margin: 0; }
.experience-entry ul { font-size: 15px; line-height: 1.6; margin: 9px 0 0; padding-left: 20px; }
.cv-group { margin-bottom: 24px; }
.cv-role { border-top: 1px solid #d0dccc; padding: 19px 0 21px; }
.cv-role-heading { display: flex; justify-content: space-between; gap: 15px; align-items: baseline; margin-bottom: 7px; }
.cv-role-heading h3 { max-width: 70%; }
.cv-role-heading span { font-size: 13px; line-height: 1.5; color: #668073; text-align: right; }
.contact-content .branded-profiles { justify-content: flex-start; max-width: none; margin-left: 0; }
.contact-email { margin-top: 10px; }
.contact-email a { overflow-wrap: anywhere; }
.pub[id] { scroll-margin-top: 85px; }
@media(max-width:900px) {
 .hero-v4 { padding-top: 55px; padding-bottom: 23px; }
 .metrics > div { width: 92%; }
 .updates .update { grid-template-columns: 100px minmax(0,1fr) 135px; gap: 15px; }
}
@media(max-width:620px) {
 .hero-v4 { padding-top: 38px; padding-bottom: 18px; }
 .hero-v4 h1 { font-size: clamp(28px,8vw,40px); }
 .metrics > div { width: 100%; }
 .branded-profiles { justify-content: center; gap: 9px 12px; }
 .branded-profiles a { font-size: 12px; }
 .branded-profiles img { width: 24px; height: 24px; }
 .updates .update { grid-template-columns: 1fr; row-gap: 7px; }
 .updates .update > * { display: block; margin: 0; }
 .experience-entry { grid-template-columns: 1fr; gap: 5px; }
 .cv-role-heading { display: block; }
 .cv-role-heading h3 { max-width: none; }
 .cv-role-heading span { display: block; text-align: left; margin-bottom: 8px; }
 .contact-content .branded-profiles { justify-content: flex-start; }
}

/* Width-only refinement: statistics cards 20% narrower on four-column desktop layouts.
   Original desktop card width: 90% of each 1/4-width grid column (6px grid gap).
   New width: 80% of that original card width. Visible inter-card gaps remain
   identical, and the four cards are centered together. Height, fonts, content,
   colors, padding and radius are unchanged. */
@media (min-width: 901px) {
  .metrics {
    display: flex;
    justify-content: center;
    gap: calc(5.55px + 2.5%);
  }
  .metrics > div {
    flex: 0 0 calc(18% - 3.24px);
    width: auto;
    box-sizing: border-box;
  }
}
