/* Discovery's help page (/discovery/help/, src/discovery/help.njk): plain and readable, the site's tokens; the key caps
   and the screen's icons as the game draws them. */

.dh-head { padding-bottom: 20px; }
.dh-head .page__kicker { margin-bottom: 6px; }

.dh {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  padding: 8px 0 72px;
  align-items: start;
}

.dh-toc {
  position: sticky;
  top: 90px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 15px;
}
.dh-toc__title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--brand-text);
  margin: 0 0 10px;
}
.dh-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dh-toc a { color: var(--ink-soft); text-decoration: none; }
.dh-toc a:hover, .dh-toc a:focus-visible { color: var(--ink); text-decoration: underline; }

.dh-body { font-size: 17px; max-width: 760px; }
.dh-body p { margin: 0 0 16px; }
.dh-body a { color: var(--accent-teal); }

.dh-note {
  border-left: 3px solid var(--accent-teal);
  padding: 10px 14px;
  background: var(--bg-sunken);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft);
}

.dh-sec { scroll-margin-top: 90px; padding-top: 8px; margin-bottom: 36px; }
.dh-sec h2 {
  font-family: var(--font-display);
  font-size: var(--heading-size);
  font-weight: 600;
  color: var(--brand-text);
  margin: 0 0 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.dh-sec h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}

.dh-soon {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--status-progress-ink);
  background: var(--status-progress-bg);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  vertical-align: middle;
  white-space: nowrap;
}

.dh-list { padding-left: 22px; margin: 0 0 16px; }
.dh-list li { margin-bottom: 10px; }

/* the keys: icon, caps, then the line */
.dh-keys { margin: 0 0 18px; display: grid; gap: 2px; }
.dh-key {
  display: grid;
  grid-template-columns: minmax(190px, auto) 1fr;
  gap: 14px;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.dh-key:nth-child(odd) { background: var(--bg-raised); }
.dh-key dt { display: flex; align-items: center; gap: 10px; margin: 0; }
.dh-key dd { margin: 0; color: var(--ink); }
.dh-key__blank { display: inline-block; width: 32px; height: 32px; flex: none; }
.dk-ico { flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); vertical-align: middle; }
.dk-caps { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.dk-or { color: var(--ink-soft); margin: 0 2px; }
.dk-hold { font-size: 12px; color: var(--ink-soft); text-transform: lowercase; margin-right: 2px; }
.dh kbd, .dk-caps kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, #243247, #172131);
  border: 1px solid #3a4c66;
  border-bottom-width: 3px;
  border-radius: 7px;
  line-height: 1;
}
.dh p kbd, .dh li kbd { height: 24px; min-width: 24px; font-size: 13px; padding: 0 6px; vertical-align: middle; }
.dk-cap--mouse { padding: 0 6px; }
.dk-mouse { display: block; color: var(--ink); }
.dh p .dk-ico, .dh li .dk-ico { vertical-align: middle; }
.dk-help, .dk-book { vertical-align: middle; flex: none; }

/* the screen, part by part, each beside a small picture of it */
.dh-parts { display: grid; gap: 16px; margin: 0 0 18px; }
.dh-part {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  margin: 0;
  padding: 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: start;
}
.dh-part figcaption h3 { margin-top: 0; }
.dh-part figcaption p:last-child, .dh-part ul:last-child { margin-bottom: 0; }
.dh-part ul { padding-left: 20px; margin: 0 0 12px; }
.dh-part li { margin-bottom: 8px; }
.dh-part__pic {
  display: flex; align-items: center; justify-content: center;
  min-height: 84px;
  background: radial-gradient(circle at 50% 30%, #1c2d3d, #070b11);
  border-radius: 10px;
  border: 1px solid #2c3d52;
}
.dh-pic-unit { gap: 8px; padding: 8px; }
.dh-pic-face { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2a4f5c, #070b11); border: 3px solid #6b7480; box-shadow: inset 0 0 0 2px #05080c; }
.dh-pic-meta { display: grid; gap: 6px; }
.dh-pic-meta b { font-family: var(--font-display); font-size: 12px; color: #dfe7ee; }
.dh-pic-hp { display: block; width: 52px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #4fb36b 80%, #1a2430 80%); border: 1px solid #3a4c66; }
.dh-pic-mini { position: relative; }
.dh-pic-ring { position: relative; width: 66px; height: 66px; border-radius: 50%; border: 2px solid #8a7a4a; background: radial-gradient(circle, #121a24 60%, #0b0f16); display: block; }
.dh-pic-ring::before { content: ""; position: absolute; inset: 22px 30px 8px 30px; background: #8a95a8; opacity: .5; border-radius: 2px; }
.dh-pic-ring b { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #f0c35a; }
.dh-pic-me { position: absolute; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 14px solid #7fd3e6; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.dh-pic-bar { flex-wrap: wrap; gap: 2px; padding: 8px; }
.dh-pic-pay { min-height: 64px; }
/* finding places: screenshots of the real screen */
.dh-shot { margin: 0 0 18px; display: grid; gap: 8px; }
.dh-shot img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid #2c3d52; background: #070b11; }
.dh-shot figcaption { font-size: 15px; color: var(--ink-soft); }
.dh-shots2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.dh-shots2 img { max-width: 288px; }
.dh-bar { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 14px; }
.dh-bar li { display: flex; align-items: center; gap: 8px; margin: 0; }

.dh-ver code {
  display: inline-block;
  font-size: 15px;
  padding: 8px 12px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  word-break: break-word;
}
.dh-foot { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); border-top: 1px solid var(--border); padding-top: 18px; }

@media (max-width: 900px) {
  .dh { grid-template-columns: 1fr; gap: 20px; }
  .dh-toc { position: static; }
  .dh-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dh-key { grid-template-columns: 1fr; gap: 4px; padding: 10px 12px; }
  .dh-key dd { font-size: 15.5px; }
  .dh-part { grid-template-columns: 1fr; }
  .dh-part__pic { justify-self: start; min-width: 132px; }
  .dh-body { font-size: 16px; }
}
