#masthead .sidebar-menu > details.dj-menu {
  background: none;
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
  display: block;
  margin: 0 10px 0 20px;
  padding: 0;
  width: auto;
}
#masthead .sidebar-menu > .dj-menu + #mind-shop-sidebar-link { margin-block-start: -12px; }
.dj-menu > summary.mind-games-sidebar,
.dj-menu .dj-submenu a.mind-games-sidebar { margin: 0; }
.dj-menu > summary.mind-games-sidebar {
  color: #0c70c1;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  padding-inline: 36px;
  position: relative;
}
.dj-menu > summary.mind-games-sidebar:hover { color: #fff; }
.dj-menu > summary::-webkit-details-marker { display: none; }
.dj-menu > summary::after {
  color: #a6daef;
  content: "+";
  font-family: "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1;
  inset-inline-end: 13px;
  position: absolute;
}
.dj-menu[open] > summary::after { content: "−"; }
.dj-menu .dj-submenu { list-style: none; margin: 0; padding: 4px 0 0 20px; }
.dj-menu .dj-submenu li { margin: 0; padding: 0; }
.dj-menu .dj-submenu li + li { margin-block-start: 4px; }
.dj-menu .dj-submenu a.mind-games-sidebar {
  color: #a6daef;
  font-size: .875rem;
  min-height: 40px;
  text-decoration: none;
}
.dj-menu .dj-submenu a.mind-games-sidebar:hover { color: #fff; }
.dj-menu .dj-submenu a.mind-games-sidebar[aria-current="page"] {
  --mind-games-face: linear-gradient(#394c5d, #243342 52%, #19242f);
  color: #f4f9fd;
}
.dj-menu :focus-visible { outline: 2px solid #a6daef; outline-offset: 2px; }

.dj-standalone-nav {
  background: #151515;
  border-bottom: 1px solid #3c4c5d;
  color: #f6f8fa;
  font: 1rem/1.5 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  padding: .5rem max(1rem, calc((100% - 1120px) / 2));
}
.dj-standalone-nav .dj-menu { width: min(260px, 100%); }

@font-face {
  font-family: "Daily Journey Cinzel";
  src: url("../daily-mind-crossword/dist/assets/cinzel-bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}
.dj-page {
  --dj-paper: #f6f8fa;
  --dj-muted: #c1cbd5;
  --dj-accent: #a6daef;
  --dj-background: #0c1119;
  --dj-panel: #161e29;
  --dj-raised: #1c2837;
  --dj-line: #3c4c5d;
  --dj-serif: "Daily Journey Cinzel", Georgia, serif;
  background: linear-gradient(180deg, #090c13 70px, #111d2a 350px, var(--dj-background) 790px);
  color: var(--dj-paper);
  color-scheme: dark;
  font: 1rem/1.5 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
  padding-bottom: 2rem;
}
.dj-page *, .dj-page *::before, .dj-page *::after { box-sizing: border-box; }
.dj-page [hidden] { display: none !important; }
.dj-page :focus-visible { outline: 2px solid var(--dj-accent); outline-offset: 3px; }
.dj-page a { color: var(--dj-accent); }
.dj-shell { width: min(1120px, calc(100% - clamp(2rem, 7vw, 4rem))); margin-inline: auto; }
.dj-masthead { background: #151515; border-bottom: 1px solid var(--dj-line); }
.dj-header-inner { display: grid; grid-template-columns: 1fr auto; align-items: start; padding-block: 12px; gap: 0 .75rem; }
.dj-page .dj-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: clamp(.45rem, 2vw, .8rem);
  min-height: 44px;
  color: var(--dj-paper);
  text-decoration: none;
  font: 700 clamp(.95rem, 3vw, 1.12rem)/1.2 var(--dj-serif);
  letter-spacing: .035em;
}
.dj-brand img { display: block; }
.dj-help { text-align: end; }
.dj-help summary {
  border: 1px solid var(--dj-line);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .8rem;
  font-size: .88rem;
}
.dj-help summary::-webkit-details-marker { display: none; }
.dj-help[open] summary, .dj-help summary:hover { border-color: var(--dj-accent); }
.dj-help p { max-width: 48ch; margin: .75rem 0 .25rem; text-align: start; color: var(--dj-muted); }
.dj-hero { padding: clamp(1.7rem, 4vw, 3rem) 0 1.65rem; }
.dj-book {
  background: var(--dj-panel);
  border: 1px solid var(--dj-line);
  border-radius: 6px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  overflow-wrap: anywhere;
}
.dj-hero h1, .dj-story h2 {
  color: var(--dj-paper);
  font-family: var(--dj-serif);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  text-transform: none;
}
.dj-hero h1 { font-size: clamp(2rem, 5.6vw, 4.4rem); margin: 0 0 .55rem; }
.dj-intro { color: var(--dj-muted); font-size: 1rem; margin: 0; }
.dj-book label {
  color: var(--dj-paper);
  display: block;
  font-size: 1.1rem;
  font-weight: 650;
  margin-block-end: .55rem;
}
.dj-book textarea, .dj-book select {
  background: var(--dj-background);
  border: 1px solid #657689;
  border-radius: 4px;
  color: var(--dj-paper);
  font: inherit;
  margin-bottom: .75rem;
  padding: .7rem .8rem;
  width: 100%;
  max-width: 100%;
}
.dj-book textarea { resize: vertical; }
.dj-book textarea::placeholder { color: var(--dj-muted); opacity: 1; }
.dj-book button {
  background: var(--dj-accent);
  border: 1px solid var(--dj-accent);
  border-radius: 4px;
  color: var(--dj-background);
  cursor: pointer;
  font: 700 .95rem/1.35 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  min-height: 44px;
  padding: .65rem 1rem;
}
.dj-book button:hover:not(:disabled) { background: #d8effa; }
.dj-book button:disabled { cursor: default; opacity: .65; }
.dj-book button.dj-secondary { background: transparent; border-color: #657689; color: var(--dj-paper); }
.dj-book button.dj-secondary:hover:not(:disabled) { background: var(--dj-raised); border-color: var(--dj-accent); }
.dj-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .65rem; }
.dj-book .dj-premise {
  border-left: 2px solid var(--dj-accent);
  color: var(--dj-paper);
  font: 1.15rem/1.5 Georgia, serif;
  margin: 1rem 0;
  padding: .15rem 0 .15rem .75rem;
}
.dj-cards {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
}
.dj-cards li {
  background: var(--dj-raised);
  border: 1px solid #527187;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 0;
}
.dj-cards img {
  aspect-ratio: 1;
  background: var(--dj-background);
  display: block;
  object-fit: cover;
  width: 100%;
  height: auto;
}
.dj-card-caption {
  background: var(--dj-background);
  border-left: 2px solid var(--dj-accent);
  display: grid;
  flex: 1;
  gap: .25rem;
  margin: .75rem;
  padding: .65rem .7rem;
  text-align: start;
}
.dj-cards .dj-card-caption strong {
  color: var(--dj-accent);
  font: 700 1rem/1.32 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.dj-cards .dj-card-caption small {
  color: var(--dj-muted);
  font: 400 .875rem/1.4 "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
.dj-book .dj-story {
  background: var(--dj-background);
  border: 1px solid var(--dj-line);
  border-radius: 6px;
  color: var(--dj-paper);
  margin: 1.5rem 0;
  padding: clamp(1rem, 4vw, 2rem);
}
.dj-story h2 { font-size: clamp(1.55rem, 4.8vw, 2.7rem); margin: 0 0 1rem; }
.dj-story p {
  color: var(--dj-paper);
  font: 400 clamp(1.08rem, 2.3vw, 1.24rem)/1.7 Georgia, serif;
  letter-spacing: normal;
  margin: 0 0 .95em;
  max-width: 68ch;
}
.dj-story p:last-child { margin-bottom: 0; }
.dj-story .dj-contribution + .dj-contribution {
  border-top: 1px solid var(--dj-line);
  margin-block-start: 1rem;
  padding-block-start: 1rem;
}
.dj-story .dj-contribution h3 {
  color: var(--dj-accent);
  font: 700 1rem/1.35 "Avenir Next", "Segoe UI", system-ui, sans-serif;
  margin: 0 0 .3rem;
  text-transform: none;
}
.dj-book button.dj-link {
  background: transparent;
  border-color: transparent;
  color: var(--dj-accent);
  margin-top: .65rem;
  padding-inline: 0;
  text-decoration: underline;
}
.dj-book button.dj-link:hover:not(:disabled) { background: transparent; color: var(--dj-paper); }
.dj-page .dj-crossword { display: table; margin: 1rem auto 0; text-decoration: underline; }
#dj-status { color: var(--dj-muted); margin: .85rem 0 0; }
#dj-status:empty { display: none; }
#dj-continue { margin-block-start: 1rem; }
@media (max-width: 620px) {
  .dj-header-inner { display: block; position: relative; }
  .dj-brand { position: absolute; inset-block-start: 12px; inset-inline-start: 0; }
  .dj-help p { max-width: none; }
  .dj-actions > button, #dj-continue button { width: 100%; }
  .dj-cards { grid-template-columns: 1fr; gap: .55rem; }
  .dj-cards li { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: stretch; }
  .dj-cards img { aspect-ratio: 1; align-self: center; }
  .dj-card-caption { align-content: center; margin: .4rem; padding: .45rem .55rem; }
}
