html { scroll-behavior: smooth; scroll-padding-top: 84px }
    body { background: #050505; color: #fff; font-family: Manrope, Arial, sans-serif; overflow-x: hidden }
    .container-x { width: min(1360px, calc(100% - 96px)); margin: 0 auto }
    @media (max-width: 1279px) { .container-x { width: calc(100% - 56px) } }
    @media (max-width: 767px) { .container-x { width: calc(100% - 40px) } }
    .mono { font-family: "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase }
    .section { padding: 88px 0 }
    @media (max-width: 767px) { .section { padding: 60px 0 } }
    .h1 { font-size: clamp(36px, 4.3vw, 58px); line-height: 1.07; letter-spacing: -.035em }
    .h2 { font-size: clamp(27px, 2.8vw, 38px); line-height: 1.16; letter-spacing: -.03em }
    .grid-bg {
      background-image: linear-gradient(rgba(36, 36, 36, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 36, 36, .5) 1px, transparent 1px);
      background-size: 48px 48px
    }
    .cross { position: absolute; width: 17px; height: 17px; opacity: .55; pointer-events: none }
    .cross:before, .cross:after { content: ""; position: absolute; background: #666 }
    .cross:before { width: 17px; height: 1px; top: 8px; left: 0 }
    .cross:after { width: 1px; height: 17px; left: 8px; top: 0 }
    .corners { position: relative }
    .corners:before, .corners:after { content: ""; position: absolute; width: 12px; height: 12px; border-color: #666; pointer-events: none }
    .corners:before { left: -1px; top: -1px; border-left: 1px solid; border-top: 1px solid }
    .corners:after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid }
    .ruler { height: 6px; background-image: repeating-linear-gradient(90deg, #383838 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, #666 0 1px, transparent 1px 50px); background-size: auto 4px, auto 6px; background-repeat: repeat-x; background-position: bottom }
    .dashed { border-top: 1px dashed #383838 }
    *:focus-visible { outline: 1px solid #C6FF00; outline-offset: 2px }

    /* tree diagram */
    .tree-stem { width: 1px; height: 18px; background: #555; margin: 0 auto }
    .tree-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; position: relative; padding-top: 18px }
    .tree-row:before { content: ""; position: absolute; top: 0; height: 1px; background: #555; left: calc((100% - 24px) / 6); right: calc((100% - 24px) / 6) }
    .tree-row > * { position: relative }
    .tree-row > *:before { content: ""; position: absolute; top: -18px; left: 50%; width: 1px; height: 18px; background: #555 }
    .tree-row.down > *:after { content: ""; position: absolute; bottom: -18px; left: 50%; width: 1px; height: 18px; background: #555 }
    .tree-join { position: relative; height: 18px }
    .tree-join:before { content: ""; position: absolute; bottom: 0; height: 1px; background: #555; left: calc((100% - 24px) / 6); right: calc((100% - 24px) / 6) }

    /* selections: accent marks the active group / search term only */
    .group-btn { color: #A3A3A3; transition: border-color .15s, color .15s }
    .group-btn:hover:not(:disabled) { border-color: #383838; color: #fff }
    .group-btn[aria-pressed="true"] { border-color: #C6FF00; color: #fff; background: #0B0B0B }
    .group-btn[aria-pressed="true"] span { color: #C6FF00 }
    .group-btn:disabled { opacity: .4; cursor: not-allowed }
    .term-btn { transition: border-color .15s, color .15s }
    .term-btn:hover { border-color: #383838 }
    .term-btn[aria-pressed="true"] { border-color: #C6FF00; color: #fff }
    .node-btn[aria-pressed="true"] { border-color: #C6FF00; color: #fff; background: #111 }
    .node-btn[aria-pressed="true"] .node-dot { background: #C6FF00 }
    .page-btn[aria-current="page"] { border-color: #fff; color: #050505; background: #fff }
    .quick-btn[aria-pressed="true"] { border-color: #C6FF00; color: #fff }

    /* article card */
    .ins-card { transition: border-color .15s }
    .ins-card:hover, .ins-card:focus-within { border-color: #383838 }
    .ins-card .cta-arrow { display: inline-block; transition: transform .15s }
    .ins-card:hover .cta-arrow { transform: translateX(3px) }
    .viz .viz-a { stroke: #fff; transition: stroke .15s }
    .ins-card:hover .viz .viz-a, .ins-card:focus-within .viz .viz-a, .featured .viz-a { stroke: #C6FF00 }

    dialog#articleSheet { background: #0B0B0B; color: #fff; border: 1px solid #383838; padding: 0; width: min(880px, calc(100% - 32px)); max-height: calc(100vh - 48px) }
    dialog#articleSheet::backdrop { background: rgba(5, 5, 5, .78) }
    select { background-image: none }
    .scroll-x { overflow-x: auto; scrollbar-width: none }
    .scroll-x::-webkit-scrollbar { display: none }
    /* seven nav items need more room than the other pages' six */
    .desktop-nav-sm { display: none }
    @media (max-width: 1179px) {
      .desktop-nav { display: none !important }
      .desktop-nav-sm { display: flex !important }
    }
    #readProgress { transform-origin: 0 50%; transform: scaleX(0) }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto }
      *, *:before, *:after { transition: none !important; animation: none !important }
    }
