/* docs.ettingertech.com: the Legal Tech Academy look, a little brighter. */
body { font-family: Manrope, sans-serif; }   /* the website sets this in WordPress's own styles */
.dl {
  --bg: #1d2436; --panel: #283149; --panel-2: #323c58; --line: #3f4b6c; --text: #fff; --soft: #c4cde2;
  --blue: #2563eb; --blue-light: #7ea6ff;
  background: var(--bg); color: var(--text); min-height: 72vh; padding: 20px 20px 64px;
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; box-sizing: border-box;
}
.dl *, .dl-layer * { box-sizing: border-box; }
.dl-inner { max-width: 1400px; margin: 0 auto; }
.dl-loading, .dl-message { max-width: 520px; margin: 60px auto; text-align: center; color: var(--soft); font-size: 16px; }
.dl-message h2 { color: #fff; margin: 0 0 8px; font-size: 24px; }
.dl-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 6px 0 18px; }
.dl-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.dl-title span { color: var(--blue-light); }
.dl-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-search { background: var(--panel); border: 1px solid var(--line); color: #fff; font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 8px; width: 220px; }
.dl-search::placeholder { color: var(--soft); }
.dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--blue-light); background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; cursor: pointer; text-transform: uppercase; }
.dl-btn:hover { background: var(--panel-2); }
.dl-btn.solid { background: #fff; color: #111; border-color: #fff; }
.dl-btn.solid:hover { background: #dfe7ff; }
.dl-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dl-btn:focus-visible, .dl-row:focus-visible, .dl-search:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dl-finder { display: flex; height: min(68vh, 680px); min-height: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; overflow-y: hidden; box-shadow: 0 12px 34px rgb(0 0 0 / 0.25); }
.dl-col { flex: 0 0 290px; display: flex; flex-direction: column; border-right: 1px solid var(--line); min-width: 0; }
.dl-col.grow { flex: 1 0 290px; border-right: 0; }
.dl-col-head { display: none; }
.dl-list { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.dl-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; min-height: 40px; background: none; border: 0; border-radius: 8px; color: #fff; font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.dl-row:hover { background: var(--panel-2); }
.dl-row.on { background: var(--blue); }
.dl-row-ico { flex: none; font-size: 17px; }
.dl-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-row-side { flex: none; color: var(--soft); font-size: 12px; }
.dl-row.on .dl-row-side { color: #fff; }
.dl-chev { flex: none; color: var(--soft); font-size: 18px; line-height: 1; }
.dl-row.on .dl-chev { color: #fff; }
.dl-col-foot { padding: 8px; border-top: 1px solid var(--line); }
.dl-col-foot .dl-btn { width: 100%; font-size: 12px; }
.dl-empty { padding: 18px 12px; color: var(--soft); font-size: 14px; }
.dl-detail { flex: 1 0 320px; padding: 26px 22px; overflow-y: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dl-detail-ico { font-size: 56px; line-height: 1; }
.dl-detail h2 { margin: 0; color: #fff; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.dl-detail-meta { color: var(--soft); font-size: 13px; }
.dl-detail-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.dl-note { color: var(--soft); font-size: 13px; }
.dl-linked { margin-top: 10px; color: var(--soft); font-size: 13px; }
/* layers: preview, pop-ups, toast */
.dl-layer { position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgb(6 10 20 / 0.72); color: #fff; font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.dl-card { width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; background: #283149; border: 1px solid #3f4b6c; border-radius: 14px; padding: 22px; }
.dl-card h2 { margin: 0 0 8px; color: #fff; font-size: 20px; }
.dl-card p { margin: 0 0 14px; color: #c4cde2; font-size: 14px; line-height: 1.5; }
.dl-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: #fff; }
.dl-field input { background: #1d2436; border: 1px solid #3f4b6c; border-radius: 8px; color: #fff; font: inherit; font-size: 16px; font-weight: 400; padding: 10px 12px; }
.dl-err { color: #ffb4b4; font-size: 13px; margin: 0 0 10px; }
.dl-card-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dl-pick { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid #3f4b6c; border-radius: 8px; margin-bottom: 8px; font-size: 14px; cursor: pointer; overflow-wrap: anywhere; }
.dl-pick input { width: 18px; height: 18px; flex: none; }
.dl-pick small { display: block; color: #c4cde2; font-size: 12px; }
.dl-viewer { width: 100%; max-width: 1100px; height: 88vh; display: flex; flex-direction: column; background: #1d2436; border: 1px solid #3f4b6c; border-radius: 14px; overflow: hidden; }
.dl-viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #3f4b6c; }
.dl-viewer-bar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.dl-viewer-body { flex: 1; min-height: 0; background: #111; display: flex; align-items: center; justify-content: center; }
.dl-viewer-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.dl-viewer-body img, .dl-viewer-body video { max-width: 100%; max-height: 100%; }
.dl-viewer-body p { color: #c4cde2; padding: 20px; text-align: center; }
.dl-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1000001; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 10px; background: #fff; color: #111; font-family: Manrope, Inter, sans-serif; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); }
/* Phones: feels like an app. One screen at a time, large rows, and a back button. */
@media (max-width: 760px) {
  .dl { padding: 12px 0 40px; }
  .dl-top { padding: 4px 16px 12px; }
  .dl-title { font-size: 19px; }
  .dl-actions, .dl-search { width: 100%; }
  .dl-actions .dl-btn { flex: 1; }
  .dl-finder { display: block; height: auto; min-height: 60vh; border-radius: 0; border-left: 0; border-right: 0; overflow: hidden; }
  .dl-col, .dl-detail { display: none; }
  .dl-finder > :last-child { display: flex; flex-direction: column; animation: dl-in 0.18s ease-out; }
  .dl-col-head { display: flex; align-items: center; gap: 6px; position: sticky; top: 0; padding: 8px 10px; min-height: 52px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-weight: 800; font-size: 16px; }
  .dl-col-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dl-back { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 8px; border: 0; background: none; color: var(--blue-light); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
  .dl-list { padding: 0; gap: 0; }
  .dl-row { min-height: 58px; padding: 12px 16px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .dl-row.on { background: none; }
  .dl-detail { padding: 28px 18px; }
  .dl-detail-btns { width: 100%; flex-direction: column; }
  .dl-detail-btns .dl-btn { width: 100%; min-height: 50px; font-size: 14px; }
  .dl-col-foot { padding: 12px; }
  .dl-col-foot .dl-btn { min-height: 48px; }
  .dl-layer { padding: 0; align-items: flex-end; }
  .dl-card { max-width: none; border-radius: 16px 16px 0 0; border-width: 1px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .dl-card-btns .dl-btn { flex: 1; min-height: 48px; }
  .dl-viewer { height: 100%; max-width: none; border: 0; border-radius: 0; }
}
@keyframes dl-in { from { transform: translateX(14px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dl-finder > :last-child { animation: none; } }
