/* The glass Menu sheet, shared by every page. Built from nav-menu.html by _build/make_site.py. */
.dk-menu[aria-expanded="true"] { background: rgba(255, 245, 238, .24); }
.dk-menu[aria-expanded="true"] i { width: 12px; height: 12px; border: 0; background:
  linear-gradient(45deg, transparent calc(50% - .7px), #fff calc(50% - .7px), #fff calc(50% + .7px), transparent calc(50% + .7px)),
  linear-gradient(-45deg, transparent calc(50% - .7px), #fff calc(50% - .7px), #fff calc(50% + .7px), transparent calc(50% + .7px)); }
body.nm-open { overflow: hidden; }
.dk-head { z-index: 50; }
/* Scrim and sheet */
.nm-scrim { position: fixed; inset: 0; z-index: 44; background: rgba(9, 7, 12, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.nm-sheet { position: fixed; z-index: 46; top: 82px; left: 16px; right: 16px; max-height: calc(100vh - 98px); overflow: auto; border-radius: 22px;
  background: linear-gradient(180deg, rgba(52, 34, 52, .74), rgba(22, 15, 26, .88) 60%, rgba(18, 13, 22, .92)); border: 1px solid rgba(255, 240, 230, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 40px 100px rgba(0, 0, 0, .5);
  backdrop-filter: blur(30px) saturate(1.25); -webkit-backdrop-filter: blur(30px) saturate(1.25); }
.nm-sheet[hidden], .nm-scrim[hidden] { display: none; }
.nm-in { padding: 30px 48px 22px; }

/* Search and quick tasks */
.nm-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: center; }
.nm-field { min-height: 62px; border-radius: 14px; padding: 0 14px 0 20px; gap: 14px; }
.nm-field svg { flex: none; color: rgba(246, 239, 233, .8); }
.nm-field input { font-size: 19px; font-weight: 300; }
.nm-field input::placeholder { color: rgba(246, 239, 233, .55); }
.nm-field:focus-within { border-color: rgba(255, 214, 168, .6); box-shadow: 0 0 0 3px rgba(255, 214, 168, .12); }
.nm-field button { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--cream); color: #1a1218; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.nm-tasks { display: flex; align-items: center; gap: 8px; }
.nm-tasks .dk-mono { margin-right: 8px; }
.nm-tasks a { min-height: 44px; padding: 0 16px; font-size: 15px; color: var(--ink); text-decoration: none; }
.nm-tasks a:hover { background: rgba(255, 236, 220, .12); }

.nm-rule { height: 1px; background: rgba(255, 222, 196, .12); margin: 26px 0 24px; }

/* Six groups */
.nm-cols { display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; column-gap: 20px; }
.nm-h { margin-bottom: 10px; }
.nm-ht { display: flex; align-items: center; gap: 10px; min-height: 24px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 226, 200, .7); }
.nm-ht::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px 2px var(--glow-soft); flex: none; }
.nm-acc { display: none; }
.nm-two { display: grid; grid-template-columns: auto auto; column-gap: 34px; }
.nm-sub { font-size: 13px; font-weight: 500; color: var(--faint); min-height: 28px; display: flex; align-items: center; letter-spacing: .01em; white-space: nowrap; }
.nm-g a { display: flex; align-items: center; min-height: 44px; padding: 4px 10px; margin: 0 -10px; border-radius: 10px; color: rgba(246, 239, 233, .9); text-decoration: none; font-size: 14.5px; line-height: 1.3; white-space: nowrap; }
.nm-g a:hover { background: rgba(255, 236, 220, .08); color: var(--ink); }
.nm-g a.nm-all { color: var(--glow); font-size: 14px; gap: 8px; }
.nm-g a.nm-all::after { content: "→"; }
.nm-alls { display: flex; gap: 24px; }

/* Everything that used to crowd the header */
.nm-also { display: flex; flex-wrap: wrap; align-items: center; column-gap: 2px; }
.nm-also .dk-mono { margin-right: 14px; }
.nm-also a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; border-radius: 10px; color: var(--dim); text-decoration: none; font-size: 14.5px; }
.nm-also a:hover { color: var(--ink); background: rgba(255, 236, 220, .08); }

/* Announcements and display settings */
.nm-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 222, 196, .12); }
.nm-ann { display: flex; align-items: center; gap: 14px; min-height: 44px; min-width: 0; color: var(--ink); text-decoration: none; font-size: 15px; }
.nm-ann .dk-mono { color: rgba(255, 226, 200, .7); }
.nm-ann .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-ann .m { color: var(--dim); white-space: nowrap; }
.nm-ann:hover .t { text-decoration: underline; text-decoration-color: rgba(255, 214, 168, .5); }
.nm-disp { display: flex; align-items: center; gap: 10px; flex: none; }
.nm-disp > .dk-mono { margin-right: 6px; }
.nm-seg { display: flex; padding: 3px; border-radius: 12px; border: 1px solid rgba(255, 240, 230, .16); background: rgba(255, 240, 232, .04); }
.nm-seg button { width: 44px; height: 38px; border: 0; border-radius: 9px; background: none; color: var(--dim); cursor: pointer; line-height: 1; }
.nm-seg button[aria-pressed="true"] { background: rgba(255, 236, 220, .18); color: var(--ink); }
.nm-sw { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 12px; border: 1px solid rgba(255, 240, 230, .16); background: rgba(255, 240, 232, .04); color: var(--dim); font-size: 14px; cursor: pointer; }
.nm-sw i { position: relative; width: 28px; height: 16px; border-radius: 9px; background: rgba(255, 240, 230, .18); flex: none; transition: background .15s; }
.nm-sw i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--cream); transition: transform .15s; }
.nm-sw[aria-checked="true"] { color: var(--ink); border-color: rgba(255, 236, 220, .4); }
.nm-sw[aria-checked="true"] i { background: var(--glow); }
.nm-sw[aria-checked="true"] i::after { transform: translateX(12px); background: #1a1218; }

/* Display settings at work */
html.nm-t1 body { zoom: .92; }
html.nm-t3 body { zoom: 1.14; }
html.nm-hc { --dim: rgba(246, 239, 233, .92); --faint: rgba(246, 239, 233, .82); }
html.nm-hc .nm-sheet { background: #0d0a10; }
html.nm-ul a { text-decoration: underline !important; }
html.nm-rm *, html.nm-rm *::before, html.nm-rm *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }

/* Phone: the same menu as a full-screen glass sheet, groups as accordion rows */
@media (max-width: 860px) {
  .nm-scrim { display: none; }
  .nm-sheet { position: fixed; top: 0; left: 0; right: 0; bottom: 0; max-height: none; overflow: auto; -webkit-overflow-scrolling: touch; border-radius: 0; border: 0; box-shadow: none;
    background: linear-gradient(180deg, rgba(36, 24, 40, .72) 0, rgba(18, 13, 22, .93) 620px, #0e0a12 1100px); }
  .nm-in { padding: 84px 16px 48px; }
  .nm-top { grid-template-columns: 1fr; gap: 14px; }
  .nm-field { min-height: 56px; padding: 0 8px 0 16px; }
  .nm-field input { font-size: 17px; }
  .nm-field button { display: none; }
  .nm-field kbd { display: none; }
  .nm-tasks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .nm-tasks .dk-mono { display: none; }
  .nm-tasks a { justify-content: center; padding: 0 4px; min-height: 48px; font-size: 14px; }
  .nm-rule { margin: 20px 0 0; }
  .nm-cols { display: block; }
  .nm-g { border-bottom: 1px solid rgba(255, 222, 196, .12); }
  .nm-h { margin: 0; }
  .nm-ht { display: none; }
  .nm-acc { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 66px; padding: 0 4px 0 2px; border: 0; background: none; color: var(--ink); font-size: 24px; font-weight: 300; letter-spacing: -.02em; cursor: pointer; text-align: left; }
  .nm-acc i { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 240, 230, .2); flex: none; }
  .nm-acc i::before, .nm-acc i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.3px; margin: -.65px 0 0 -6px; background: var(--ink); transition: transform .2s; }
  .nm-acc i::after { transform: rotate(90deg); }
  .nm-acc[aria-expanded="true"] i { background: rgba(255, 236, 220, .14); border-color: rgba(255, 236, 220, .4); }
  .nm-acc[aria-expanded="true"] i::after { transform: rotate(0deg); }
  .nm-acc[aria-expanded="true"] { color: #fff; }
  .nm-gl[hidden] { display: none; }
  .nm-gl { padding: 0 2px 18px; }
  .nm-two { display: block; }
  .nm-two > div + div { margin-top: 14px; }
  .nm-sub { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 226, 200, .62); min-height: 32px; }
  .nm-g a { min-height: 48px; font-size: 17px; margin: 0 -8px; padding: 4px 8px; white-space: normal; }
  .nm-g a.nm-all { font-size: 16px; }
  .nm-alls { flex-direction: column; gap: 0; margin-top: 6px; }
  .nm-foot { flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; border: 0; }
  .nm-ann { order: -1; flex-wrap: wrap; row-gap: 2px; column-gap: 12px; padding: 18px 0; border-bottom: 1px solid rgba(255, 222, 196, .12); }
  .nm-ann .t { white-space: normal; flex-basis: 100%; padding-left: 20px; font-size: 16px; }
  .nm-ann .m { padding-left: 20px; }
  .nm-disp { flex-wrap: wrap; gap: 10px; padding: 22px 0 6px; }
  .nm-disp > .dk-mono { flex-basis: 100%; margin: 0 0 4px; }
  .nm-sw { flex: 1 1 150px; }
  .nm-also { display: grid; grid-template-columns: 1fr 1fr; padding: 22px 0 0; margin-top: 18px; border-top: 1px solid rgba(255, 222, 196, .12); }
  .nm-also .dk-mono { grid-column: 1 / -1; margin: 0 0 6px; }
  .nm-also a { padding: 0 2px; font-size: 16px; min-height: 48px; }
}
/* Laptops narrower than the six-column menu: tighter columns from 1181 to 1400 px, three columns from 861 to 1180 px */
@media (min-width: 861px) and (max-width: 1400px) {
  .nm-in { padding: 28px 32px 20px; }
  .nm-cols { column-gap: 14px; }
  .nm-two { column-gap: 18px; }
  .nm-g a { font-size: 14px; }
  .nm-tasks a { padding: 0 13px; font-size: 14px; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .nm-top { grid-template-columns: 1fr; gap: 16px; }
  .nm-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; column-gap: 28px; }
  .nm-g.acad { grid-column: span 2; }
  .nm-g a { white-space: normal; }
  .nm-foot { flex-wrap: wrap; }
}

