/* Static Aman shell port. Measured values and source attribution: reference-spec.md.
   Business-case article width is adapted to retain complete tables and diagrams. */
@font-face{font-family:Inter;src:url('/assets/fonts/InterVariable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--ink:#161616;--muted:#71717a;--line:#d4d4d8;--sidebar:240px;--secondary:#f3f3f3}
body{color:var(--ink);background:linear-gradient(to right,#fff,#e5e7eb);font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5}
button,input{font:inherit}button{color:inherit}[hidden]{display:none!important}svg{width:16px;height:16px}a:hover{text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid #52525b;outline-offset:4px}
.sidebar{z-index:10;width:var(--sidebar);height:100dvh;padding:64px 16px 32px;overflow-y:auto;overflow-x:hidden;background:var(--secondary);border:0;transition:width 200ms cubic-bezier(0,0,.2,1)}
.sidebar-toggle{position:absolute;top:16px;right:12px;display:grid;place-items:center;width:28px;height:28px;padding:4px;border:1px solid transparent;border-radius:9999px;background:transparent;color:#6b7280}
.sidebar-toggle:hover{background:#e5e7eb;color:#000}.identity{gap:12px;padding:0 8px}.avatar{width:40px;height:40px;flex:none;background:#e5e5e5;font-size:20px}.identity>span:last-child{min-width:0}.identity strong{font-size:18px;font-weight:400;line-height:24px}.identity small{height:20px;font-size:14px;line-height:20px;white-space:nowrap}
.profile-line{margin:16px 8px 20px;font-size:12px;color:#71717a;white-space:nowrap}.sidebar nav{gap:4px;padding:12px 0}.sidebar nav a{gap:8px;padding:8px 12px;min-height:38px;border:1px solid transparent;border-radius:6px;font-size:14px;line-height:20px;transition:background-color 150ms,color 150ms;white-space:nowrap}.sidebar nav a:hover{background:#e5e7eb;color:#000}.sidebar nav a[aria-current]{background:#161616;border-color:#161616;color:#fff}.sidebar-note{margin:36px 0 0;font-size:13px}.sidebar-note>span{display:block;margin-bottom:16px;font-size:14px}.sidebar-note p{color:#71717a;margin:0 0 12px;font-size:12px;line-height:1.75}.sidebar-note a{font-size:12px}.sidebar-note a:hover,.sidebar-credit:hover{text-decoration:underline}.sidebar-credit{margin:auto 0 0;padding-top:48px;font-size:10px;color:#71717a}
.page-shell,.case-page .page-shell{margin-left:var(--sidebar);min-height:100dvh;padding:0;transition:margin-left 200ms cubic-bezier(0,0,.2,1)}
.page-shell>main{width:100%;max-width:896px;margin:0 auto;padding:128px 48px 0}.wrap,.case-page .wrap{max-width:800px;margin-left:auto;margin-right:auto}
.home-intro{margin-bottom:20px}.home-intro h1{font-size:48px;line-height:1.05;font-weight:500;letter-spacing:-1.2px;margin-bottom:20px}.home-intro>p{font-size:14px;line-height:1.65}.home-intro .eyebrow{margin-bottom:6px;font-size:12px;color:#71717a}
.project-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:20px}.project-filters{display:flex;flex-wrap:wrap;gap:8px}.project-filters button{padding:8px 12px;border:1px solid #d4d4d8;border-radius:9999px;background:transparent;font-size:12px;line-height:16px;white-space:nowrap;transition:border-color 150ms,background-color 150ms,color 150ms}.project-filters button:hover{border-color:#71717a}.project-filters button[aria-pressed="true"]{color:white;border-color:#27272a;background:#27272a}.project-search{position:relative;width:224px;max-width:100%}.project-search svg{position:absolute;left:12px;top:10px;width:14px;height:14px;color:#a1a1aa;pointer-events:none}.project-search input{display:block;width:100%;padding:8px 12px 8px 32px;border:1px solid #d4d4d8;border-radius:9999px;color:#27272a;background:transparent;font-size:12px;line-height:16px;cursor:text}.project-search input::placeholder{color:#a1a1aa}.project-search input:focus{border-color:#71717a;outline:none}
.work{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.project-card{position:relative;min-width:0;display:flex;flex-direction:column;background:#e5e5e5;border:0;border-radius:12px;padding:8px;color:#1f2937;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000001a;transition:none}.project-card:hover{transform:none;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000001a}.project-cover{display:flex;flex-direction:column-reverse;gap:6px;background:none;border-radius:0;overflow:visible;aspect-ratio:auto}.project-cover img{width:100%;height:192px;max-height:192px;margin:0;object-fit:cover;object-position:top;border-radius:6px;box-shadow:none}.cover-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 8px;padding:0;background:none;font-size:12px;line-height:16px}.cover-heading strong{font-size:12px;font-weight:400;letter-spacing:0}.cover-heading span{font-size:12px;color:#52525b}.card-content{padding:6px 0 0;display:flex;flex-direction:column;flex:1;gap:6px}.card-content h2{color:#161616;font-size:16px;line-height:20px;font-weight:600;margin:0;letter-spacing:0}.card-label{color:#3f3f46;font-size:12px;line-height:16px;margin:0}.card-description{font-size:12px;line-height:18px;color:#1f2937;margin:0}.card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.button{padding:3px 12px;min-height:24px;border:1px solid #4b5563;border-radius:6px;background:#161616;color:#fff;font-size:12px;font-weight:500;line-height:16px;box-shadow:0 1px 3px #0002;transition:background-color 150ms}.button:hover{background:#2d2d2d}.card-status{color:#3f3f46;font-size:12px;line-height:18px;margin:0}.tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:auto;padding-top:6px}.tags span{padding:2px 8px;border-radius:9999px;background:#f4f4f5;color:#161616;font-size:12px;line-height:16px}.project-empty{padding:48px 0;color:#71717a;text-align:center;font-size:14px}
/* A stretched title link provides the reference whole-card target without nested
   anchors. Original prototype buttons sit above it and remain separate links. */
.card-content h2 a::after{content:"";position:absolute;inset:0;z-index:1;border-radius:12px}
.card-content h2 a:focus-visible{outline:none}.card-content h2 a:focus-visible::after{outline:2px solid #52525b;outline-offset:4px}
.card-actions a{position:relative;z-index:2}
.route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:40px;margin-bottom:0}.route{display:block;padding:20px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none}.route:hover{background:none}.route>span{font-size:12px;color:#71717a}.route strong{margin:6px 0;font-size:16px;font-weight:500}.route p{font-size:12px;color:#71717a}.route:hover strong{text-decoration:underline;text-underline-offset:4px}.home-end{margin-top:24px;padding-top:24px;border-top:1px solid var(--line);font-size:13px;color:#71717a}.link-group{display:flex;flex-wrap:wrap;gap:10px 20px;align-items:center;margin-top:12px}.text-link{text-decoration:underline;text-underline-offset:4px}.page-shell>footer{width:calc(100% - 96px);display:flex;gap:16px;justify-content:space-between;padding:64px 0 32px;color:#71717a;font-size:11px}.page-shell>footer a:hover{text-decoration:underline}
/* Normal heading follows the 640px reference article; tables use the full shell. */
.case-page .case-heading{max-width:640px;margin-bottom:32px}.case-heading .back{margin-bottom:24px;font-size:14px}.eyebrow{color:#71717a;font-size:12px;margin-bottom:12px}.case-heading h1{font-size:30px;line-height:36px;font-weight:700;letter-spacing:-.5px}.case-subtitle{font-size:18px;line-height:28px;color:#71717a;margin-top:18px}.metadata{gap:16px 24px;margin:24px 0}.metadata dt{color:#71717a;font-size:12px}.metadata dd{margin:4px 0 0;font-size:14px;line-height:22px}.case-actions{flex-wrap:wrap;gap:12px 20px;margin:24px 0 0;font-size:13px}.case-actions .button{min-height:32px}
.toc.full-toc,.toc{margin:0 0 40px;padding:20px;border:1px solid #d4d4d8;border-radius:6px;background:#f3f3f380;font-size:13px}.toc summary,.full-toc summary{font-size:16px;font-weight:600}.full-toc .chapter-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;margin-top:16px}.full-toc .chapter-link{font-size:14px;font-weight:600;margin-bottom:6px}.subtopics{gap:4px 12px}.full-toc .subtopics a{font-size:12px;color:#71717a;line-height:20px}.toc a:hover{text-decoration:underline}
.case-content{font-size:16px;line-height:1.9}.case-section{margin-bottom:64px;scroll-margin-top:28px}.section-no{color:#a1a1aa;font-size:12px;margin-bottom:12px}.case-content h2{padding-bottom:12px;margin-bottom:20px;border-bottom:1px solid #d4d4d8;font-size:26px;line-height:1.4;font-weight:600}.case-content h3{margin:28px 0 12px;padding:0;border:0;font-size:19px;line-height:1.5;font-weight:600;scroll-margin-top:28px}.case-content p{margin-bottom:16px;line-height:1.9}.case-content p a,.case-content li a{text-decoration:underline;text-underline-offset:4px}.table-wrap,.case-content .table-wrap{width:100%;max-width:100%;overflow-x:auto;margin:20px 0 28px;border:1px solid #d4d4d8;border-radius:6px}table,.case-content table{min-width:580px;font-size:13px;line-height:1.75}th,td,.case-content th,.case-content td{padding:12px 14px;border-bottom:1px solid #d4d4d8;vertical-align:top;overflow-wrap:anywhere}th,.case-content th{background:#e5e5e5;font-weight:600}.case-content .evidence{max-width:none;margin:24px 0 32px}.zoom{border:0;border-radius:6px;background:#fff;cursor:zoom-in}.zoom:hover img{opacity:.9}.zoom span{opacity:1;background:#ffffffe8;color:#52525b;font-size:11px}.flow-figure img{border-color:#d4d4d8;border-radius:6px}.case-end{gap:16px 24px;font-size:14px}.simple-heading{max-width:640px;margin-bottom:32px}.simple-heading h1{margin-bottom:20px;font-size:48px;line-height:1;font-weight:500}.lead{color:#71717a;font-size:18px;line-height:28px}.prose,.resources{max-width:640px}.resource-row h2{font-size:20px;line-height:28px}.resource-row p{color:#71717a}
dialog{width:min(1300px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:95dvh;border:0;border-radius:6px;background:#111;color:#fff}dialog::backdrop{background:#000000f2}dialog img{max-height:85dvh}dialog p{color:#d4d4d8}.dialog-close{color:white}
@media(min-width:680px){.sidebar-collapsed{--sidebar:64px}.sidebar-collapsed .sidebar{padding-left:8px;padding-right:8px}.sidebar-collapsed .sidebar .identity{justify-content:center;padding:0}.sidebar-collapsed .sidebar .identity>span:last-child,.sidebar-collapsed .profile-line,.sidebar-collapsed .sidebar-note,.sidebar-collapsed .sidebar-credit,.sidebar-collapsed .sidebar nav a>span{display:none}.sidebar-collapsed .sidebar nav{margin-top:32px}.sidebar-collapsed .sidebar nav a{justify-content:center;padding:8px 0}.sidebar-collapsed .sidebar-toggle{left:50%;right:auto;transform:translateX(-50%)}.sidebar-collapsed .sidebar-toggle svg{transform:rotate(180deg)}}
@media(min-width:680px) and (max-width:1023px){.page-shell>main{padding-left:24px;padding-right:24px}.page-shell>footer{width:calc(100% - 48px)}}
@media(max-width:767px){.page-shell>main{padding-top:24px}.home-intro h1,.simple-heading h1{font-size:24px;line-height:32px;letter-spacing:0}.home-intro h1{margin-bottom:12px}.work{gap:12px}.project-cover img{height:144px;max-height:144px}.project-toolbar{margin-bottom:12px;gap:12px}.case-heading h1{font-size:28px;line-height:36px}.full-toc .chapter-nav{grid-template-columns:1fr}.case-content h2{font-size:24px}.case-content h3{font-size:18px}.case-content th,.case-content td{padding:10px}.flow-figure{overflow-x:auto}.flow-figure img,.case-content .flow-figure a{min-width:740px}.table-hint{display:block;font-size:12px!important;color:#71717a;margin:22px 0 -12px!important}}
@media(min-width:680px) and (max-width:760px){.mobile-header,.menu-backdrop,.menu-close{display:none!important}.sidebar{visibility:visible;transform:none}.menu-open .sidebar{transform:none}}
@media(width < 680px){html{scroll-padding-top:88px}.mobile-header{z-index:20;height:64px;min-height:64px;padding:12px 16px;background:#f3f3f3;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a}.mobile-header .identity{padding:0 8px;gap:12px}.mobile-header .avatar{width:40px;height:40px;font-size:20px}.mobile-header .identity strong{font-size:14px;line-height:20px}.mobile-header .identity small{font-size:12px;line-height:16px;height:16px}.menu-toggle{padding:8px;border-radius:6px}.menu-toggle svg{width:24px;height:24px;stroke-width:2}.sidebar{z-index:40;visibility:hidden;transform:translateX(-100%);width:256px;padding:48px 16px;box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;transition:transform 300ms cubic-bezier(.4,0,.2,1),visibility 0s 300ms}.menu-open .sidebar{visibility:visible;transform:translateX(0);transition:transform 300ms cubic-bezier(.4,0,.2,1),visibility 0s}.sidebar-toggle{display:none}.menu-close{top:16px;right:16px;display:grid;place-items:center;width:28px;height:28px;padding:4px;border-radius:9999px;font-size:24px;line-height:20px}.menu-backdrop:not([hidden]){z-index:30;background:#0006;opacity:0;transition:opacity 300ms cubic-bezier(.4,0,.2,1)}.menu-open .menu-backdrop{opacity:1}.menu-open{overflow:visible}.page-shell,.case-page .page-shell{margin-left:0}.page-shell>main{padding:88px 16px 0}.page-shell>footer{width:calc(100% - 32px);flex-wrap:wrap;padding-top:48px}.home-intro{margin-bottom:12px}.home-intro>p{font-size:14px}.project-toolbar{align-items:flex-start}.project-search{width:100%}.case-heading .back{margin-bottom:20px}.case-heading h1{font-size:26px;line-height:34px}.case-subtitle{font-size:16px;line-height:26px}.metadata{grid-template-columns:1fr;gap:12px}.case-actions .button,.case-actions .text-link{display:inline-flex;align-items:center;min-height:40px}.toc.full-toc,.toc{padding:18px 16px}.case-section,.case-content h3{scroll-margin-top:88px}.sidebar nav a{min-height:38px}}
@media(width < 640px){.work,.route-grid{grid-template-columns:1fr}.route-grid{gap:0;margin-top:32px}.route{padding:20px 0}.route strong{font-size:16px}.card-actions .button{min-height:32px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
@media print{body{background:white;color:#111}.sidebar,.mobile-header,.menu-backdrop,dialog,.skip,footer,.toc,.zoom span,.project-toolbar{display:none!important}.page-shell,.case-page .page-shell{margin:0}.page-shell>main{max-width:none;padding:0}.wrap,.case-page .wrap,.case-page .case-heading{max-width:none}.case-section{margin-bottom:24px}.case-content{font-size:11pt}.case-content h2{font-size:17pt}.table-wrap,.case-content .table-wrap{overflow:visible}table,.case-content table{min-width:0;font-size:9pt}.flow-figure img,.case-content .flow-figure a{min-width:0}.button{color:#111;background:white;border:1px solid #aaa}}
