/* Ordinary Departures: the dictionary and the references pages.
   Everything is scoped under .odo so nothing leaks into the host page. */

.odo{position:fixed;inset:0;z-index:30;background:#000;color:var(--ink,#fff);
  font-family:var(--sans,Inter,system-ui,sans-serif);
  opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  outline:none;box-sizing:border-box}
.odo.on{opacity:1;visibility:visible}
.odo *{box-sizing:border-box}

/* top bar: the page name at the left, the close text at the right */
.odo .odo-bar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;
  height:40px;padding:0 3vw;background:#000;
  font-family:var(--mono,monospace);font-size:11px;line-height:1;color:var(--mute,#9a9ea7);letter-spacing:.02em}
.odo .odo-esc{cursor:pointer;user-select:none;padding:12px 0 12px 12px;outline:none}
.odo .odo-esc:hover,.odo .odo-esc:focus-visible{color:var(--soft,#c3c6cd)}

/* the page body */
.odo .odo-in{width:min(94vw,1500px);margin:0 auto;padding:56px 3vw}

/* ---- dictionary: one dense text */
.odo-dict .odo-text{font-family:var(--sans,Inter,system-ui,sans-serif);font-size:12px;line-height:1.65;color:#8a8e97;
  font-weight:400;text-align:left;overflow-wrap:anywhere}

/* letter marker, in flow: the letter, then a short rule */
.odo-dict .odo-l{display:inline;white-space:nowrap;margin:0 8px 0 10px}
.odo-dict .odo-text > .odo-l:first-child{margin-left:0}
.odo-dict .odo-lc{font-family:var(--sans,Inter,system-ui,sans-serif);font-size:12px;font-weight:600;color:#fff;vertical-align:baseline;margin-right:6px}
.odo-dict .odo-lr{display:inline-block;width:18px;height:1px;background:#4a4d55;vertical-align:middle}

/* the terms and the dots between them */
.odo-dict .odo-t{display:inline;white-space:nowrap;cursor:pointer;color:#8a8e97;outline:none;
  transition:color .12s}
.odo-dict .odo-t:hover,.odo-dict .odo-t:focus-visible{color:var(--soft,#c3c6cd)}
.odo-dict .odo-t.open{color:var(--ink,#fff)}
.odo-dict .odo-dot{color:var(--rule,#2a2c32);margin:0 6px;user-select:none}
.odo-dict .odo-d + .odo-dot{display:none}

/* an open definition: a block right under its term */
.odo-dict .odo-d{display:block;margin:6px 0 10px;max-width:60ch;color:var(--ink,#fff);font-size:12.5px;line-height:1.6;
  white-space:normal;cursor:default}
.odo-dict .odo-d .odo-m{display:block;font-family:var(--mono,monospace);font-size:11px;line-height:1.5;color:var(--mute,#9a9ea7);margin:0 0 3px}
.odo-dict .odo-d .odo-def{display:block;color:var(--ink,#fff)}
.odo-dict .odo-d .odo-s{display:block;font-family:var(--mono,monospace);font-size:11px;line-height:1.5;color:var(--mute,#9a9ea7);margin:3px 0 0}

/* ---- references: dense columns */
.odo-refs .odo-list{column-count:1;column-gap:40px}
@media (min-width:800px){.odo-refs .odo-list{column-count:2}}
@media (min-width:1200px){.odo-refs .odo-list{column-count:3}}
.odo-refs .odo-list p{break-inside:avoid;page-break-inside:avoid;-webkit-column-break-inside:avoid;
  font-family:var(--sans,Inter,system-ui,sans-serif);font-size:11px;line-height:1.5;color:#a9adb5;
  margin:0 0 6px;padding-left:28px;text-indent:-28px;overflow-wrap:anywhere}
.odo-refs .odo-list p b{font-weight:600;color:#d2d5da}
.odo-refs .odo-list .odo-n{display:inline-block;width:28px;font-family:var(--mono,monospace);font-size:10px;color:var(--mute,#9a9ea7);text-indent:0}
.odo-refs .odo-list p:last-child{margin-bottom:0}
/* a book with its cover: the cover at the left, the entry beside it */
.odo-refs .odo-list p.odo-bk{display:grid;grid-template-columns:44px 1fr;column-gap:10px;padding-left:0;text-indent:0;margin:0 0 10px;align-items:start}
.odo-refs .odo-list p.odo-bk img{display:block;width:44px;height:auto;border-radius:2px;background:#111;box-shadow:0 2px 8px rgba(0,0,0,.6)}
.odo-refs .odo-list p.odo-bk .odo-n{width:auto;margin-right:8px}
.odo-refs .odo-list p.odo-bk .odo-e{display:block;min-width:0}

/* small screens */
@media (max-width:640px){
  .odo .odo-bar{padding:0 16px}
  .odo .odo-in{width:auto;padding:40px 16px 80px}
}
