*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; color: #1a1a1a; background: #ffffff; }
.site-header img { width: 100%; height: auto; display: block; }
nav { display: flex; align-items: center; justify-content: flex-end; border-bottom: 1px solid #e0e0e0; background: #ffffff; position: relative; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #555; text-decoration: none; padding: 12px 18px; border-left: 1px solid #e0e0e0; letter-spacing: 0.04em; display: block; }
.nav-links a:hover, .nav-links a.active { color: #001542; background: #f5f7fa; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 12px 16px; flex-direction: column; gap: 5px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #444; border-radius: 2px; }
@media (max-width: 760px) {
  nav { justify-content: flex-end; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; right: 0; left: 0; background: #ffffff; border-bottom: 1px solid #e0e0e0; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-links a { border-left: none; border-top: 1px solid #e0e0e0; padding: 14px 20px; font-size: 15px; }
}
.page { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.eyebrow { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #888; margin-bottom: 0.75rem; }
h1 { font-size: 42px; font-weight: 700; line-height: 1.1; color: #001542; margin-bottom: 1rem; }
h2 { font-size: 26px; font-weight: 700; color: #001542; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 17px; font-weight: 700; color: #001542; margin: 1.5rem 0 0.5rem; }
p { font-size: 16px; line-height: 1.85; color: #444; margin-bottom: 1rem; }
ul { margin: 1rem 0 1.5rem 1.5rem; color: #444; line-height: 1.75; }
li { margin-bottom: 0.4rem; }
p:last-child { margin-bottom: 0; }
strong { color: #1a1a1a; }
a { color: #0088D1; text-decoration: none; }
a:hover { text-decoration: underline; }
.lede { font-size: 19px; line-height: 1.75; color: #333; margin-bottom: 1.5rem; }
.pull { border-left: 4px solid #C9A84C; padding: 1rem 1.5rem; margin: 2rem 0; font-size: 18px; line-height: 1.65; color: #001542; background: #fffdf5; }
.callout { border: 1px solid #e6d8a6; background: #fffdf5; border-radius: 4px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.invariants, .spokes, .cmmi, .matrix { border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; margin: 2rem 0; }
.inv-hdr, .spoke-hdr, .cmmi-hdr, .matrix-hdr { background: #001542; color: #ffffff; display: grid; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.inv-hdr { grid-template-columns: 220px 1fr; }
.inv-hdr div, .spoke-hdr div, .cmmi-hdr div, .matrix-hdr div { padding: 10px 14px; border-right: 1px solid rgba(255,255,255,0.1); }
.inv-row { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid #e0e0e0; }
.inv-row:nth-child(even), .spoke-row:nth-child(even), .cmmi-row:nth-child(even), .matrix-row:nth-child(even) { background: #f9fafb; }
.inv-name { padding: 14px 16px; font-weight: 700; font-size: 14px; color: #001542; border-right: 1px solid #e0e0e0; }
.inv-desc { padding: 14px 16px; font-size: 14px; color: #444; line-height: 1.6; }
.levels { display: flex; flex-direction: column; gap: 2px; margin: 2rem 0; }
.level { display: grid; grid-template-columns: 64px 160px 1fr 120px; align-items: stretch; gap: 0; border: 1px solid #e0e0e0; border-radius: 2px; overflow: hidden; }
.level-n { background: #f5f7fa; padding: 14px 16px; font-size: 22px; font-weight: 700; color: #aab8cc; text-align: center; border-right: 1px solid #e0e0e0; display:flex;align-items:center;justify-content:center;}
.level-name { padding: 14px 16px; font-weight: 600; font-size: 14px; color: #444; border-right: 1px solid #e0e0e0; display:flex;align-items:center;}
.level-desc { padding: 14px 16px; font-size: 13px; color: #666; line-height: 1.5; border-right: 1px solid #e0e0e0; }
.level-tag { padding: 14px 12px; font-size: 11px; color: #999; text-align: center; letter-spacing: 0.05em; display:flex;align-items:center;justify-content:center;}
.level.l5 { border-color: #C9A84C; }
.level.l5 .level-n { background: #fffaee; color: #C9A84C; }
.level.l5 .level-name { color: #001542; font-size: 15px; }
.level.l5 .level-desc { color: #333; }
.level.l5 .level-tag { color: #C9A84C; font-weight: 700; }
.spoke-hdr { grid-template-columns: 130px 90px 1fr; }
.spoke-row { display: grid; grid-template-columns: 130px 90px 1fr; border-top: 1px solid #e0e0e0; align-items: start; }
.spoke-token { padding: 12px 14px; font-family: monospace; font-size: 13px; color: #0088D1; border-right: 1px solid #e0e0e0; }
.spoke-req { padding: 12px 14px; font-size: 12px; color: #888; text-align: center; border-right: 1px solid #e0e0e0; }
.spoke-req.yes { color: #1a8a4a; font-weight: 700; }
.spoke-desc { padding: 12px 14px; font-size: 13px; color: #444; line-height: 1.5; }
.cmmi-hdr { grid-template-columns: 1fr 1fr; }
.cmmi-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e0e0e0; align-items: start; }
.cmmi-practice { padding: 12px 14px; font-size: 13px; font-weight: 600; color: #001542; border-right: 1px solid #e0e0e0; }
.cmmi-satisfaction { padding: 12px 14px; font-size: 13px; color: #444; line-height: 1.5; }
.matrix-hdr { grid-template-columns: 140px 1fr 1fr; }
.matrix-row { display: grid; grid-template-columns: 140px 1fr 1fr; border-top: 1px solid #e0e0e0; }
.matrix-cell { padding: 12px 14px; font-size: 13px; color: #444; line-height: 1.55; border-right: 1px solid #e0e0e0; }
.matrix-cell:first-child { font-weight: 700; color: #001542; }
.checklist { border: 1px solid #e0e0e0; border-radius: 4px; padding: 1rem 1.25rem; margin: 1.5rem 0; background: #f9fafb; }
.checklist li { list-style: square; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2rem; }
.btn-primary { background: #001542; color: #ffffff; padding: 12px 28px; border-radius: 4px; font-size: 14px; font-weight: 700; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: #002875; text-decoration: none; }
.btn-secondary { background: #ffffff; color: #001542; padding: 12px 28px; border-radius: 4px; font-size: 14px; font-weight: 700; text-decoration: none; border: 1.5px solid #001542; display: inline-block; }
.btn-secondary:hover { background: #f5f7fa; text-decoration: none; }
hr.divider { border: none; border-top: 1px solid #e8ecf0; margin: 2.5rem 0; }
.meta { font-size: 12px; color: #999; margin-top: 3rem; line-height: 1.9; }
code { font-family: Consolas, Monaco, monospace; color: #001542; background: #f5f7fa; padding: 0.08rem 0.25rem; border-radius: 3px; }
@media(max-width:760px){
  h1 { font-size: 34px; }
  .inv-hdr,.inv-row,.cmmi-hdr,.cmmi-row{ grid-template-columns:1fr; }
  .inv-name,.cmmi-practice{ border-right:none; border-bottom:1px solid #e0e0e0; }
  .level{ grid-template-columns:48px 1fr; }
  .level-desc,.level-tag{ grid-column: 2 / 3; border-right: none; border-top: 1px solid #e0e0e0; }
  .spoke-hdr,.spoke-row{ grid-template-columns:120px 1fr; }
  .spoke-req{ display:none; }
  .matrix-hdr,.matrix-row{ grid-template-columns:1fr; }
  .matrix-cell{ border-right:none; border-bottom:1px solid #e0e0e0; }
}
