/* Shared navigation and page rhythm. */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; transition: opacity .15s ease; }
.brand:hover { opacity: .85; }
.monogram { color: var(--ink); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -.07em; }
.monogram span { color: var(--blue); margin-left: 3px; }
.brand-domain { font-size: 14px; color: var(--muted); font-weight: 400; }
.site-header nav { display: flex; align-items: center; gap: 20px; margin-left: auto; font-size: 15px; }
.site-header nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; position: relative; color: var(--muted); font-weight: 500; transition: color .15s ease; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a:is([aria-current='page'], [aria-current='true']) { color: var(--blue); }
.site-header nav a:is([aria-current='page'], [aria-current='true'])::after { content: ''; position: absolute; height: 2px; background: currentColor; inset: auto 8px 1px; border-radius: 2px; }
.language-switch { display: flex; align-items: center; gap: 2px; font-size: 12px; }
.language-switch > * { display: grid; place-items: center; min-height: 44px; min-width: 44px; padding: 8px 10px; border-radius: var(--radius-sm); font-weight: 500; transition: color .15s ease, background .15s ease; }
.language-switch a:hover { background: var(--soft); }
.language-switch [aria-current='page'] { color: var(--blue); background: var(--soft); font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 10px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.theme-toggle:hover { color: var(--blue); background: var(--soft); border-color: var(--blue); }
.theme-toggle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-sun, :root[data-theme='dark'] .theme-toggle .theme-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .theme-sun { display: block; }
.recovery-tools { display: flex; justify-content: flex-end; padding-top: 24px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; font-size: 14px; font-weight: 500; color: var(--blue); gap: 6px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 64px 72px; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(48px, 6.1vw, 84px); text-wrap: balance; }
.hero-role { color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.hero-subtitle { font-size: clamp(23px, 2.3vw, 30px); font-weight: 400; letter-spacing: -.035em; line-height: 1.55; margin-bottom: 30px; text-wrap: pretty; }
.hero-description { max-width: 52ch; font-size: 16px; line-height: 1.85; color: var(--muted); margin-bottom: 28px; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
/* Content-sized nodes keep both lower cards and their connectors aligned. */
.project-map { margin: 0; min-width: 0; width: 100%; }
.map-canvas { --branch-gap: clamp(40px, 6vw, 72px); position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; --col-gap: clamp(12px, 2vw, 24px); gap: 0 var(--col-gap); padding-top: 8px; }
.map-gateway::after { content: ''; position: absolute; width: 1px; height: calc(var(--branch-gap) / 2 + 1px); background: var(--diagram-line); left: 50%; top: 100%; }
.map-node { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 10px; align-content: start; padding: clamp(13px, 1.6vw, 20px); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.map-node:hover { border-color: var(--blue); color: var(--ink); }
.node-icon { width: 32px; height: 32px; display: grid; place-items: center; background: var(--soft); color: var(--blue); border-radius: 6px; }
.node-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.node-name { font-size: 15px; font-weight: 500; letter-spacing: -.025em; line-height: 1.5; overflow-wrap: anywhere; }
.node-description { font-size: 13px; color: var(--muted); line-height: 1.6; }
.map-chat, .map-tools { grid-row: 2 / span 3; grid-template-rows: subgrid; margin-top: var(--branch-gap); }
.map-gateway { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(100%, 420px); grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 4px; background: var(--gateway); color: #fff; border-color: var(--diagram-line); padding: 22px; }
.map-gateway .node-icon { grid-row: 1 / 3; align-self: center; background: #2d4a62; color: #d5e8ff; }
.map-gateway .node-name { font-size: 23px; }
.map-gateway .node-description { color: #d4dfeb; }
.map-gateway:hover { color: #fff; background: var(--gateway-hover); border-color: var(--blue); }
.map-chat::before, .map-tools::before { content: ''; position: absolute; z-index: -1; top: calc(-1 * var(--branch-gap) / 2 - 1px); height: calc(var(--branch-gap) / 2); border-top: 1px solid var(--diagram-line); width: calc(50% + var(--col-gap) / 2 + 1px); }
.map-chat::before { left: 50%; border-left: 1px solid var(--diagram-line); }
.map-tools::before { right: 50%; border-right: 1px solid var(--diagram-line); }
.project-map figcaption { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; margin: 24px auto 0; max-width: 48ch; text-wrap: balance; }
.page-directory { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-block: 0 56px; }
.page-directory a { position: relative; display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 12px; padding: 24px 16px; background: transparent; border: 0; border-top: 2px solid var(--line); border-radius: 0; transition: background .15s ease, border-color .15s ease; }
.page-directory a::after { content: ''; position: absolute; top: 31px; right: 18px; width: 6px; height: 6px; border-top: 1.5px solid var(--blue); border-right: 1.5px solid var(--blue); transform: rotate(45deg); }
.page-directory a:is(:hover, :focus-visible) { border-color: var(--blue); background: var(--soft); color: var(--ink); }
.page-directory h2 { font-size: 18px; font-weight: 500; letter-spacing: -.025em; line-height: 1.45; margin: 0 16px 0 0; color: var(--ink); }
.page-directory p { color: var(--muted); font-size: 15px; line-height: 1.75; margin: 0; text-wrap: pretty; }
/* Give the professional positioning more room than the supporting projects. */
.home-page .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 56px; padding-block: 64px 40px; row-gap: 40px; }
.home-page .hero h1 { font-size: clamp(32px, 2.8vw, 40px); line-height: 1.3; letter-spacing: -.035em; margin-bottom: 24px; }
.home-page:lang(zh-CN) .hero h1 { letter-spacing: 0; font-size: clamp(30px, 2.8vw, 40px); }
.home-page .hero-role { color: var(--muted); font-size: 15px; font-weight: 500; margin-bottom: 24px; padding-left: 14px; border-left: 2px solid var(--blue); }
.home-page .hero-subtitle { max-width: 58ch; margin-bottom: 16px; font-size: 20px; line-height: 1.65; letter-spacing: 0; }
.home-page .hero-description { max-width: 60ch; font-size: 17px; line-height: 1.75; margin-bottom: 28px; }
.home-page .hero-actions .button { font-size: 15px; padding-inline: 22px; }
.home-page .project-map { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.map-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 30px; font-size: 12px; line-height: 1.6; }
.map-heading > :first-child { font-weight: 500; }
.map-heading > :last-child { color: var(--muted); }
.home-page .map-canvas { --branch-gap: clamp(40px, 5vw, 56px); padding-top: 0; }
.home-page .map-node { box-shadow: none; }

.home-page .map-chat, .home-page .map-tools { background: var(--canvas); border-color: var(--line); }
.home-page .map-node:hover { border-color: var(--blue); }
.home-page .map-node:focus-visible { z-index: 2; }
.home-page .project-map figcaption { margin-top: 24px; }
.home-page .proof-bar { grid-column: 1 / -1; margin: 0; padding-block: 28px; border-bottom: 0; }
.home-page .proof-bar > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.home-page .proof-bar dd { font-size: 14px; }
/* Interior pages share the same title size and starting line. */
.about-hero, .projects-hero, .certificates-hero, .governance-hero { padding-block: 36px 48px; }
.about-hero h1, .projects-hero h1, .certificates-hero h1, .governance-hero h1 { font-size: clamp(42px, 5.3vw, 68px); margin-bottom: 24px; letter-spacing: -.045em; }
.governance-hero .hero-description { max-width: 68ch; margin-bottom: 0; font-size: 19px; line-height: 1.75; }
.ai-business-highlight { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius-md); }
.ai-business-highlight > div { min-width: 0; max-width: 70ch; }
.ai-business-highlight h2 { font-size: 22px; line-height: 1.5; letter-spacing: -.025em; }
.ai-business-highlight p { margin: 12px 0 0; font-size: 15px; line-height: 1.85; color: var(--muted); }
.ai-business-highlight .button { flex-shrink: 0; text-align: center; }
.terms-note { max-width: 72ch; margin-top: 20px; font-size: 15px; line-height: 1.85; }
.terms-note summary { display: list-item; min-height: 44px; padding: 10px 0; color: var(--blue); cursor: pointer; }
.terms-note dl { margin: 12px 0 0; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.terms-note dl > div + div { margin-top: 16px; }
.terms-note dt { font-weight: 500; color: var(--ink); }
.terms-note dd { margin: 4px 0 0; color: var(--muted); }
.projects-hero { align-items: start; }
.projects-hero .project-map { margin-top: 20px; }
.projects-hero .hero-description { margin-bottom: 0; }
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.profile-label { color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.about-hero h1 { margin-bottom: 22px; }
.about-hero h1 span { display: block; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); font-weight: 400; letter-spacing: 0; line-height: 1.6; margin-top: 8px; }
.about-intro .hero-description { color: var(--ink); font-size: 18px; line-height: 1.8; }
.proof-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 28px; padding: 24px 0; border-block: 1px solid var(--line); }
.about-intro .proof-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proof-bar div { min-width: 0; }
.proof-bar dt { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.04em; line-height: 1.3; color: var(--ink); }
.proof-bar dd { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.profile-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-links a { padding-inline: 16px; text-align: center; }
.profile-context { border-top: 2px solid var(--blue); padding: 28px; margin-top: 68px; align-self: start; background: var(--surface); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.profile-role { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.035em; font-weight: 500; line-height: 1.45; margin-bottom: 12px; }
.profile-role span { display: block; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.profile-context > p:not(.profile-role):not(.profile-label):not(.profile-tagline) { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.profile-background { margin-top: 24px; max-width: 52ch; color: var(--muted); font-size: 16px; line-height: 1.8; text-wrap: pretty; }
.profile-tagline { color: var(--ink); font-size: 16px; font-weight: 500; margin: 20px 0 0; }
.profile-background p:last-child { margin-bottom: 0; }
.profile-background p + p { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.profile-strengths { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.profile-strengths > div { padding-top: 20px; border-top: 1px solid var(--line); }
.profile-strengths dt { font-size: 17px; font-weight: 600; }
.profile-strengths dd { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.focus-section, .interests-section, .governance-section, .experience-section, .education-section { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.8fr); gap: 56px; padding-block: 48px; align-items: start; }
.governance-page .governance-section:last-of-type { padding-bottom: 88px; }
.focus-section::before, .interests-section::before, .governance-section::before, .experience-section::before, .education-section::before { content: ''; grid-column: 1 / -1; height: 1px; background: var(--line); margin-bottom: -8px; }
.focus-intro h2, .interests-copy h2, .governance-intro h2, .about-page .section-heading h2, .projects-section .section-heading h2 { font-size: 27px; line-height: 1.35; letter-spacing: -.04em; }
.focus-intro p, .interests-copy p, .governance-intro p { font-size: 15px; line-height: 1.85; margin: 16px 0 0; color: var(--muted); max-width: 30ch; }
.governance-content { min-width: 0; font-size: 17px; line-height: 1.8; }
.governance-intro .text-link { font-size: inherit; }
.cloud-page .governance-framework { border: 0; border-top: 2px solid var(--blue); border-radius: 0; padding: 20px 0; background: transparent; }
.cloud-page .caf-diagram { padding: 20px; border-radius: var(--radius-md); }
.cloud-page .caf-image-link { cursor: zoom-in; }
.cloud-page .waf-diagram figcaption { margin: 0; font-size: 16px; }
.ai-page .ai-business-highlight { border: 0; border-left: 3px solid var(--blue); border-radius: 0; }
.ai-page .ai-pillar[open] summary { background: var(--soft); }
.ai-page .ai-pillar summary h3 { font-size: 19px; }
.ai-page .ai-pillar summary span { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 6px; font-variant-numeric: tabular-nums; }
.governance-content > p:first-child { max-width: 72ch; margin: 0 0 28px; }
.governance-frameworks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.governance-framework { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--blue); border-radius: var(--radius-md); padding: 20px; }
.governance-framework h3 { font-size: 17px; font-weight: 500; line-height: 1.5; margin-bottom: 12px; }
.governance-framework h3 a { display: inline-block; min-height: 44px; padding-block: 8px; overflow-wrap: anywhere; }
.governance-framework h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.governance-framework p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--muted); }
.adoption-phases { list-style: none; counter-reset: phase; margin: 0 0 4px; padding: 0; display: grid; }
.adoption-phases li { counter-increment: phase; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.adoption-phases li::before { content: counter(phase, decimal-leading-zero); grid-row: 1 / 3; color: var(--blue); font-weight: 600; font-variant-numeric: tabular-nums; }
.adoption-phases .adoption-operations { border-top: 2px solid var(--blue); }
.adoption-phases h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.adoption-phases p, .pillar p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.phase-content { min-width: 0; }
.framework-detail { display: grid; gap: 16px; margin: 20px 0 12px; font-size: 16px; line-height: 1.8; }
.framework-detail > div { padding-left: 14px; border-left: 2px solid var(--line); }
.framework-detail dt { color: var(--ink); font-weight: 500; }
.framework-detail dd { margin: 4px 0 0; color: var(--muted); }
.framework-link a { display: inline-block; min-height: 44px; padding-block: 9px; }
#well-architected .pillar-grid { grid-template-columns: 1fr; gap: 0; }
#well-architected .pillar { padding: 28px 0; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
#well-architected .pillar > p { max-width: 72ch; }
#well-architected .framework-detail { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.pillar { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.pillar h3 { font-size: 19px; font-weight: 500; margin-bottom: 12px; }
.pillar h3 span { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--muted); }
.governance-note { color: var(--muted); margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); font-size: 15px; max-width: 72ch; }
.section-tabs { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin-top: 28px; }
.section-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 0; border-bottom: 2px solid var(--line); background: transparent; font-size: 15px; font-weight: 500; color: var(--ink); transition: color .15s ease, background .15s ease, border-color .15s ease; }
.section-tabs a:hover { border-color: var(--blue); color: var(--blue); background: var(--soft); }
.governance-section { scroll-margin-top: 24px; }
.caf-diagram, .waf-diagram { margin: 0 0 28px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.caf-diagram { container-type: inline-size; }
.caf-image-link { display: block; background: var(--image-surface); }
.caf-image-link img { display: block; width: 100%; height: auto; }
.caf-text { margin-top: 16px; border-top: 1px solid var(--line); }
.caf-text summary { cursor: pointer; min-height: 44px; padding-block: 12px; color: var(--blue); font-size: 15px; }
.caf-text > .caf-track { margin-top: 12px; }
.caf-support-note { margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.caf-track-label { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.caf-flow, .caf-parallel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.caf-flow { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.caf-flow li { position: relative; padding: 14px 16px 14px 14px; background: var(--action); color: var(--on-action); font-weight: 500; font-size: 15px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); padding-left: 26px; }
.caf-flow li:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-left: 16px; }
.caf-flow span, .caf-parallel span { display: block; font-size: 11px; font-variant-numeric: tabular-nums; }
.caf-ops { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.caf-parallel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.caf-parallel li { padding: 12px 16px; border: 1px solid var(--blue); border-left-width: 4px; border-radius: 6px; color: var(--ink); font-weight: 500; font-size: 15px; background: var(--soft); }
.caf-parallel span { color: var(--blue); opacity: 1; }
@container (max-width: 540px) {
  .caf-flow { grid-auto-flow: row; grid-template-columns: 1fr; gap: 6px; }
  .caf-flow li, .caf-flow li:first-child { padding: 14px 18px 24px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 50% 100%, 0 calc(100% - 10px)); }
  .caf-parallel { grid-template-columns: 1fr; }
}
.caf-diagram figcaption, .waf-diagram figcaption { margin-top: 16px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.waf-diagram { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .6fr); align-items: center; gap: 24px; }
.waf-wheel { width: 100%; max-width: 420px; height: auto; font-family: var(--sans); }
.waf-ring { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 6 6; }
.waf-core circle { fill: var(--action); }
.waf-core text { fill: #fff; font-size: 17px; font-weight: 600; text-anchor: middle; }
.waf-core .waf-sub { font-size: 11px; font-weight: 400; }
.waf-node circle { fill: var(--surface); stroke: var(--blue); stroke-width: 2; }
.waf-node text { fill: var(--ink); font-size: 13px; font-weight: 500; text-anchor: middle; }
.ai-pillars { display: grid; gap: 14px; }
.ai-pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.ai-pillar[open] { border-color: var(--blue); }
.ai-pillar summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; min-height: 68px; padding: 18px 24px; border-radius: var(--radius-md); cursor: pointer; list-style: none; }
.ai-pillar summary:is(:hover, :focus-visible) { background: var(--soft); }
.ai-pillar summary::after { content: ''; width: 8px; height: 8px; border-right: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(45deg); justify-self: center; }
.ai-pillar[open] summary::after { transform: rotate(225deg); }
.ai-pillar summary::-webkit-details-marker { display: none; }
.ai-pillar summary h3 { margin: 0; font-size: 17px; font-weight: 500; }
.ai-pillar summary span { min-width: 28px; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ai-pillar ul { list-style: none; margin: 0; padding: 0 24px 16px; display: grid; }
.ai-pillar li { padding: 18px 0; border-top: 1px solid var(--line); }
.ai-pillar h4 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.ai-pillar li p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--muted); }
.ai-areas { margin-top: 24px; }
.ai-areas h3 { font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.ai-areas dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.ai-areas dt { color: var(--blue); font-weight: 500; }
.ai-areas dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) {
  #well-architected .framework-detail { grid-template-columns: 1fr; gap: 16px; }
  .caf-diagram, .waf-diagram { padding: 16px; }
  .waf-diagram { grid-template-columns: 1fr; gap: 0; }
  .governance-hero .hero-description { font-size: 17px; }
  .adoption-phases li { grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; }
  .ai-pillar summary { padding-inline: 20px; }
  .ai-pillar ul { padding-inline: 20px; }
  .ai-areas dl { grid-template-columns: 1fr; }
}
@media print {
  .theme-toggle, .recovery-tools { display: none; }
  .section-tabs { display: none; }
  .ai-pillar ul { display: block; }
  .caf-diagram, .waf-diagram, .ai-pillar { break-inside: avoid; }
}
.focus-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.focus-link { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); transition: background .15s ease, border-color .15s ease; }
.focus-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 17px; font-weight: 500; letter-spacing: -.025em; color: var(--ink); }
.focus-name > span { color: var(--blue); }
.focus-description { color: var(--muted); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.focus-link:is(:hover, :focus-visible) { border-color: var(--blue); background: var(--soft); }
.skill-groups { display: grid; gap: 20px; }
.skill-group { padding: 24px 0; border-top: 1px solid var(--line); }
.skill-group h3 { font-size: 17px; font-weight: 500; margin-bottom: 16px; color: var(--ink); }
.about-page .section-heading { display: block; margin: 0; }
.about-page .section-note { margin-top: 16px; font-size: 15px; }
.education-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.education-item { padding: 24px 0; border-top: 2px solid var(--line); }
.education-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.education-item p { font-size: 16px; color: var(--muted); margin-bottom: 8px; }
.education-item .education-period { font-size: 14px; font-variant-numeric: tabular-nums; margin-bottom: 0; }
.education-section { padding-bottom: 72px; }
@media (max-width: 1100px) {
  .hero, .about-hero { gap: 40px; }
  .home-page .project-map { padding: 20px; }
  .map-gateway .node-name { font-size: 21px; }
  .page-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-strengths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-section, .interests-section, .governance-section, .experience-section, .education-section { grid-template-columns: minmax(0, .7fr) minmax(0, 1.8fr); gap: 36px; }
}
@media (max-width: 800px) {
  .home-page .proof-bar > div + div { padding-left: 0; border-left: 0; }
  .ai-business-highlight { flex-direction: column; align-items: flex-start; }
  .header-inner { gap: 20px; }
  .site-header nav { gap: 10px; font-size: 13px; }
  .brand-domain { display: none; }
  .hero, .about-hero { grid-template-columns: 1fr; gap: 36px; }
  .home-page .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 620px; }
  .home-page .hero h1 { max-width: none; }
  .home-page .hero { padding-block: 48px 56px; gap: 44px; }
  .home-page .hero-copy { max-width: 640px; }
  .home-page .hero-description { max-width: 48ch; }
  .home-page .project-map { justify-self: start; max-width: 560px; padding: 26px; }
  .project-map { max-width: 520px; justify-self: center; }
  .projects-hero .project-map { margin-top: 0; }
  .profile-context { margin-top: 0; max-width: 620px; }
  .focus-section, .interests-section, .governance-section, .experience-section, .education-section { grid-template-columns: 1fr; gap: 28px; padding-block: 32px; }
  .focus-section::before, .interests-section::before, .governance-section::before, .experience-section::before, .education-section::before { margin-bottom: 4px; }
  .focus-intro p, .interests-copy p, .governance-intro p, .about-page .section-note { max-width: 60ch; margin-top: 12px; }
  .page-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .education-section { padding-bottom: 56px; }
}
@media (min-width: 601px) and (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: 4px 20px; padding-top: 12px; padding-bottom: 4px; }
  .brand { margin-right: auto; }
  .site-header nav { order: 3; width: 100%; margin: 0; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; }
}
@media (max-width: 600px) {
  .proof-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .header-inner { flex-wrap: wrap; min-height: 112px; gap: 4px 20px; padding-top: 12px; padding-bottom: 4px; }
  .brand { margin-right: auto; }
  .monogram { font-size: 30px; }
  .site-header nav { order: 3; width: 100%; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 2px; font-size: clamp(11.5px, 3.1vw, 13px); }
  .site-header nav a { text-align: center; padding-block: 6px; white-space: nowrap; }
  .hero { padding-block: 40px 48px; gap: 40px; }
  .home-page .hero { padding-block: 36px 44px; gap: 36px; }
  .home-page .hero h1 { font-size: clamp(30px, 7.6vw, 40px); }
  .home-page:lang(zh-CN) .hero h1 { font-size: clamp(25px, 6.3vw, 36px); line-height: 1.45; }
  .home-page .hero-subtitle { font-size: 18px; }
  .home-page .hero-actions { align-items: stretch; }
  .home-page .hero-actions .button { flex: 1 1 150px; }
  .home-page .hero-description { font-size: 16px; }
  .home-page .project-map { padding: 20px 16px; border-radius: 12px; }
  .map-heading { margin-bottom: 24px; font-size: 11px; }
  .page-directory { grid-template-columns: 1fr; gap: 12px; padding-block: 0 36px; }
  .page-directory a { padding: 20px; }
  .page-directory a::after { top: 29px; right: 20px; }
  .page-directory a { row-gap: 8px; }
  .hero-subtitle { font-size: 24px; line-height: 1.5; margin-bottom: 26px; }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { flex: 1 1 150px; text-align: center; }
  .node-icon { width: 28px; height: 28px; }
  .node-name { font-size: 13px; }
  .node-description { font-size: 12px; }
  .map-gateway .node-name { font-size: 20px; }
  .project-map figcaption { margin-top: 22px; }
  .about-hero, .projects-hero, .certificates-hero, .governance-hero { padding-block: 24px 44px; }
  .about-hero h1, .projects-hero h1, .certificates-hero h1, .governance-hero h1 { font-size: clamp(40px, 10.8vw, 52px); }
  .back-link { margin-bottom: 16px; }
  .profile-context { padding: 24px 20px; }
  .profile-strengths { grid-template-columns: 1fr; }
  .focus-projects, .education-list { grid-template-columns: 1fr; gap: 28px; }
  .focus-projects { gap: 24px; }
  .focus-name { font-size: 17px; }
  .focus-intro h2, .interests-copy h2, .governance-intro h2, .about-page .section-heading h2, .projects-section .section-heading h2 { font-size: 25px; }
  .governance-frameworks { grid-template-columns: 1fr; gap: 24px; }
  .governance-page .governance-section:last-of-type { padding-bottom: 56px; }
  .focus-section, .interests-section, .governance-section, .experience-section, .education-section { padding-block: 28px; }
  .education-section { padding-bottom: 48px; }
}
@media print {
  .home-page .hero { padding-block: 0 15px; }
  .home-page .hero h1 { font-size: 26pt; }
  .home-page .hero-subtitle { font-size: 15pt; }
  .hero, .about-hero { display: block; padding-block: 0 15px; }
  .hero h1, .about-hero h1 { font-size: 26pt; }
  .hero-subtitle { font-size: 15pt; }
  .hero-description, .profile-background { font-size: 10pt; max-width: none; }
  .profile-links, .page-directory, .back-link, .focus-section { display: none; }
  .profile-context { border: 0; padding: 0; margin-top: 16px; }
  .profile-strengths { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
  .about-hero h1 span { color: #333; font-size: 12pt; }
  .profile-label { color: #333; }
  .profile-role { font-size: 15pt; }
  .interests-section, .governance-section, .experience-section, .education-section { display: block; padding-block: 12px; }
  .governance-frameworks { display: block; }
  .governance-framework, .pillar, .adoption-phases li { break-inside: avoid; margin-bottom: 12px; }
  .pillar-grid { display: block; }
  .governance-content { font-size: 9pt; }
  .about-page .section-heading { margin-bottom: 16px; }
  .interests-copy { display: none; }
  .skill-groups { gap: 10px; }
  .skill-group { break-inside: avoid; }
  .skill-group h3 { font-size: 10pt; margin-bottom: 5px; }
  .skills { gap: 5px; }
  .skills li { font-size: 8pt; padding: 3px 7px; }
}
