:root {
  --ink: #192a32;
  --muted: #50646c;
  --soft: #6a7c84;
  --accent: #176b64;
  --accent-dark: #12544f;
  --accent-light: #e9f3f1;
  --line: #dbe3e5;
  --line-strong: #bfcfd1;
  --paper: #ffffff;
  --canvas: #f6f8f8;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 12px;
  --max-width: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #78a8c8; outline-offset: 4px; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.container { width: min(var(--max-width), calc(100% - 64px)); margin-inline: auto; }
.narrow { max-width: 850px; }
.skip-link { position: fixed; left: 16px; top: 12px; transform: translateY(-180%); z-index: 50; background: var(--ink); color: white; padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { transform: translateY(0); color: white; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header { background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 43px; height: 43px; border-radius: 9px; background: var(--accent-dark); color: white; display: grid; place-items: center; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.08em; padding-right: 2px; }
.brand-name { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; }
.brand-caption { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 2px; letter-spacing: .025em; }
.site-nav { display: flex; align-items: stretch; gap: 24px; }
.site-nav a { display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 550; text-decoration: none; padding: 26px 0 24px; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent-dark); }
.site-nav a[aria-current] { font-weight: 700; border-bottom-color: var(--accent); }
.mobile-toggle { display: none; border: 1px solid var(--line); background: white; color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 600; align-items: center; gap: 8px; }
.mobile-toggle svg { width: 20px; height: 20px; }

main { min-height: calc(100vh - 190px); }
.eyebrow { color: var(--accent-dark); font-size: 13px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 13px; }
h1, h2, h3, p { margin-top: 0; }
h1,h2,h3 { line-height: 1.23; }
.hero { padding: 42px 0 22px; background: linear-gradient(180deg, #f7faf9 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.9fr); gap: 62px; align-items: center; }
.hero h1 { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.35rem); letter-spacing: -.045em; font-weight: 400; line-height: 1.02; }
.alias { font-family: var(--sans); color: var(--soft); font-size: 20px; letter-spacing: -.015em; font-weight: 500; margin-left: 8px; white-space: nowrap; }
.hero-headline { margin: 0 0 17px; color: var(--accent-dark); font-size: clamp(1.15rem,2.2vw,1.52rem); font-weight: 650; letter-spacing: -.02em; }
.hero-copy { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 700px; margin: 0 0 12px; }
.hero-copy + .hero-copy { margin-bottom: 19px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.button { min-height: 45px; display: inline-flex; justify-content: center; align-items: center; padding: 9px 17px; border-radius: 7px; border: 1px solid var(--accent-dark); font-size: 14px; font-weight: 650; text-decoration: none; transition: background .15s, color .15s, border-color .15s; line-height: 1.35; }
.button-primary { background: var(--accent-dark); color: white; }
.button-primary:hover { color: white; background: #0b4441; }
.button-secondary { color: var(--accent-dark); background: white; border-color: var(--line-strong); }
.button-secondary:hover { background: var(--accent-light); border-color: var(--accent); }
.education-panel { border: 1px solid var(--line-strong); border-top: 3px solid var(--accent-dark); border-radius: var(--radius); background: white; padding: 17px 21px 4px; box-shadow: 0 6px 18px rgba(20,48,50,.035); }
.panel-label { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 5px; }
.education-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.education-row:last-child { border-bottom: none; }
.education-row .institution { font-size: 16px; line-height: 1.35; margin: 0 0 4px; font-weight: 720; color: var(--ink); }
.education-row .edu-detail { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0 0 6px; }
.education-row .edu-date { font-size: 13px; color: var(--accent-dark); font-weight: 600; margin: 0; }

.proof-strip { margin-top: 24px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 10px; background: var(--accent-light); overflow: hidden; }
.proof-item { display: flex; align-items: flex-start; flex-direction: column; gap: 3px; color: var(--ink); text-decoration: none; padding: 13px 18px; border-right: 1px solid #cfdfda; }
.proof-item:last-child { border-right: 0; }
.proof-item:hover { background: #dcece8; }
.proof-value { font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; color: var(--accent-dark); }
.proof-label { color: var(--muted); font-size: 14px; line-height: 1.45; }

.section { padding: 44px 0; }
#training-overview { padding-top: 30px; }
.section-bordered { border-top: 1px solid var(--line); }
.section-alt { background: var(--canvas); border-block: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading > div { max-width: 780px; }
.section-heading h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem,3vw,2.32rem); letter-spacing: -.035em; margin: 0 0 9px; }
.section-heading p { font-size: 16px; color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.section-heading .text-link { flex-shrink: 0; padding-bottom: 3px; }
.text-link { color: var(--accent-dark); font-weight: 650; font-size: 14px; text-decoration: underline; text-decoration-color: #8caaa7; }
.text-link:hover { text-decoration-color: var(--accent-dark); }

.domain-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.domain-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 17px; display: flex; flex-direction: column; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.domain-card:hover { border-color: var(--line-strong); box-shadow: 0 8px 18px rgba(35,64,64,.05); }
.domain-title { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; min-height: 40px; }
.domain-mark { display: grid; flex: 0 0 39px; height: 39px; place-items: center; border: 1px solid #d5e6e3; background: var(--accent-light); color: var(--accent-dark); font-family: var(--mono); font-weight: 700; font-size: 16px; border-radius: 8px; letter-spacing: -.05em; }
.domain-title h3 { margin: 0; font-size: 16.5px; line-height: 1.3; font-weight: 730; letter-spacing: -.02em; }
.domain-title h3 a { text-decoration: none; color: var(--ink); }
.domain-title h3 a:hover { color: var(--accent-dark); text-decoration: underline; }
.domain-card ul { list-style: none; padding: 0; margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; display: grid; gap: 7px; }
.domain-card li { position: relative; padding-left: 12px; }
.domain-card li::before { content: ""; position: absolute; left: 0; top: .63em; width: 4px; height: 4px; border-radius: 50%; background: #81a29d; }
.domain-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.micro-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--soft); margin-bottom: 5px; }
.domain-bottom a { font-size: 13px; color: var(--accent-dark); font-weight: 650; line-height: 1.4; display: inline-block; }

.work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.work-card { min-width: 0; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.work-card .work-meta { color: var(--accent-dark); font-size: 13px; line-height: 1.4; font-weight: 700; margin: 0 0 12px; }
.work-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 550; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 9px; }
.work-card h3 a { color: var(--ink); text-decoration: none; }
.work-card h3 a:hover { color: var(--accent-dark); text-decoration: underline; }
.work-card .work-context { color: var(--soft); font-size: 13.5px; line-height: 1.5; margin: 0 0 10px; font-weight: 550; }
.work-card > p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 15px; }
.tag-list { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tag { color: #3f5f63; border: 1px solid #dbe5e5; background: #f5f8f8; font-size: 12.5px; border-radius: 5px; padding: 3px 8px; line-height: 1.35; }
.work-card .tag-list { margin-bottom: 18px; }
.work-card-footer { margin-top: auto; display: flex; align-items: center; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 13px; }
.work-card-footer .work-date { color: var(--soft); font-size: 13px; }

.learning-preview { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: 36px; align-items: start; }
.preview-notes { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.preview-notes a { display: flex; color: var(--ink); align-items: center; gap: 13px; justify-content: space-between; text-decoration: none; padding: 13px 16px; border-bottom: 1px solid var(--line); min-height: 51px; }
.preview-notes a:last-child { border-bottom: 0; }
.preview-notes a:hover { background: var(--accent-light); color: var(--accent-dark); }
.preview-notes a span:first-child { font-size: 15px; font-weight: 600; }
.preview-notes .count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.mini-timeline { display: grid; gap: 14px; padding: 0; margin: 0 0 20px; list-style: none; }
.mini-timeline li { padding-left: 15px; border-left: 2px solid #bfd6d1; }
.mini-timeline time { font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.mini-timeline strong { display: block; font-weight: 680; line-height: 1.4; }
.mini-timeline small { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }

.page-header { padding: 47px 0 30px; background: linear-gradient(180deg,#f7faf9 0%,#fff 100%); }
.page-header h1 { font-family: var(--serif); font-size: clamp(2.7rem,5vw,3.65rem); letter-spacing: -.045em; font-weight: 400; margin: 0 0 14px; max-width: 1000px; line-height: 1.08; }
.page-header .lede { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 790px; margin: 0; }
.page-header .crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 17px; color: var(--soft); font-size: 13px; line-height: 1.4; }
.crumb a { color: var(--accent-dark); font-weight: 600; }
.page-main { padding: 23px 0 60px; }
.page-section + .page-section { margin-top: 40px; }
.page-section h2 { font-family: var(--serif); font-size: clamp(1.6rem,2.8vw,2.02rem); font-weight: 550; letter-spacing: -.025em; margin: 0 0 16px; }
.page-section > p { color: var(--muted); line-height: 1.65; }
.education-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.education-card { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: white; min-width: 0; }
.education-card h3 { font-size: 17px; margin: 0 0 7px; font-weight: 700; }
.education-card .edu-date { color: var(--accent-dark); font-size: 13px; font-weight: 650; margin: 0 0 8px; }
.education-card .edu-degree { font-size: 15px; color: var(--ink); font-weight: 600; line-height: 1.5; margin: 0 0 8px; }
.education-card .edu-desc { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 13px; }
.status { display: inline-flex; align-items: center; width: fit-content; border-radius: 5px; border: 1px solid #cfddda; padding: 3px 8px; background: #f0f5f4; color: #315d58; font-weight: 600; font-size: 12px; line-height: 1.4; }
.status-progress { background: #fff6e8; border-color: #ebd7b8; color: #805821; }
.domain-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.domain-jumps a { display: inline-flex; align-items: center; padding: 7px 12px; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); font-size: 14px; font-weight: 600; }
.domain-jumps a:hover { color: var(--accent-dark); background: var(--accent-light); border-color: #bfd5d1; }
.training-block { border: 1px solid var(--line); border-radius: 12px; padding: 25px; margin: 0 0 17px; scroll-margin-top: 18px; }
.training-head { display: grid; grid-template-columns: 47px minmax(0,1fr); align-items: start; gap: 13px; margin-bottom: 21px; }
.training-head .domain-mark { width: 47px; height: 47px; font-size: 18px; }
.training-head h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 4px; }
.training-head p { font-size: 15px; color: var(--muted); margin: 0; }
.training-columns { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 28px; }
.training-columns > div { min-width: 0; }
.training-columns > div + div { padding-left: 25px; border-left: 1px solid var(--line); }
.subheading { font-size: 13px; font-weight: 750; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .075em; margin: 0 0 12px; }
.course-list { padding: 0; margin: 0; list-style: none; }
.course-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.course-list li:first-child { border-top: 0; padding-top: 0; }
.course-list .course-title { font-size: 15px; line-height: 1.4; font-weight: 680; color: var(--ink); }
.course-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; font-size: 13px; color: var(--muted); }
.course-meta .status { font-size: 11.5px; }
.topic-list { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.topic-list li { margin-bottom: 5px; }
.training-columns .tag-list { margin-bottom: 18px; }
.evidence-list { list-style: none; padding: 0; margin: 0 0 17px; display: grid; gap: 8px; }
.evidence-list a { font-size: 14px; color: var(--accent-dark); font-weight: 620; line-height: 1.5; }
.training-foot { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 13px; display: flex; gap: 18px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.training-foot span { font-size: 14px; color: var(--muted); }
.stack-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stack-table th,.stack-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stack-table thead th { background: var(--canvas); color: var(--muted); font-size: 13px; font-weight: 700; }
.stack-table tbody th { color: var(--ink); font-size: 14px; font-weight: 700; width: 23%; }
.stack-table tbody td { font-size: 14px; color: var(--muted); line-height: 1.6; }
.stack-table tbody td:nth-child(2) { color: var(--ink); font-weight: 550; width: 41%; }
.stack-table tr:last-child th,.stack-table tr:last-child td { border-bottom: 0; }

.detail-header { padding-bottom: 25px; }
.detail-header h1 { font-size: clamp(2.2rem,4.5vw,3.3rem); max-width: 960px; }
.detail-header .detail-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; line-height: 1.4; color: var(--muted); margin: 0 0 13px; }
.detail-header .detail-meta strong { color: var(--accent-dark); font-weight: 700; }
.detail-header .tag-list { margin-top: 18px; }
.metrics-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 0; margin-bottom: 31px; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-light); overflow: hidden; }
.metric { padding: 19px 20px; border-right: 1px solid #cddeda; min-width: 0; }
.metric:last-child { border-right: 0; }
.metric-value { display: block; font-family: var(--serif); color: var(--accent-dark); font-size: clamp(1.35rem,2.9vw,1.85rem); line-height: 1.17; font-weight: 550; letter-spacing: -.03em; margin-bottom: 4px; overflow-wrap: anywhere; }
.metric-label { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; align-items: start; gap: 40px; }
.article-content { min-width: 0; }
.article-content h2 { font-family: var(--serif); font-size: 27px; font-weight: 550; letter-spacing: -.025em; margin: 30px 0 12px; line-height: 1.2; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { font-size: 18px; margin: 24px 0 10px; }
.article-content p { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 17px; }
.article-content ul,.article-content ol { padding-left: 23px; margin: 0 0 21px; color: var(--muted); line-height: 1.68; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--ink); font-weight: 700; }
.article-content blockquote { margin: 18px 0; border-left: 3px solid #9abbb5; background: #f6f9f8; padding: 12px 18px; color: var(--muted); }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content pre { background: #f2f5f7; border: 1px solid var(--line); color: #233d46; padding: 17px; border-radius: 8px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.55; margin: 16px 0 22px; }
.article-content code { font-family: var(--mono); font-size: .92em; }
.article-content :not(pre)>code { background: #edf2f3; border-radius: 4px; padding: 2px 4px; color: #223e47; overflow-wrap: anywhere; }
.article-content pre code { white-space: pre; font-size: inherit; }
.article-content .math.display { display: block; max-width: 100%; overflow-x: auto; padding-block: 9px; }
.article-content .math.inline { white-space: normal; }
.article-content figure { margin: 23px 0; }
.article-content figcaption { color: var(--muted); font-size: 14px; padding: 8px 0; text-align: center; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 20px 0; }
.article-content table th,.article-content table td { border: 1px solid var(--line); text-align: left; padding: 9px 12px; }
.article-content table th { background: var(--canvas); color: var(--ink); }
.article-content img { width: auto; height: auto; max-width: 100%; }
.detail-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.side-box { padding: 19px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.side-box h2 { margin: 0 0 11px; font-size: 14px; color: var(--ink); font-weight: 750; }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.side-links a { font-size: 14px; font-weight: 600; line-height: 1.5; display: block; color: var(--accent-dark); }
.side-box p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.back-link { display: inline-block; margin-top: 27px; font-size: 14px; font-weight: 650; }
.method-flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 18px 0 24px; }
.method-stage { border: 1px solid var(--line); background: #f8faf9; border-radius: 8px; padding: 15px; min-width: 0; }
.method-stage h3 { font-size: 15px; margin: 0 0 8px; line-height: 1.4; color: var(--accent-dark); }
.method-stage p { font-size: 14px; line-height: 1.5; margin: 0; }

.filter-ui { margin-bottom: 25px; }
html:not(.js) .filter-ui { display: none; }
.search-field { max-width: 560px; position: relative; margin: 0 0 15px; }
.search-field svg { position: absolute; left: 13px; top: 14px; width: 19px; height: 19px; color: var(--soft); pointer-events: none; }
.search-field input { width: 100%; background: white; padding: 11px 40px 11px 41px; border: 1px solid var(--line-strong); border-radius: 7px; min-height: 45px; color: var(--ink); font-size: 15px; }
.search-field input:focus { border-color: var(--accent); outline-offset: 2px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0; }
.filter-btn { color: var(--muted); min-height: 35px; font-size: 14px; font-weight: 600; padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line); background: white; line-height: 1.35; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter-btn[aria-pressed="true"] { background: var(--accent-dark); color: white; border-color: var(--accent-dark); }
.filter-summary { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.empty-state { text-align: center; margin: 20px 0; padding: 35px 20px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); background: var(--canvas); }
.empty-state h2 { font-family: var(--sans); font-size: 18px; margin: 0 0 7px; }
.empty-state p { margin: 0 0 12px; }
.note-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.note-card { background: white; padding: 19px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; min-width: 0; }
.note-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.note-card .note-domain { color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.note-card .status { flex-shrink: 0; font-size: 11.5px; }
.note-card h2 { font-size: 18px; font-family: var(--sans); line-height: 1.32; letter-spacing: -.018em; margin: 0 0 8px; font-weight: 700; }
.note-card h2 a { text-decoration: none; color: var(--ink); }
.note-card h2 a:hover { color: var(--accent-dark); text-decoration: underline; }
.note-card .note-source { font-size: 13px; color: var(--soft); line-height: 1.5; margin: 0 0 8px; }
.note-card .note-description { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 13px; }
.note-card .tag-list { margin: 1px 0 14px; }
.note-card .note-end { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); }
.note-notice { display: flex; align-items: flex-start; gap: 9px; padding: 12px 15px; border: 1px solid var(--line); background: var(--canvas); border-radius: 7px; color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 25px; }
.note-notice .status { flex-shrink: 0; margin-top: 1px; }
.note-notice p { margin: 0; }
.note-header-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 13px; font-size: 14px; color: var(--muted); margin: 16px 0 0; }

.timeline { position: relative; max-width: 980px; margin: 2px auto 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 157px; top: 10px; bottom: 37px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; display: grid; grid-template-columns: 135px minmax(0,1fr); gap: 45px; padding-bottom: 30px; }
.timeline-item::before { content: ""; position: absolute; left: 151px; top: 8px; width: 13px; height: 13px; background: white; border: 3px solid var(--accent); border-radius: 50%; }
.timeline-item time { color: var(--accent-dark); font-size: 14px; line-height: 1.4; font-weight: 700; padding-top: 4px; text-align: right; }
.timeline-content { padding: 17px 20px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.timeline-content h2 { font-family: var(--serif); font-size: 24px; font-weight: 550; letter-spacing: -.025em; margin: 0 0 6px; }
.timeline-place { font-weight: 600; font-size: 14px; color: var(--accent-dark); margin: 0 0 10px; line-height: 1.5; }
.timeline-content .timeline-desc { font-size: 15px; color: var(--muted); line-height: 1.65; margin: 0 0 13px; }
.timeline-content .tag-list a { text-decoration: none; }
.timeline-content .tag-list a:hover { color: var(--accent-dark); border-color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); padding: 25px 0; background: #fafbfb; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-title { display: block; font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 3px; }
.footer-caption { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); }
.footer-nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.footer-nav a:hover { color: var(--accent-dark); text-decoration: underline; }

@media (max-width: 1000px) {
  .container { width: min(var(--max-width),calc(100% - 44px)); }
  .hero-grid { gap: 34px; grid-template-columns: minmax(0,1.35fr) minmax(280px,.9fr); }
  .header-inner { gap: 17px; }
  .site-nav { gap: 17px; }
  .article-layout { grid-template-columns: minmax(0,1fr) 245px; gap: 26px; }
  .training-columns { gap: 20px; }
  .training-columns > div + div { padding-left: 18px; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 80px; }
  .header-inner { flex-wrap: wrap; gap: 0; padding-block: 11px; min-height: 67px; }
  .brand-mark { width: 38px; height: 38px; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 7px 15px; justify-content: flex-start; padding-top: 10px; }
  .site-nav a { padding: 8px 2px 6px; font-size: 14px; }
  .js .mobile-toggle { display: inline-flex; }
  .js .site-nav:not(.open) { display: none; }
  .hero { padding: 40px 0 26px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .education-panel { max-width: 100%; padding: 18px 20px 3px; }
  .education-row { padding: 12px 0; }
  .hero-copy { font-size: 16px; }
  .proof-strip { margin-top: 24px; }
  .proof-item { padding: 14px; }
  .proof-value { font-size: 20px; }
  .proof-label { font-size: 13px; }
  .domain-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section { padding: 34px 0; }
  .section-heading { align-items: flex-start; }
  .education-grid { grid-template-columns: 1fr; gap: 10px; }
  .education-card { display: grid; grid-template-columns: minmax(0,1fr); padding: 17px; }
  .article-layout { grid-template-columns: 1fr; gap: 25px; }
  .detail-side { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .learning-preview { gap: 24px; }
  .stack-table tbody td { font-size: 13.5px; }
  .stack-table th,.stack-table td { padding: 11px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 34px); }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(2.65rem,11vw,3.4rem); }
  .alias { font-size: 17px; margin-left: 5px; }
  .hero-headline { margin-top: 12px; margin-bottom: 15px; }
  .hero-copy { line-height: 1.65; margin-bottom: 12px; }
  .button-row { gap: 9px; align-items: stretch; }
  .button { padding: 10px 13px; }
  .proof-strip { grid-template-columns: 1fr; margin-top: 19px; }
  .proof-item { border-right: 0; border-bottom: 1px solid #cfdfda; padding: 12px 15px; }
  .proof-item:last-child { border-bottom: 0; }
  .proof-value { font-size: 20px; }
  .domain-grid,.work-grid,.note-grid,.learning-preview { grid-template-columns: 1fr; gap: 12px; }
  .domain-card,.work-card,.note-card { padding: 17px; }
  .domain-title { margin-bottom: 9px; }
  .domain-card ul { gap: 6px; }
  .domain-bottom { padding-top: 11px; }
  .section { padding: 30px 0; }
  .section-heading { flex-direction: column; gap: 8px; margin-bottom: 17px; }
  .section-heading .text-link { padding-bottom: 0; }
  .section-heading h2 { font-size: 28px; margin-bottom: 7px; }
  .page-header { padding: 32px 0 22px; }
  .page-header h1 { font-size: 40px; }
  .page-header .lede { font-size: 16px; }
  .page-main { padding: 17px 0 40px; }
  .page-section + .page-section { margin-top: 32px; }
  .training-block { padding: 18px; }
  .training-columns { grid-template-columns: 1fr; gap: 19px; }
  .training-columns > div + div { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .training-head { grid-template-columns: 38px minmax(0,1fr); gap: 10px; }
  .training-head h3 { font-size: 20px; }
  .training-head .domain-mark { width: 38px; height: 38px; font-size: 15px; }
  .stack-table,.stack-table tbody,.stack-table tr,.stack-table th,.stack-table td { display: block; width: 100% !important; }
  .stack-table thead { display: none; }
  .stack-table tbody tr { border-bottom: 1px solid var(--line); padding: 13px; }
  .stack-table tbody tr:last-child { border-bottom: 0; }
  .stack-table tbody th,.stack-table tbody td { border: 0; padding: 2px 0 6px; font-size: 14px; }
  .metrics-grid { grid-template-columns: 1fr; margin-bottom: 20px; }
  .metric { border-right: 0; border-bottom: 1px solid #cddeda; padding: 13px 15px; }
  .metric:last-child { border-bottom: 0; }
  .metric-value { font-size: 24px; }
  .detail-header h1 { font-size: 34px; }
  .detail-side { grid-template-columns: 1fr; }
  .method-flow { grid-template-columns: 1fr; }
  .note-notice { display: block; padding: 12px; }
  .note-notice .status { margin-bottom: 6px; }
  .timeline::before { left: 6px; top: 8px; bottom: 35px; }
  .timeline-item { display: block; padding-left: 27px; padding-bottom: 22px; }
  .timeline-item::before { left: 0; }
  .timeline-item time { display: block; text-align: left; margin-bottom: 8px; padding-top: 2px; }
  .timeline-content { padding: 15px; }
  .timeline-content h2 { font-size: 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  body { font-size: 11pt; }
  .site-header,.site-footer,.filter-ui,.button-row,.domain-jumps,.skip-link { display: none !important; }
  .container { width: 100%; max-width: none; }
  .hero,.page-header,.section,.page-main { padding: 15px 0; background: white; }
  .hero-grid,.article-layout { display: block; }
  .detail-side { position: static; }
  .domain-card,.work-card,.note-card,.training-block { break-inside: avoid; }
  a { color: inherit; }
}

/* Portfolio and notebook reading system — second design edition. */
:root {
  --ink: #182b3e;
  --muted: #526273;
  --soft: #65788a;
  --accent: #2f6495;
  --accent-dark: #1b4d76;
  --accent-light: #eef4f9;
  --line: #dce4ec;
  --line-strong: #c7d5e2;
  --canvas: #f7f9fc;
  --radius: 8px;
  --max-width: 1160px;
  --serif: var(--sans);
}
.site-header { background: #fff; }
.brand-mark { background: #1b4d76; font-family: var(--sans); letter-spacing: -.045em; }
.site-nav a { font-size: 14px; font-weight: 600; }
.hero { background: #fff; padding: 46px 0 24px; }
.hero-grid { gap: 44px; align-items: start; }
.hero h1 { font-size: clamp(2.8rem, 5vw, 3.8rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.08; }
.hero-headline { font-weight: 650; font-size: clamp(1.12rem, 2vw, 1.45rem); margin-bottom: 16px; }
.hero-copy { font-size: 16px; line-height: 1.65; }
.alias { font-size: 18px; letter-spacing: -.015em; }
.education-panel { box-shadow: none; border: 0; border-left: 3px solid var(--accent); border-radius: 0; background: var(--canvas); padding: 18px 22px 5px; }
.education-panel .panel-label { color: var(--accent-dark); }
.button-primary:hover { background: #153c5c; }
.proof-strip { border: 1px solid var(--line); background: var(--canvas); border-radius: 7px; }
.proof-item { border-right-color: var(--line); }
.proof-item:hover { background: var(--accent-light); }
.proof-value { font-weight: 750; font-size: 21px; }
.section-heading h2, .page-section h2 { font-weight: 720; letter-spacing: -.035em; }
.section-heading h2 { font-size: clamp(1.65rem,3vw,2.08rem); }
.section-alt { background: var(--canvas); }
.domain-grid { gap: 19px 24px; }
.domain-card { border: 0; border-top: 2px solid var(--line-strong); padding: 18px 3px 15px; border-radius: 0; background: transparent; }
.domain-card:hover { box-shadow: none; border-top-color: var(--accent); }
.domain-mark { border: 1px solid #dce7f1; background: var(--accent-light); color: var(--accent-dark); }
.domain-card li::before { background: #87a9c4; }
.domain-bottom { border-top-color: var(--line); }
.work-card { border-radius: 8px; padding: 21px; border-color: var(--line); }
.work-card h3 { font-weight: 700; font-size: 21px; letter-spacing: -.025em; }
.tag { border-color: #dee7ef; background: #f6f8fb; color: #415e78; }
.text-link { text-decoration-color: #a4b9cc; }
.page-header { background: #fff; padding: 42px 0 26px; }
.page-header h1 { font-weight: 750; font-size: clamp(2.15rem,4.5vw,3.2rem); }
.detail-header h1 { font-size: clamp(2rem,4vw,2.85rem); }
.training-block { border-radius: 8px; }
.status { background: #eef4f9; color: #355b7b; border-color: #d6e2ed; }
.status-progress { background: #fff6e8; color: #805821; border-color: #ebd7b8; }
.metrics-grid { background: var(--accent-light); }
.metric { border-right-color: #d5e1ec; }
.metric-value { font-weight: 740; }
.article-content h2 { font-weight: 700; font-size: 24px; }
.article-content blockquote { border-left-color: #aac1d4; background: var(--canvas); }
.timeline-item::before { border-color: var(--accent); }
.mini-timeline li { border-left-color: #bed0e0; }
.timeline-content h2 { font-size: 21px; font-weight: 700; }
.site-footer { background: var(--canvas); }

/* Notebook: enduring subject navigation, reading pane, and page outline. */
.notebook-layout {
  width: min(1450px, calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  align-items: start;
  gap: 32px;
  padding: 28px 0 60px;
  min-height: calc(100vh - 170px);
}
.notebook-catalog { grid-template-columns: 255px minmax(0,1fr); max-width: 1200px; }
.notebook-reader { grid-template-columns: 248px minmax(0,1fr) 205px; }
.notebook-sidebar {
  position: sticky; top: 96px;
  max-height: calc(100vh - 117px);
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin;
  padding: 5px 15px 12px 0;
  border-right: 1px solid var(--line);
}
.notebook-sidebar-inner { min-width: 0; }
.notebook-mobile-title { display: none; }
.notebook-index-link {
  display: block; padding: 8px 10px; font-weight: 750; color: var(--ink);
  font-size: 16px; text-decoration: none; line-height: 1.4;
  border-radius: 5px; margin-bottom: 12px;
}
.notebook-index-link[aria-current] { background: var(--accent-light); color: var(--accent-dark); }
.tree-search { margin: 0 5px 13px; }
.tree-search input {
  width:100%; min-height: 38px; border:1px solid var(--line-strong);
  border-radius:5px; color:var(--ink); background:#fff;
  font-size:14px; padding:8px 10px;
}
html:not(.js) .tree-search { display:none; }
.tree-result { font-size: 12px; color: var(--muted); margin:5px 0 0; }
.tree-result:empty { display: none; }
.notebook-group { margin-bottom: 7px; }
.notebook-group summary {
  display: flex; align-items: center; gap: 8px;
  list-style: none; cursor: pointer; color:var(--ink);
  font-weight: 680; font-size: 13.5px; padding: 8px 8px;
  line-height: 1.35; border-radius: 5px;
}
.notebook-group summary::-webkit-details-marker { display:none; }
.notebook-group summary::before {
  content:""; width:6px;height:6px; flex:0 0 6px;
  border-right:1.5px solid var(--soft);border-bottom:1.5px solid var(--soft);
  transform:rotate(-45deg); transition:transform .12s;
}
.notebook-group[open] summary::before { transform:rotate(45deg); }
.notebook-group summary:hover { background:var(--canvas); }
.chapter-count { margin-left:auto; color:var(--soft); font-size:12px; font-weight:500; }
.notebook-group ul { list-style:none; border-left: 1px solid var(--line); margin: 1px 0 4px 12px; padding: 0 0 0 6px; }
.notebook-group li { margin: 0 0 3px; }
.notebook-group a {
  display:block; border-radius:4px; color:var(--muted); text-decoration:none;
  font-size:13px; line-height:1.42; padding:6px 8px; overflow-wrap:anywhere;
}
.notebook-group a:hover { background:var(--canvas); color:var(--accent-dark); }
.notebook-group a[aria-current] { background:var(--accent-light);color:var(--accent-dark);font-weight:700; box-shadow: inset 2px 0 var(--accent); }
.notebook-bottom { margin:17px 7px 0; border-top:1px solid var(--line);padding-top:13px; }
.notebook-main { min-width:0; padding:9px 0 0; }
.notebook-heading { border-bottom:1px solid var(--line);padding:4px 0 22px;margin-bottom:22px; }
.notebook-heading h1 { font-family:var(--sans); font-weight:750; font-size:clamp(2rem,4vw,2.65rem);letter-spacing:-.043em;line-height:1.14;margin:0 0 13px; }
.notebook-heading .lede { color:var(--muted);font-size:16px;line-height:1.65;margin:0; }
.notebook-heading .crumb { display:flex;gap:8px;align-items:center;flex-wrap:wrap; font-size:13px;color:var(--soft);margin-bottom:16px; }
.notebook-heading .eyebrow { margin-bottom:11px; }
.notebook-reader .note-notice { padding:10px 12px; font-size:13.5px; }
.notebook-reader .article-content { padding-top:3px; }
.notebook-reader .article-content h2 { border-bottom:1px solid var(--line); padding-bottom:9px; margin-top:30px; }
.notebook-reader .article-content h2:first-child { margin-top:0; }
.notebook-reader .article-content p,.notebook-reader .article-content li { color:#384b5b; }
.notebook-toc {
  position:sticky;top:96px;max-height:calc(100vh - 117px);overflow:auto;scrollbar-width:thin;
  border-left:1px solid var(--line); padding:8px 0 15px 16px;min-width:0;
}
.toc-section { padding-bottom:16px; margin-bottom:16px;border-bottom:1px solid var(--line); }
.toc-section:last-child { border:0; }
.toc-section h2 { font-size:13.5px;font-weight:750;color:var(--ink);margin:0 0 10px; }
.toc-list { list-style:none;padding:0;margin:0;display:grid;gap:9px; }
.toc-list li, .toc-list a { font-size:13px;line-height:1.5;color:var(--muted); }
.toc-list a { display:block;text-decoration:none; }
.toc-list a:hover { color:var(--accent-dark);text-decoration:underline; }
.toc-list .toc-h3 { padding-left:12px; }
.chapter-navigation { display:grid;grid-template-columns:1fr 1fr;gap:13px;border-top:1px solid var(--line);padding-top:19px;margin-top:32px; }
.chapter-link { border:1px solid var(--line);padding:12px 14px;border-radius:6px;text-decoration:none;display:flex;flex-direction:column;gap:4px; }
.chapter-link:hover { border-color:var(--accent);background:var(--canvas); }
.chapter-link span { color:var(--soft);font-size:12px;font-weight:600; }
.chapter-link strong { font-size:14px;line-height:1.45;color:var(--accent-dark); }
.chapter-link:last-child { text-align:right; }
.notebook-catalog .note-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px; }
.notebook-catalog .note-card { padding:17px 3px 18px; border:0;border-top:1px solid var(--line);border-radius:0; }
.notebook-catalog .note-card h2 { font-size:18px; }
.notebook-catalog .note-card .note-end { border:0; padding-top:0; }
.notebook-catalog .note-card .note-description { margin-bottom:10px; }
.notebook-catalog .note-card .tag-list { margin-bottom:13px; }

@media(max-width:1100px) {
  .notebook-reader { grid-template-columns:220px minmax(0,1fr);gap:24px; }
  .notebook-toc { grid-column:2;position:static;max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border:0;padding:0; }
  .toc-section { border:1px solid var(--line);padding:14px;margin:0;border-radius:6px; }
  .toc-section:last-child { border:1px solid var(--line); }
  .notebook-catalog { grid-template-columns:220px minmax(0,1fr);gap:23px; }
  .notebook-catalog .note-grid { grid-template-columns:1fr; }
}
@media(max-width:800px) {
  .hero { padding:32px 0 24px; }
  .hero-grid { gap:23px; }
  .education-panel { width:100%; }
  .proof-item { border-right-color:var(--line); }
}
@media(max-width:760px) {
  .notebook-layout { display:block;width:calc(100% - 34px);padding:17px 0 36px; }
  .notebook-sidebar { position:static;max-height:none;overflow:visible;padding:0;border:1px solid var(--line);border-radius:7px;margin-bottom:22px; }
  .notebook-mobile-title { display:list-item;cursor:pointer;font-size:14px;font-weight:700;color:var(--accent-dark);padding:12px 14px; }
  .notebook-sidebar-inner { border-top:1px solid var(--line);padding:10px;max-height:55vh;overflow:auto; }
  .notebook-main { padding:0; }
  .notebook-heading h1 { font-size:2.1rem; }
  .notebook-toc { margin-top:24px;grid-template-columns:1fr; }
  .notebook-toc .toc-section { border:1px solid var(--line); }
  .chapter-navigation { gap:9px; }
  .chapter-link { padding:10px; }
}
@media(max-width:560px) {
  .hero h1 { font-size:2.65rem; }
  .domain-grid { gap:10px; }
  .domain-card { padding:14px 0; }
  .proof-item { border-right:0;border-bottom:1px solid var(--line); }
  .metric { border-right:0;border-bottom-color:var(--line); }
  .work-card h3 { font-size:20px; }
}
@media print {
  .notebook-layout { display:block;width:100%; }
  .notebook-sidebar,.notebook-toc,.chapter-navigation { display:none!important; }
}
