/* Shared summary rhythm for the site pages and the blog's article templates. */
body #page section.bgm-answer {
  --bgdw-brief-ink: #123d31;
  --bgdw-brief-copy: #37554b;
  --bgdw-brief-rule: #bbc8bc;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(8.5rem, .72fr) minmax(0, 3fr);
  align-items: start;
  gap: .9rem clamp(2rem, 4vw, 4rem);
  inline-size: min(1080px, calc(100% - 2 * clamp(20px, 3vw, 48px)));
  max-inline-size: 100%;
  margin-block: clamp(1.75rem, 3.5vw, 3.25rem) clamp(1.5rem, 2.75vw, 2.75rem);
  margin-inline: auto;
  padding: clamp(1.35rem, 2.7vw, 2.5rem) 0 0;
  border: 0;
  border-block-start: 1px solid var(--bgdw-brief-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--bgdw-brief-copy);
  font-family: inherit;
  text-align: start;
}

body #page section.bgm-answer[class] {
  opacity: 1;
  transform: none;
  transition: none;
}

body #page section.bgm-answer > :is(b, strong) {
  display: block;
  min-inline-size: 0;
  margin: 0;
  color: var(--bgdw-brief-ink);
  font-family: inherit;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: anywhere;
}

body #page section.bgm-answer > p {
  grid-column: 2;
  min-inline-size: 0;
  max-inline-size: 70ch;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: clamp(15.5px, 15px + .13vw, 17px);
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  body #page section.bgm-answer {
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
  }

  body #page section.bgm-answer > p {
    grid-column: 1;
  }
}

/* Article summaries sit on the reading column's existing surface. */
:is(
  body #page article div.short:has(> :is(b, strong)):has(> p),
  body.bgdw-brief-school #page article .note-paper,
  body.bgdw-brief-hydration #page article .answer .txt,
  body.bgdw-brief-laser #page article .answer,
  body.bgdw-brief-lead #page article .verdict,
  body.bgdw-brief-microwave #page article .short
) {
  --bgdw-brief-ink: #123d31;
  --bgdw-brief-copy: #37554b;
  --bgdw-brief-rule: #bbc8bc;
  box-sizing: border-box;
  min-inline-size: 0;
  max-inline-size: min(100%, 53rem);
  margin-inline: auto;
  padding: clamp(1rem, 2.6vw, 1.65rem) 0 !important;
  border: 0 !important;
  border-block: 1px solid var(--bgdw-brief-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--bgdw-brief-copy) !important;
  text-align: start;
}

:is(
  body #page article div.short:has(> :is(b, strong)):has(> p),
  body.bgdw-brief-school #page article .note-paper,
  body.bgdw-brief-hydration #page article .answer .txt,
  body.bgdw-brief-laser #page article .answer,
  body.bgdw-brief-lead #page article .verdict,
  body.bgdw-brief-microwave #page article .short
) > :is(b, strong),
:is(
  body #page article div.short:has(> :is(b, strong)):has(> p),
  body.bgdw-brief-school #page article .note-paper,
  body.bgdw-brief-hydration #page article .answer .txt,
  body.bgdw-brief-laser #page article .answer,
  body.bgdw-brief-lead #page article .verdict,
  body.bgdw-brief-microwave #page article .short
) > div > :is(b, strong) {
  display: block;
  margin: 0 0 .45rem;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: var(--bgdw-brief-ink) !important;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: anywhere;
}

:is(
  body #page article div.short:has(> :is(b, strong)):has(> p),
  body.bgdw-brief-school #page article .note-paper,
  body.bgdw-brief-hydration #page article .answer .txt,
  body.bgdw-brief-laser #page article .answer,
  body.bgdw-brief-lead #page article .verdict,
  body.bgdw-brief-microwave #page article .short
) p {
  max-inline-size: 70ch;
  margin-block: 0 .65rem;
  color: inherit !important;
  font-size: clamp(15.5px, 15px + .13vw, 17px);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

:is(
  body #page article div.short:has(> :is(b, strong)):has(> p),
  body.bgdw-brief-school #page article .note-paper,
  body.bgdw-brief-hydration #page article .answer .txt,
  body.bgdw-brief-laser #page article .answer,
  body.bgdw-brief-lead #page article .verdict,
  body.bgdw-brief-microwave #page article .short
) p:last-child {
  margin-block-end: 0;
}

body #page section.bgm-answer a {
  color: inherit !important;
  text-decoration: underline;
  text-underline-offset: .17em;
}

/* The lead-free tumbler template includes an empty paragraph before the answer. */
:is(
  body #page article div.short:has(> :is(b, strong)):has(> p),
  body.bgdw-brief-school #page article .note-paper,
  body.bgdw-brief-hydration #page article .answer .txt,
  body.bgdw-brief-laser #page article .answer,
  body.bgdw-brief-lead #page article .verdict,
  body.bgdw-brief-microwave #page article .short
) > p:empty {
  display: none;
}

/* The stationery illustration belonged to the old school-article card. */
body.bgdw-brief-school #page article .note-paper::before {
  content: none;
}

body.bgdw-brief-hydration #page article .answer:has(> .txt) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Keep the fixed contact control clear of the summary at narrower widths. */
@media (max-width: 1120px) {
  body:has(#bgsc-root) #page section.bgm-answer {
    padding-right: max(0px, calc(84px - clamp(20px, 3vw, 48px)));
  }
}

@media (max-width: 767px) {
  body:has(#bgsc-root) #page section.bgm-answer {
    padding-right: max(0px, calc(64px - clamp(20px, 3vw, 48px)));
  }
}
