.dj-skip{
  position:absolute;
  left:-999px;
  top:8px;
  z-index:9999;
  padding:.25rem .5rem;
  background:#111827;
  color:#fff;
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
  font-size:.8rem;
}
.dj-skip:focus{left:10px;}

/* Keep custom styling minimal and let Minimal Mistakes handle typography/layout. */
.dj-nav-wrap{padding-bottom:0;}
.dj-page{color:#3f4a5c;}
.dj-page .page__title{font-size:1.45rem;line-height:1.25;font-weight:700;color:#3d4147;}
.dj-sub{max-width:36rem;margin:.35rem 0 0;color:#667085;font-size:.9rem;line-height:1.5;}
.dj-actions{display:flex;gap:.45rem;flex-wrap:wrap;margin:.75rem 0 .35rem;}
.dj-actions .btn{border-radius:4px;font-size:.72rem;line-height:1.2;padding:.45rem .7rem;}
.dj-status{margin:.45rem 0 0;color:#667085;font-size:.86rem;line-height:1.45;}
.dj-page a{overflow-wrap:anywhere;}

.dj-page .page__inner-wrap{
  background:transparent;
  border:0;
  border-radius:0;
  padding:1.2rem 0;
  box-shadow:none;
}

body[data-dj-embed="true"]{
  background:transparent;
}

body[data-dj-embed="true"] .dj-skip,
body[data-dj-embed="true"] .dj-nav-wrap,
body[data-dj-embed="true"] .dj-page > .page__inner-wrap > header,
body[data-dj-embed="true"] .dj-page .sidebar__right,
body[data-dj-embed="true"] .dj-page .dj-md{
  display:none;
}

body[data-dj-embed="true"] .initial-content #main{
  max-width:100%;
  padding:0;
}

body[data-dj-embed="true"] .dj-page{
  width:100%;
  padding:0;
  margin:0;
}

body[data-dj-embed="true"] .dj-page .page__inner-wrap{
  padding:.65rem .8rem .9rem;
}

body[data-dj-embed="true"] .dj-module{
  margin:.8rem 0 1rem;
}

body[data-dj-embed="true"] .dj-module:first-child{
  margin-top:0;
}

body[data-dj-embed="true"] .dj-entry{
  margin:.7rem 0 .9rem;
}

/* No sidebar layout: keep a single reading column. */
@media (min-width:64em){
  .dj-page{
    box-sizing:border-box;
    float:none;
    width:100%;
    padding-inline-end:320px;
  }

  .dj-page .sidebar__right{
    width:280px;
    margin-inline-end:-320px;
    padding-inline-start:1.25rem;
  }

  body[data-dj-embed="true"] .dj-page{
    padding-inline-end:0;
  }
}

@media (min-width:80em){
  .dj-page{
    padding-inline-end:340px;
  }

  .dj-page .sidebar__right{
    width:300px;
    margin-inline-end:-340px;
  }

  body[data-dj-embed="true"] .dj-page{
    padding-inline-end:0;
  }
}

/* Module headers: very light color cue (dot + subtle left rule). */
.dj-module{margin:1.5rem 0 1rem;padding:0;}
.dj-module-head{display:flex;align-items:baseline;gap:.5rem;margin:0 0 .65rem;padding:0 0 .3rem;border-bottom:1px solid rgba(0,0,0,.06);}
.dj-swatch{width:10px;height:10px;border-radius:999px;flex:0 0 auto;box-shadow:0 0 0 3px rgba(15,23,42,.05);}
.dj-module-title{margin:0;font-weight:650;font-size:.95rem;color:#344054;}
.dj-module-meta{margin-left:auto;color:#667085;font-size:.78rem;font-weight:600;white-space:nowrap;}

/* Byte entries: readable, not card-y. */
.dj-entry{border-left:2px solid rgba(0,0,0,.10);padding-left:.75rem;margin:1rem 0 1.25rem;}
.dj-entry-head{margin:0 0 .5rem;}
.dj-entry-title{margin:0;font-weight:650;font-size:.92rem;color:#344054;}
.dj-count{font-weight:600;color:#667085;font-size:.9em;}
.dj-entry-meta{margin-top:.1rem;color:#6b7280;font-size:.82rem;display:flex;gap:.4rem;align-items:center;flex-wrap:wrap;}
.dj-entry-context{font-weight:500;color:#6b7280;}

/* Q/A */
.dj-qa{margin:.35rem 0 0;display:flex;flex-direction:column;gap:.6rem;}
/* Prompt text should read like a journal, not a headline. */
/* Note: <dt> is bold by default (UA stylesheet). Force a calmer style. */
dt.dj-q{
  margin:0;
  font-weight:500 !important;
  font-size:.84rem !important;
  line-height:1.32;
  color:#4b5563;
}
.dj-a{
  margin:0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  /* Less "input box", more "journal note". */
  border-left:2px solid rgba(0,0,0,.10);
  border-radius:0;
  padding:.35rem .55rem;
  background:rgba(15,23,42,.02);
}
.dj-muted{color:#667085;}

/* Markdown-like journal view: rely on theme styling, keep meta subtle. */
.dj-md-like h2{
  margin:0 0 .5rem;
  font-size:1.95rem;
  line-height:1.2;
}

.dj-md-like h3{
  margin:0 0 .35rem;
  font-size:1.15rem;
  line-height:1.25;
}

.dj-md-like > p{
  margin:.15rem 0;
}

.dj-md-like-meta{
  color:#667085;
  font-size:.84rem;
  margin:.25rem 0 0;
}

.dj-md-like-prompt{
  margin-top:.75rem;
  padding:.7rem .85rem;
  border-radius:4px;
}

.dj-md-like-prompt h4{
  margin:0 0 .3rem;
  font-size:1rem;
  line-height:1.35;
}

.dj-md-like-prompt:nth-of-type(odd){
  background:rgba(15,23,42,.035);
}

.dj-md-like-prompt:nth-of-type(even){
  background:#fff;
}

.dj-md-like-prompt ul{
  margin:.15rem 0 0 1.1rem;
}

.dj-md-like-prompt li{
  margin:.15rem 0;
  line-height:1.45;
}

.dj-md-like hr{
  display:none;
}

/* Match Minimal Mistakes ToC more closely. */
.dj-page .sidebar__right .toc{
  color:#7a8288;
  background-color:#fff;
  border:1px solid rgb(241.7, 242.5, 243.1);
  border-radius:4px;
  box-shadow:0 1px 1px rgba(0, 0, 0, 0.125);
}

.dj-page .sidebar__right .toc header{margin:0;}

.dj-page .sidebar__right .toc .nav__title{
  margin:0;
  padding:.55rem .75rem;
  font-size:.75em;
  line-height:1.2;
  font-weight:700;
  background:#6f777d;
  color:#fff;
  border-start-start-radius:4px;
  border-start-end-radius:4px;
}

.dj-page .sidebar__right .toc .toc__menu{
  margin:0;
  padding:0;
  width:100%;
  list-style:none;
  font-size:.75em;
}

@media (min-width:64em){
  .dj-page .sidebar__right .toc .toc__menu{
    font-size:.6875em;
  }
}

.dj-page .sidebar__right .toc .toc__menu ul{margin:0;padding:0;}

.dj-page .sidebar__right .toc .toc__menu a{
  display:block;
  padding:.25rem .75rem;
  color:rgb(99.8, 103, 105.4);
  font-weight:700;
  line-height:1.5;
  text-decoration:none;
  border-bottom:1px solid rgb(241.7, 242.5, 243.1);
}

.dj-page .sidebar__right .toc .toc__menu li li a{
  padding-inline-start:1.25rem;
  font-weight:400;
}

.dj-page .sidebar__right .toc .toc__menu a:hover{
  color:#343a40;
}

/* Markdown-like single-byte reading view. */
.dj-md-doc{
  position:relative;
  margin:1.4rem 0 2rem;
  padding:0;
  color:#3f4a5c;
  background:#fdfefe;
  border:1px solid rgba(15,23,42,.12);
  border-top:4px solid rgba(114,122,130,.55);
  border-radius:6px;
  box-shadow:0 2px 10px rgba(15,23,42,.035);
  scroll-margin-top:1rem;
}
.dj-md-doc + .dj-md-doc{margin-top:2.35rem;}
.dj-md-doc > summary{list-style:none;}
.dj-md-doc > summary::-webkit-details-marker{display:none;}
.dj-byte-summary{
  cursor:pointer;
  display:grid;
  grid-template-columns:1fr auto;
  gap:.35rem 1rem;
  align-items:center;
  padding:1rem 1.05rem .85rem;
}
.dj-byte-summary::before{
  content:"▾";
  grid-column:2;
  grid-row:1 / span 2;
  color:#667085;
  font-size:.76rem;
  transform:translateY(.1rem);
}
.dj-md-doc:not([open]) .dj-byte-summary::before{content:"▸";}
.dj-byte-kicker{
  color:#667085;
  font-size:.62rem;
  font-weight:700;
  letter-spacing:0;
  text-transform:uppercase;
}
.dj-byte-summary-meta{
  color:#667085;
  font-size:.72rem;
  font-weight:650;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:.45rem;
  white-space:nowrap;
}
.dj-byte-body{
  padding:0 1.05rem 1.1rem;
  border-top:1px solid rgba(15,23,42,.07);
}
.dj-md-doc h1,
.dj-md-doc h2,
.dj-md-doc h3{
  letter-spacing:0;
}
.dj-md-title{
  margin:0 0 .25rem;
  font-size:1.35rem;
  line-height:1.25;
  font-weight:700;
  color:#344054;
}
.dj-byte-summary .dj-md-title{margin:0;display:block;}
.dj-md-module{
  margin:1rem 0 1.25rem;
  padding:0 0 1rem;
  border-bottom:1px solid rgba(15,23,42,.10);
}
.dj-md-module h2{
  margin:0 0 .55rem;
  font-size:.95rem;
  font-weight:650;
  color:#344054;
}
.dj-md-module p{
  margin:.15rem 0;
  font-size:.84rem;
  line-height:1.45;
}
.dj-md-module strong,
.dj-md-prompt strong{
  color:#1f2937;
  font-weight:650;
}
.dj-md-prompt{
  margin:1rem 0 1.15rem;
  padding:.85rem 0 1rem;
  border-bottom:1px solid rgba(15,23,42,.08);
  scroll-margin-top:1rem;
}
.dj-md-prompt h3{
  margin:0 0 .45rem;
  font-size:.88rem;
  line-height:1.35;
  font-weight:650;
  color:#334155;
}
.dj-md-prompt ul{
  margin:.25rem 0 0 1rem;
  padding:0;
}
.dj-md-prompt li{
  margin:.3rem 0;
  font-size:.84rem;
  line-height:1.5;
}

@media (max-width:63.9375em){
  .dj-page .page__inner-wrap{
    padding:.85rem 0;
  }

  .dj-page .sidebar__right{
    margin:.85rem 0 1.1rem;
    padding:0;
  }

  .dj-page .sidebar__right .toc .toc__menu{
    max-height:38vh;
    overflow:auto;
  }

  .dj-md-doc{
    margin:1rem 0 1.35rem;
  }
}

@media (max-width:42em){
  .dj-page .page__title{
    font-size:1.25rem;
  }
  .dj-actions .btn{
    flex:1 1 auto;
    min-width:min(9.5rem, 100%);
  }
  .dj-byte-summary{
    grid-template-columns:1fr;
    padding:.85rem .8rem .75rem;
  }
  .dj-byte-summary::before{
    position:absolute;
    right:.8rem;
    top:.85rem;
    grid-column:auto;
    grid-row:auto;
  }
  .dj-byte-summary-meta{
    white-space:normal;
    justify-content:flex-start;
  }
  .dj-byte-body{
    padding:0 .8rem .9rem;
  }
  .dj-md-title{
    font-size:1.12rem;
    padding-right:1.25rem;
  }
}

/* Markdown export (sidebar) */
.dj-md{margin:1rem 0 1.25rem;border:1px solid rgba(15,23,42,.10);border-radius:6px;padding:.6rem .75rem;background:#fff;}
.dj-md summary{cursor:pointer;color:#667085;font-size:.74rem;font-weight:650;line-height:1.35;}
.dj-md-text{width:100%;min-height:180px;border:1px solid rgba(0,0,0,.12);border-radius:8px;padding:.5rem .6rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:.8rem;line-height:1.35;background:#fff;}

@media (prefers-color-scheme: dark){
  .dj-page{color:#d6deea;}
  .dj-page .page__title,.dj-md-title,.dj-module-title,.dj-entry-title,.dj-md-module h2{color:#eef2f7;}
  .dj-sub,.dj-status,.dj-entry-meta,.dj-muted{color:#cbd5e1;}
  .dj-page .page__inner-wrap{
    background:#020617;
    border-color:rgba(148,163,184,.25);
    box-shadow:0 10px 26px rgba(0,0,0,.55);
  }
  .dj-page .sidebar__right .toc{
    border-color:rgba(148,163,184,.25);
  }
  .dj-page .sidebar__right .toc .nav__title{
    background:#475569;
    color:#f8fafc;
  }
  .dj-page .sidebar__right .toc .toc__menu a{
    color:#e2e8f0;
    border-bottom-color:rgba(148,163,184,.18);
  }
  .dj-page .sidebar__right .toc .toc__menu li li a{
    color:#cbd5e1;
  }
  .dj-page .sidebar__right .toc .toc__menu a:hover{
    background:rgba(148,163,184,.12);
    color:#f8fafc;
  }
  .dj-md-like-prompt:nth-of-type(odd){
    background:rgba(148,163,184,.10);
  }
  .dj-md-like-prompt:nth-of-type(even){
    background:transparent;
  }
  dt.dj-q{color:#e2e8f0;}
  .dj-module-head{border-bottom-color:rgba(148,163,184,.2);}
  .dj-swatch{box-shadow:0 0 0 3px rgba(148,163,184,.25);}
  .dj-entry{border-left-color:rgba(148,163,184,.35);}
  .dj-a{background:rgba(15,23,42,.65);border-left-color:rgba(148,163,184,.35);color:#e2e8f0;}
  .dj-md-doc{color:#e2e8f0;background:#0f172a;border-color:rgba(148,163,184,.25);border-top-color:rgba(148,163,184,.55);box-shadow:none;}
  .dj-md-doc::before{color:#cbd5e1;}
  .dj-md-module{border-bottom-color:rgba(148,163,184,.25);}
  .dj-md-module strong,
  .dj-md-prompt strong{color:#f8fafc;}
  .dj-md-prompt{border-bottom-color:rgba(148,163,184,.22);}
  .dj-md-prompt h3{color:#e2e8f0;}
  .dj-md{background:#020617;border-color:rgba(148,163,184,.22);}
  .dj-md summary{color:#cbd5e1;}
  .dj-md-text{background:rgba(15,23,42,.9);border-color:rgba(148,163,184,.25);color:#e2e8f0;}
}

@media print{
  @page{
    margin:0.6in;
  }

  body,
  .dj-page,
  .dj-page .page__inner-wrap,
  .dj-md-like,
  .dj-md-like h2,
  .dj-md-like h3,
  .dj-md-like h4{
    color:#000 !important;
    background:#fff !important;
    box-shadow:none !important;
  }

  .dj-skip,
  .dj-nav-wrap,
  .dj-actions,
  .dj-page .sidebar__right,
  .dj-page .dj-md{
    display:none !important;
  }

  .initial-content,
  #main,
  .dj-page,
  .dj-page .page__inner-wrap,
  .dj-content,
  #dj-content{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    float:none !important;
  }

  .dj-page{
    padding-inline-end:0 !important;
  }

  .dj-page a,
  .dj-page a:visited{
    color:#000 !important;
    text-decoration:none !important;
  }

  .dj-page a[href]::after{
    content:"" !important;
  }

  .dj-sub{
    color:#000 !important;
    max-width:none;
  }

  .dj-md-like-meta{
    margin-top:0;
    color:#000 !important;
  }

  .dj-md-like-meta .tj-progress-resume{
    display:none !important;
  }

  .dj-md-like,
  .dj-md-like-prompt{
    break-inside:avoid;
    page-break-inside:avoid;
  }

  .dj-md-like hr{
    border:0;
    border-top:1px solid #bbb;
    margin:1rem 0;
  }
}
