/* Docs Hub. Everything is scoped under .dh so the theme cannot restyle it by accident. */
.dh,
.dh * ,
.dh *::before,
.dh *::after {
  box-sizing: border-box;
}

.dh {
  --dh-accent: #fc202e;
  --dh-ink: #1f2430;
  --dh-muted: #6b7280;
  --dh-line: #e8eaee;
  --dh-soft: #f7f8fa;
  --dh-tint: color-mix(in srgb, var(--dh-accent) 8%, #fff);
  --dh-radius: 14px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 60px;
  color: var(--dh-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.dh a {
  color: var(--dh-accent);
  text-decoration: none;
}

.dh h1,
.dh h2,
.dh h3,
.dh h4,
.dh p,
.dh ul,
.dh ol,
.dh li {
  margin: 0;
  padding: 0;
}

.dh ul,
.dh ol {
  list-style: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Themes often add their own bullets and indents to lists; ours are drawn by this plugin. */
.dh li {
  list-style: none !important;
  margin-left: 0 !important;
}

.dh li::marker {
  content: none;
}

.dh svg {
  display: block;
}

/* ---------- Icons ---------- */
.dh .dh-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--dh-tint);
  color: var(--dh-accent);
}

.dh .dh-icon svg {
  width: 24px;
  height: 24px;
}

.dh .dh-icon--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.dh .dh-icon--sm svg {
  width: 16px;
  height: 16px;
}

/* ---------- Hero and search ---------- */
.dh .dh-hero {
  margin: 0 -20px;
  padding: 56px 20px 48px;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--dh-accent) 12%, transparent), transparent 55%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--dh-accent) 8%, transparent), transparent 55%),
    var(--dh-soft);
  text-align: center;
}

.dh .dh-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.dh .dh-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--dh-ink);
}

.dh .dh-hero p {
  margin-top: 10px;
  color: var(--dh-muted);
  font-size: 17px;
}

.dh .dh-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 26px;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--dh-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
  text-align: start;
}

.dh .dh-search:focus-within {
  border-color: var(--dh-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dh-accent) 18%, transparent);
}

.dh .dh-search > svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--dh-muted);
  stroke-width: 2;
  stroke-linecap: round;
}

.dh .dh-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--dh-ink);
  font: inherit;
  font-size: 16px;
}

.dh .dh-search button[type="submit"] {
  height: 42px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--dh-accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.dh .dh-search button[type="submit"]:hover {
  filter: brightness(0.92);
}

.dh .dh-suggest {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--dh-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.14);
  text-align: start;
}

.dh .dh-suggest[hidden] {
  display: none;
}

.dh .dh-suggest a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  color: var(--dh-ink);
  font-size: 15px;
}

.dh .dh-suggest a small {
  color: var(--dh-muted);
  font-size: 13px;
}

.dh .dh-suggest a:hover,
.dh .dh-suggest a.is-active {
  background: var(--dh-tint);
}

.dh .dh-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
}

.dh .dh-popular span {
  color: var(--dh-muted);
}

.dh .dh-popular a {
  padding: 3px 12px;
  border: 1px solid var(--dh-line);
  border-radius: 999px;
  background: #fff;
  color: var(--dh-ink);
}

.dh .dh-popular a:hover {
  border-color: var(--dh-accent);
  color: var(--dh-accent);
}

/* ---------- Category pills ---------- */
.dh .dh-wrap {
  padding-top: 28px;
}

.dh .dh-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.dh .dh-pills a {
  padding: 9px 20px;
  border: 1px solid var(--dh-line);
  border-radius: 999px;
  background: #fff;
  color: #3b4252;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dh .dh-pills a:hover {
  border-color: var(--dh-accent);
  background: var(--dh-tint);
  color: var(--dh-accent);
}

.dh .dh-pills a.is-current {
  border-color: var(--dh-accent);
  background: var(--dh-accent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--dh-accent) 30%, transparent);
  color: #fff;
}

/* ---------- Category cards ---------- */
.dh .dh-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.dh .dh-card {
  padding: 26px 26px 22px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.dh .dh-card:hover {
  border-color: color-mix(in srgb, var(--dh-accent) 30%, var(--dh-line));
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transform: translateY(-2px);
}

.dh .dh-card h2 {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.dh .dh-card h2 a {
  color: var(--dh-ink);
}

.dh .dh-card h2 a:hover {
  color: var(--dh-accent);
}

.dh .dh-count {
  margin-top: 2px;
  color: var(--dh-muted);
  font-size: 14px;
}

.dh .dh-card ul {
  display: grid;
  gap: 2px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--dh-line);
}

.dh .dh-card li a {
  display: block;
  position: relative;
  padding: 5px 0 5px 18px;
  color: #3b4252;
  font-size: 15px;
  line-height: 1.45;
}

.dh .dh-card li a::before {
  content: "";
  position: absolute;
  top: 0.85em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--dh-accent) 45%, #fff);
}

.dh .dh-card li a:hover {
  color: var(--dh-accent);
}

.dh .dh-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Category and search lists ---------- */
.dh .dh-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dh .dh-list--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
}

.dh .dh-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--dh-line);
  border-radius: 14px;
  background: #fff;
  color: var(--dh-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dh .dh-list a:hover {
  border-color: color-mix(in srgb, var(--dh-accent) 40%, var(--dh-line));
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.dh .dh-list .dh-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.dh .dh-list .dh-icon svg {
  width: 20px;
  height: 20px;
}

.dh .dh-list-text {
  flex: 1;
  min-width: 0;
}

.dh .dh-list strong {
  display: block;
  color: var(--dh-ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.dh .dh-list a:hover strong {
  color: var(--dh-accent);
}

.dh .dh-list-text > span {
  display: block;
  margin-top: 3px;
  color: var(--dh-muted);
  font-size: 14px;
  line-height: 1.5;
}

.dh .dh-arrow {
  flex: none;
  color: var(--dh-muted);
  font-style: normal;
  transition: transform 0.15s ease, color 0.15s ease;
}

.dh .dh-list a:hover .dh-arrow {
  color: var(--dh-accent);
  transform: translateX(3px);
}

.dh .dh-back {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 600;
}

.dh .dh-results-title {
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 700;
}

.dh .dh-empty {
  color: var(--dh-muted);
}

/* ---------- Breadcrumb ---------- */
.dh .dh-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--dh-muted);
  font-size: 14px;
}

.dh .dh-crumbs a {
  color: var(--dh-muted);
}

.dh .dh-crumbs a:hover {
  color: var(--dh-accent);
}

.dh .dh-crumbs span {
  opacity: 0.6;
}

/* ---------- Article page ---------- */
.dh .dh-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 -20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--dh-line);
  background: var(--dh-soft);
}

.dh .dh-bar-name {
  color: var(--dh-ink);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.dh .dh-bar-name span {
  color: var(--dh-accent);
}

.dh .dh-bar .dh-search {
  max-width: 440px;
  margin-top: 0;
  padding-block: 3px;
  box-shadow: none;
}

.dh .dh-bar .dh-search input[type="search"],
.dh .dh-bar .dh-search button[type="submit"] {
  height: 36px;
}

.dh .dh-article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 220px;
  gap: 44px;
  align-items: start;
  padding-top: 34px;
}

.dh .dh-side,
.dh .dh-toc {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.dh .dh-side-toggle {
  display: none;
}

.dh .dh-side-group + .dh-side-group {
  margin-top: 4px;
}

.dh .dh-side-title {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--dh-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  text-align: start;
  cursor: pointer;
}

.dh .dh-side-title:hover {
  background: var(--dh-soft);
}

.dh .dh-side-title i {
  width: 8px;
  height: 8px;
  margin-inline-start: auto;
  border-right: 2px solid var(--dh-muted);
  border-bottom: 2px solid var(--dh-muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.dh .dh-side-group.is-open .dh-side-title i {
  transform: rotate(45deg);
}

.dh .dh-side-group ul {
  display: none;
  margin: 2px 0 10px 14px !important;
  padding: 0 !important;
  border-left: 1px solid var(--dh-line);
}

.dh .dh-side-group.is-open ul {
  display: block;
}

.dh .dh-side-group li a {
  display: block;
  margin-left: -1px;
  padding: 7px 12px 7px 16px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: #4b5262;
  font-size: 14.4px;
  line-height: 1.4;
}

.dh .dh-side-group li a:hover {
  color: var(--dh-accent);
}

.dh .dh-side-group li a.is-current {
  border-left-color: var(--dh-accent);
  background: var(--dh-tint);
  color: var(--dh-accent);
  font-weight: 600;
}

.dh .dh-article {
  min-width: 0;
}

.dh .dh-article > h1 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.dh .dh-meta {
  margin-top: 10px;
  color: var(--dh-muted);
  font-size: 14px;
}

/* On this page */
.dh .dh-toc p {
  margin-bottom: 10px;
  color: var(--dh-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dh .dh-toc ul {
  border-left: 1px solid var(--dh-line);
}

.dh .dh-toc a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 2px solid transparent;
  color: #4b5262;
  font-size: 14px;
  line-height: 1.4;
}

.dh .dh-toc .dh-toc-3 a {
  padding-left: 28px;
  font-size: 13.4px;
}

.dh .dh-toc a:hover {
  color: var(--dh-accent);
}

.dh .dh-toc a.is-active {
  border-left-color: var(--dh-accent);
  color: var(--dh-accent);
  font-weight: 600;
}

/* ---------- Article text ---------- */
.dh .dh-body {
  margin-top: 26px;
  font-size: 17px;
}

.dh .dh-body > * + * {
  margin-top: 16px;
}

.dh .dh-body h2 {
  position: relative;
  margin-top: 40px;
  padding-top: 8px;
  font-size: 25.6px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.01em;
  scroll-margin-top: 20px;
}

.dh .dh-body h3 {
  position: relative;
  margin-top: 30px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  scroll-margin-top: 20px;
}

.dh .dh-anchor {
  margin-left: 8px;
  color: var(--dh-line) !important;
  font-weight: 400;
  opacity: 0;
}

.dh .dh-body h2:hover .dh-anchor,
.dh .dh-body h3:hover .dh-anchor {
  opacity: 1;
}

.dh .dh-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dh .dh-body ul,
.dh .dh-body ol {
  padding-left: 4px;
}

.dh .dh-body ul li,
.dh .dh-body ol li {
  position: relative;
  padding-left: 26px;
}

.dh .dh-body li + li {
  margin-top: 8px;
}

.dh .dh-body ul li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dh-accent);
}

.dh .dh-body ol {
  counter-reset: step;
}

.dh .dh-body ol li {
  counter-increment: step;
  padding-left: 40px;
}

.dh .dh-body ol li::before {
  content: counter(step);
  position: absolute;
  top: 0.1em;
  left: 0;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--dh-tint);
  color: var(--dh-accent);
  font-size: 13px;
  font-weight: 700;
}

.dh .dh-body li > ul,
.dh .dh-body li > ol {
  margin-top: 8px;
}

.dh .dh-body code {
  padding: 2px 7px;
  border: 1px solid var(--dh-line);
  border-radius: 6px;
  background: var(--dh-soft);
  color: #b4233a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

.dh .dh-body pre {
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: 12px;
  background: #151a24;
  color: #e5e9f0;
  font-size: 14.4px;
  line-height: 1.6;
}

.dh .dh-body pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

.dh .dh-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.dh .dh-body th,
.dh .dh-body td {
  padding: 11px 14px;
  border: 1px solid var(--dh-line);
  text-align: start;
  vertical-align: top;
}

.dh .dh-body th {
  background: var(--dh-soft);
  font-weight: 650;
}

.dh .dh-body kbd {
  padding: 1px 7px;
  border: 1px solid var(--dh-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  font-size: 0.85em;
}

/* Notes: <div class="dh-note"> (also dh-tip, dh-warn) */
.dh .dh-note,
.dh .dh-tip,
.dh .dh-warn {
  padding: 14px 18px;
  border: 1px solid;
  border-left-width: 4px;
  border-radius: 10px;
  font-size: 15.5px;
}

.dh .dh-note {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.dh .dh-tip {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.dh .dh-warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.dh .dh-note > strong:first-child,
.dh .dh-tip > strong:first-child,
.dh .dh-warn > strong:first-child {
  display: block;
  margin-bottom: 2px;
}

.dh .dh-pro-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--dh-accent);
  color: #fff;
  font-size: 11.2px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

/* Screenshots */
.dh .dh-shot {
  margin: 22px 0;
}

.dh .dh-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--dh-line);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.08);
}

.dh .dh-shot figcaption {
  margin-top: 8px;
  color: var(--dh-muted);
  font-size: 14px;
  text-align: center;
}

.dh .dh-shot--missing div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
  border: 2px dashed #d5d9e0;
  border-radius: 12px;
  background: var(--dh-soft);
  color: var(--dh-muted);
  font-size: 15px;
  text-align: center;
}

.dh .dh-shot--missing svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Feedback and pager ---------- */
.dh .dh-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  padding: 18px 22px;
  border: 1px solid var(--dh-line);
  border-radius: 12px;
  background: var(--dh-soft);
}

.dh .dh-feedback-buttons {
  display: inline-flex;
  gap: 8px;
}

.dh .dh-feedback button {
  margin: 0;
  padding: 6px 20px;
  border: 1px solid var(--dh-line);
  border-radius: 999px;
  background: #fff;
  color: var(--dh-ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.dh .dh-feedback button:hover {
  border-color: var(--dh-accent);
  color: var(--dh-accent);
}

.dh .dh-feedback-thanks {
  color: #15803d;
  font-weight: 600;
}

.dh .dh-feedback-thanks[hidden] {
  display: none;
}

.dh .dh-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}

.dh .dh-pager a {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--dh-line);
  border-radius: 12px;
  color: var(--dh-ink);
}

.dh .dh-pager a:hover {
  border-color: var(--dh-accent);
}

.dh .dh-pager small {
  display: block;
  color: var(--dh-muted);
  font-size: 13px;
}

.dh .dh-pager span {
  display: block;
  margin-top: 2px;
  color: var(--dh-accent);
  font-weight: 650;
}

.dh .dh-next {
  text-align: end;
}

/* ---------- Product list ([dochub] without a product) ---------- */
.dh.dh-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding-top: 20px;
}

.dh .dh-product {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--dh-line);
  border-radius: var(--dh-radius);
  background: #fff;
  color: var(--dh-ink);
}

.dh .dh-product:hover {
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.dh .dh-product strong {
  font-size: 19px;
}

.dh .dh-product span:not(.dh-icon) {
  color: var(--dh-muted);
  font-size: 15px;
}

.dh .dh-product em {
  color: var(--dh-accent);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.dh-missing {
  padding: 24px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .dh .dh-article-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .dh .dh-toc {
    display: none;
  }

  .dh .dh-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .dh .dh-article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 20px;
  }

  .dh .dh-side {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .dh .dh-side-toggle {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--dh-line);
    border-radius: 10px;
    background: var(--dh-soft);
    color: var(--dh-ink);
    font: inherit;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
  }

  .dh .dh-side-nav {
    display: none;
    margin-top: 8px;
  }

  .dh .dh-side.is-open .dh-side-nav {
    display: block;
  }

  .dh .dh-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .dh .dh-bar .dh-search {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .dh {
    padding-inline: 16px;
  }

  .dh .dh-hero,
  .dh .dh-bar {
    margin-inline: -16px;
  }

  .dh .dh-hero {
    padding: 40px 16px 34px;
  }

  .dh .dh-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .dh .dh-search button[type="submit"] {
    padding: 0 16px;
  }

  .dh .dh-pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .dh .dh-body {
    font-size: 16px;
  }
}

/* ---------- Never wider than the screen ---------- */
.dh .dh-article,
.dh .dh-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dh .dh-body img,
.dh .dh-body iframe,
.dh .dh-body video {
  max-width: 100%;
  height: auto;
}

.dh .dh-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dh .dh-body pre {
  max-width: 100%;
}

.dh .dh-bar-name {
  min-width: 0;
}

@media (max-width: 1100px) {
  .dh .dh-article-layout {
    gap: 36px;
  }

  .dh .dh-bar .dh-search {
    max-width: 360px;
  }
}

@media (max-width: 820px) {
  .dh .dh-hero {
    padding: 44px 20px 38px;
  }

  .dh .dh-card {
    padding: 22px;
  }

  .dh .dh-side-nav {
    padding: 8px;
    border: 1px solid var(--dh-line);
    border-radius: 12px;
    background: #fff;
  }

  .dh .dh-body h2 {
    margin-top: 32px;
    font-size: 22.4px;
  }

  .dh .dh-body h3 {
    font-size: 18.4px;
  }
}

@media (max-width: 640px) {
  .dh .dh-search {
    padding: 4px 4px 4px 14px;
  }

  .dh .dh-search input[type="search"] {
    height: 38px;
    font-size: 15px;
  }

  .dh .dh-search button[type="submit"] {
    height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  .dh .dh-popular {
    gap: 6px;
    font-size: 13px;
  }

  .dh .dh-pills {
    gap: 8px;
  }

  .dh .dh-pills a {
    padding: 7px 14px;
    font-size: 14px;
  }

  .dh .dh-card {
    padding: 20px;
  }

  .dh .dh-article > h1 {
    font-size: 26.4px;
  }

  .dh .dh-body,
  .dh .dh-body ul li,
  .dh .dh-body ol li {
    font-size: 16px;
  }

  .dh .dh-body ol li {
    padding-left: 36px;
  }

  .dh .dh-shot--missing div {
    min-height: 150px;
    padding: 16px;
  }

  .dh .dh-feedback {
    flex-direction: column;
    align-items: flex-start;
  }

  .dh .dh-list a {
    padding: 14px 16px;
  }

  .dh .dh-body th,
  .dh .dh-body td {
    padding: 9px 10px;
  }
}

@media (max-width: 380px) {
  .dh {
    padding-inline: 12px;
  }

  .dh .dh-hero,
  .dh .dh-bar {
    margin-inline: -12px;
    padding-inline: 12px;
  }
}

@media (max-width: 760px) {
  .dh .dh-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
