/* The Director landing (web/director_home.js): a short note and two scan-only columns above a pinned composer; the quiet page when Updates is Off or there is no Tube data. Rich answer parts below. */
.dx.is-empty.is-home .dx-main { justify-content:flex-start; padding-bottom:0; }
.dx.is-empty.is-home .dx-bar { display:none; }
.dx.is-empty.is-home:not(.is-quiet) .dx-scroll { flex:1; overflow:auto; padding:18px 40px 8px; }
.dx.is-empty.is-home:not(.is-quiet) .dx-foot { padding:12px 40px 14px; }
.dx.is-empty.is-home:not(.is-quiet) .dx-foot .dx-col { max-width:1000px; }
.dx.is-empty.is-home:not(.is-quiet) .dx-comp { min-height:0; border-radius:20px; padding:13px 12px 9px 18px; }
.dx.is-empty.is-home:not(.is-quiet) .dx-comp textarea { min-height:30px; }
.dx.is-empty.is-home:not(.is-quiet) .dx-quick { order:-1; justify-content:flex-start; margin-top:0; }
.dh-read.dx-hello { align-items:stretch; text-align:left; width:100%; max-width:1000px; margin:0 auto; display:block; }
.dh-load { padding-top:8px; }
/* quiet: the masthead stays at the top, composer and suggestions in the middle */
.dx.is-empty.is-quiet .dx-main { justify-content:flex-start; }
.dx.is-empty.is-quiet .dx-scroll { flex:none; overflow:visible; padding:18px 40px 0; }
.dx.is-empty.is-quiet .dx-foot { flex:1; justify-content:center; padding:0 40px 16vh; }
.dx.is-empty.is-quiet .dx-foot .dx-col { flex:none; }
.dx.is-empty.is-home:not(.is-off).is-quiet .dx-foot { flex:none; padding-top:18px; padding-bottom:18px; }
.dx.is-empty.is-home:not(.is-off).is-quiet .dx-main { justify-content:center; }
.dx.is-empty.is-home:not(.is-off).is-quiet .dx-scroll { padding-top:0; }
.dx.is-empty.is-home:not(.is-off).is-quiet .dh-mast { position:absolute; top:18px; left:40px; right:40px; max-width:1000px; }
.dh-hello { text-align:center; }
.dh-hello h1 { font-size:clamp(34px, 5.2vw, 52px); margin:0; }
.dh-sub { margin:10px 0 0; font-size:13.5px; }
.dx.is-empty.is-home .dx-prow-brand { display:none; }   /* the series switcher sits at the top of the page */
/* the masthead */
.dh-mast { display:flex; align-items:center; gap:12px; margin-bottom:14px; min-height:34px; }
.dh-tog { flex:none; background:transparent; border-color:var(--line); color:var(--cream-2); }
.dx.side-on .dh-tog { display:none; }
.dh-ser { position:relative; min-width:0; }
.dh-serb { display:inline-flex; align-items:center; gap:6px; height:34px; max-width:100%; padding:0 10px 0 13px; border-radius:999px; font:400 19px/1 var(--serif); letter-spacing:0; color:var(--cream); border:1px solid var(--line-2); background:rgba(241,232,218,.03); box-shadow:none; cursor:pointer; }
.dh-serb:hover { border-color:var(--line-3); background:rgba(241,232,218,.07); }
.dh-serb .ic { width:13px; height:13px; color:var(--cream-3); flex:none; }
.dh-ser1 { font:400 19px/1.2 var(--serif); color:var(--cream); min-width:0; }
.dh-serm { position:absolute; z-index:40; top:40px; left:0; width:260px; max-width:calc(100vw - 40px); max-height:50vh; overflow:auto; padding:6px; border-radius:14px; background:rgba(30,24,23,.98); border:1px solid var(--line-2); box-shadow:var(--shadow); }
.dh-serm button { display:flex; flex-direction:column; align-items:flex-start; gap:0; width:100%; height:auto; padding:8px 10px; border:0; border-radius:9px; background:none; color:var(--cream); white-space:normal; text-align:left; font-weight:550; font-size:13.5px; box-shadow:none; cursor:pointer; }
.dh-serm button:hover { background:rgba(241,232,218,.06); } .dh-serm button.on { background:var(--brass-wash); }
.dh-serm small { font-weight:450; color:var(--cream-3); font-size:11.5px; }
.dh-upd { margin-left:auto; display:inline-flex; align-items:center; gap:8px; font-size:12px; color:var(--cream-3); flex:none; }
.dh-upd .seg button { height:26px; padding:0 11px; font-size:12px; }
/* the note and its numbers */
.dh-note { font:400 54px/1.05 var(--serif); letter-spacing:-.01em; margin:10px 0 0; color:var(--cream); }
.dh-note em { color:var(--brass); font-style:italic; }
.dh-facts { display:flex; flex-wrap:wrap; gap:6px 24px; margin:12px 0 0; font-size:13px; color:var(--cream-3); }
.dh-facts b { font-weight:650; color:var(--cream); }
.dh-facts .d { font-weight:650; } .dh-facts .d.dn { color:var(--bad); } .dh-facts .d.up { color:var(--sage); }
/* the two columns */
.dh-cols { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:56px; margin-top:30px; border-top:1px solid var(--line-2); padding-top:14px; }
.dh-colh { font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--cream-3); font-weight:650; margin-bottom:4px; }
.dh-none { margin:10px 0 0; font-size:13.5px; }
.dh-moved, .dh-move { display:grid; align-items:center; gap:0 14px; padding:13px 0; border-bottom:1px solid var(--line); }
.dh-moved:last-of-type, .dh-move:last-of-type { border-bottom:0; }
.dh-moved { grid-template-columns:minmax(0, 1fr) auto minmax(84px, auto); }
.dh-move { grid-template-columns:34px 58px minmax(0, 1fr) auto; }
button.dh-kw { all:unset; box-sizing:border-box; cursor:pointer; display:flex; align-items:baseline; gap:7px; font:400 21px/1.2 var(--serif); color:var(--cream); min-width:0; border-radius:4px; overflow-wrap:anywhere; }
button.dh-kw .ic { width:11px; height:11px; color:var(--cream-3); flex:none; transition:transform var(--fast); opacity:.7; position:relative; top:1px; }
.open > button.dh-kw .ic, .open .dh-kwc button.dh-kw .ic { transform:rotate(90deg); }
button.dh-kw:hover { color:var(--brass); } button.dh-kw:focus-visible { outline:2px solid var(--brass); outline-offset:2px; }
.dh-chg { font-size:13px; font-weight:650; white-space:nowrap; font-variant-numeric:tabular-nums; }
.dh-chg.dn { color:var(--bad); } .dh-chg.up { color:var(--sage); }
.dh-act { justify-self:end; white-space:nowrap; }
.dh-why { display:none; grid-column:1 / -1; margin:8px 0 0; font-size:12.5px; color:var(--cream-3); line-height:1.35; align-items:center; justify-content:space-between; gap:14px; }
.dh-why span { min-width:0; } .dh-why svg { flex:none; }
.open > .dh-why { display:flex; }
.dh-day { font:400 19px/1 var(--serif); color:var(--cream-2); }
.dh-tag { font:650 10.5px var(--sans); letter-spacing:.12em; text-transform:uppercase; color:var(--brass); }
.dh-tag.defend { color:var(--amber); } .dh-tag.grow { color:var(--sage); }
.dh-kwc { min-width:0; display:flex; flex-direction:column; gap:1px; }
.dh-thumb { position:relative; aspect-ratio:16 / 9; border-radius:6px; border:1px solid var(--line-2); display:grid; place-items:center; font:italic 400 17px var(--serif); color:rgba(241,232,218,.72); background:linear-gradient(135deg, #2c1c19, #4A1519 62%, #1c1412); overflow:hidden; min-width:0; }
.dh-thumb.c1 { background:linear-gradient(135deg, #2c2318, #5a4526 62%, #1c1712); } .dh-thumb.c2 { background:linear-gradient(135deg, #1b2020, #2c3a34 62%, #141716); } .dh-thumb.c3 { background:linear-gradient(135deg, #231a24, #3f2436 62%, #17121a); }
.dh-thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.dh-go { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:14px 0 6px; }
.dh-go span { font-size:12.5px; color:var(--cream-3); }
.dh-chips-p { display:none; flex-wrap:wrap; gap:8px; margin-top:18px; }
.dh-chips-p:empty { display:none !important; }
#dhtip { position:fixed; z-index:90; pointer-events:none; background:rgba(30,24,23,.98); border:1px solid var(--line-2); border-radius:10px; padding:7px 10px; font-size:12px; color:var(--cream-2); box-shadow:var(--shadow); display:none; white-space:nowrap; }
#dhtip b { color:var(--cream); font-size:14px; font-weight:650; display:block; }
#dhtip.wrap { white-space:normal; max-width:300px; line-height:1.35; }
/* in a conversation: the back button sits beside the title */
.dx-bar .dh-back { order:1; } .dx-bar .dx-title { order:2; } .dx-bar .sp { order:3; }
/* the rich parts of an answer */
.dh-steps { border-left:2px solid var(--line-2); padding:2px 0 2px 12px; display:grid; gap:3px; font-size:12.5px; color:var(--cream-3); }
.dh-steps summary { cursor:pointer; color:var(--cream-2); font-weight:550; list-style:none; display:flex; gap:6px; align-items:center; }
.dh-steps summary::-webkit-details-marker { display:none; }
.dh-steps summary .ic { width:12px; height:12px; transition:transform var(--fast); } .dh-steps[open] summary .ic { transform:rotate(90deg); }
.dh-step { display:flex; gap:8px; align-items:baseline; margin-top:3px; }
.dh-step .ic { width:12px; height:12px; color:var(--sage); position:relative; top:2px; flex:none; }
.dh-step b { font-weight:550; color:var(--cream-2); } .dh-step.run b { color:var(--cream); }
.dh-step .spin { width:11px; height:11px; flex:none; position:relative; top:1px; }
.dx-md.dh-lead > p:first-child { font:400 27px/1.18 var(--serif); margin-top:2px; }
.dh-blk { border:1px solid var(--line); background:var(--ink-2); border-radius:14px; padding:13px 15px 12px; min-width:0; }
.dh-blk-h { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.dh-blk-h b { font-weight:600; font-size:13.5px; } .dh-blk-h span { font-size:12px; color:var(--cream-3); }
.dh-chart { position:relative; width:100%; touch-action:pan-y; } .dh-chart svg { display:block; width:100%; overflow:visible; }
.dh-rk { display:grid; grid-template-columns:18px minmax(0, 130px) minmax(0, 1fr) auto; gap:10px; align-items:center; padding:6px 0; font-size:13px; border-bottom:1px solid var(--line); }
.dh-rk:last-child { border-bottom:0; } .dh-rk .i { color:var(--cream-3); font-size:12px; } .dh-rk .n { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dh-rk .bar { height:8px; border-radius:0 4px 4px 0; background:#6E655D; min-width:2px; } .dh-rk.me .bar { background:var(--brass); } .dh-rk.me .n { font-weight:650; }
.dh-rk .v { font-variant-numeric:tabular-nums; white-space:nowrap; } .dh-rk .v small { color:var(--cream-3); font-size:11.5px; margin-left:6px; }
.dh-rng { display:grid; grid-template-columns:74px minmax(0, 1fr); gap:8px 12px; align-items:center; font-size:12.5px; }
.dh-rng .tr { position:relative; height:10px; background:rgba(241,232,218,.05); border-radius:4px; } .dh-rng .tr i { position:absolute; top:0; bottom:0; border-radius:4px; background:var(--brass); }
.dh-rng .ax { grid-column:2; display:flex; justify-content:space-between; font-size:11px; color:var(--cream-3); }
.dh-rngn { margin:8px 0 0; font-size:12.5px; }
@media (max-width:1180px) { .dx.is-empty.is-home:not(.is-quiet) .dx-scroll { padding:18px 24px 8px; } .dx.is-empty.is-home:not(.is-quiet) .dx-foot { padding:12px 24px 14px; } .dh-cols { gap:32px; } .dh-note { font-size:46px; } }
@media (max-width:1040px) { .dh-cols { grid-template-columns:minmax(0, 1fr); gap:22px; } }
@media (max-width:860px) {
  .dx.is-empty.is-home:not(.is-quiet) .dx-scroll { padding:14px 16px 8px; }
  .dx.is-empty.is-home:not(.is-quiet) .dx-foot { padding:6px 12px 86px; }
  .dx.is-empty.is-home:not(.is-quiet) #dsugg { display:none; }
  .dx.is-empty.is-home:not(.is-quiet) .dh-chips-p { display:flex; }
  .dx.is-empty.is-home:not(.is-quiet) .dx-comp { padding:8px 8px 8px 14px; border-radius:18px; display:flex; align-items:flex-end; gap:8px; }
  .dx.is-empty.is-home:not(.is-quiet) .dx-comp textarea { min-height:24px; font-size:16px; flex:1; min-width:0; }
  .dx.is-empty.is-home:not(.is-quiet) .dx-crow { margin:0; } .dx.is-empty.is-home:not(.is-quiet) .dx-det, .dx.is-empty.is-home:not(.is-quiet) .dx-sum { display:none; }
  .dx.is-empty.is-quiet .dx-scroll { padding:14px 16px 0; }
  .dx.is-empty.is-quiet .dx-foot { padding:0 14px 22vh; }
  .dx.is-empty.is-home:not(.is-off).is-quiet .dx-foot { padding:14px 14px 86px; }
  .dx.is-empty.is-home:not(.is-off).is-quiet .dh-mast { left:16px; right:16px; top:14px; }
  .dh-mast { flex-wrap:wrap; gap:8px; margin-bottom:10px; }
  .dh-tog { display:inline-flex !important; }
  .dh-upd { margin-left:0; width:100%; }
  .dh-note { font-size:36px; line-height:1.08; }
  .dh-facts { gap:4px 16px; margin-top:10px; font-size:12.5px; }
  .dh-cols { margin-top:18px; }
  button.dh-kw { font-size:18.5px; }
  .dh-moved { grid-template-columns:minmax(0, 1fr) auto auto; gap:0 10px; } .dh-chg { font-size:12.5px; }
  .dh-move { grid-template-columns:30px 48px minmax(0, 1fr) auto; gap:0 10px; } .dh-day { font-size:16px; } .dh-thumb { font-size:13px; }
  .dh-mact button { height:30px; min-height:30px; padding:0 10px; font-size:12px; }
  .dh-go { padding:12px 0 2px; }
  .dx-md.dh-lead > p:first-child { font-size:24px; }
  .dh-rk { grid-template-columns:16px minmax(0, 1fr) auto; } .dh-rk .bw { grid-column:2 / 4; order:9; }
  .dh-blk { padding:12px; }
}
@media (max-width:380px) {
  .dh-move { grid-template-columns:26px 40px minmax(0, 1fr); } .dh-mact { grid-column:3; justify-self:start; margin-top:4px; }
  .dh-moved { grid-template-columns:minmax(0, 1fr) auto; } .dh-moved .dh-act { grid-column:2; }
  .dh-note { font-size:32px; }
}
@media (prefers-reduced-motion:reduce) { .dh-steps summary .ic, button.dh-kw .ic { transition:none; } }
