/* Article reading tools and consistently centred accordion controls. */
html[data-theme] .article-page .article-accordion > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
html[data-theme] .article-page .article-accordion > summary::after {
  content: '';
  display: block;
  position: static;
  justify-self: end;
  align-self: center;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin: 0;
  padding: 0;
  transform: none;
  border: 1px solid var(--ui-line, #decebb);
  border-radius: 8px;
  color: var(--ui-accent, #b75a22);
  background-color: var(--ui-surface, #fff);
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-position: center;
  background-size: 10px 2px, 2px 10px;
  background-repeat: no-repeat;
}
html[data-theme] .article-page .article-accordion[open] > summary::after {
  content: '';
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 10px 2px;
}
.content38-faq .article-answer p { margin: 0; }
.content38-faq .article-answer { line-height: 1.8; }
.article-page [data-article-body] code[data-copy-kind],
.article-page [data-article-body] .content38-code code {
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  font-size: .91em;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ui-ink, #273238);
}
.article-page [data-article-body] .content38-code {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  box-sizing: border-box;
  vertical-align: middle;
  margin-block: 2px;
  padding: 3px 4px 3px 8px;
  border: 1px solid var(--ui-line, #d9dfdf);
  border-radius: 7px;
  background: var(--ui-soft, #f3f5f4);
}
.article-page [data-article-body] .content38-code code {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.article-page [data-article-body] .content38-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  width: auto;
  min-height: 28px;
  margin: 0;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--ui-surface, #fff);
  color: var(--ui-accent, #b75a22);
  font: 600 11px/1.2 Arial, sans-serif;
  text-transform: none;
  cursor: pointer;
  touch-action: manipulation;
}
.content38-copy svg { display: block; width: 14px; height: 14px; flex-shrink: 0; }
html[data-theme] .article-page [data-article-body] .content38-copy:hover {
  border-color: var(--ui-accent, #b75a22);
  background: var(--ui-tint, #fff2e7);
}
.content38-copy:focus-visible { outline: 2px solid var(--ui-action, #f89440); outline-offset: 2px; }
.content38-copy[aria-busy='true'] { cursor: progress; }
.content38-copy.is-copied { color: var(--ui-ink, #273238); }
.content38-copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 600px) {
  html[data-theme] .article-page .article-accordion > summary { gap: 12px; padding: 16px; }
  .article-page [data-article-body] .content38-copy { min-width: 34px; min-height: 34px; }
  .content38-copy__label { display: none; }
}

/* r38.1: accommodate wrapped questions and keep command tables readable. */
html[data-theme] .article-page details.article-accordion {
  height: auto !important;
  max-height: none !important;
}
html[data-theme] .article-page .article-accordion > summary {
  height: auto !important;
  max-height: none !important;
}
.article-page [data-article-body] .content38-reference {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.article-page [data-article-body] .content38-reference table {
  width: 100%;
  min-width: 620px;
  table-layout: auto;
}
.article-page [data-article-body] .content38-reference :is(th,td) {
  vertical-align: top;
}
.article-page [data-article-body] .content38-reference :is(th,td):first-child {
  min-width: 210px;
}
.article-page [data-article-body] .content38-reference .content38-code {
  max-width: none;
  flex-wrap: nowrap;
}
.article-page [data-article-body] .content38-reference .content38-code code {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
