/* Editorial content only: do not select .hfmpc controls, result matrices or TOCs. */
:is(.entry-content, .post__content) .hfpo-article {
  font-size: 18px;
  line-height: 1.65;
}
:is(.entry-content, .post__content) .hfpo-article h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.25;
  margin-block: 32px 18px;
}
:is(.entry-content, .post__content) .hfpo-article h3 {
  font-size: clamp(23px, 2.5vw, 28px);
  line-height: 1.3;
}

/* Block scroll is confined to the table, not the whole mobile page. */
:is(.entry-content, .post__content) table:not(.hfmpc-results__matrix):not(.hf-pool-table),
:is(.entry-content, .post__content) > table:not(.hfmpc-results__matrix):not(.hf-pool-table),
:is(.entry-content, .post__content) .wp-block-table table {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #d8e3ef;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  margin-block: 24px 32px;
  font-size: 18px !important;
  line-height: 1.55;
  color: #102033;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
:is(.entry-content, .post__content) table:not(.hfmpc-results__matrix):not(.hf-pool-table) thead,
:is(.entry-content, .post__content) > table:not(.hfmpc-results__matrix):not(.hf-pool-table) thead {
  display: table-header-group !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  clip-path: none !important;
}
:is(.entry-content, .post__content) table:not(.hfmpc-results__matrix):not(.hf-pool-table) tbody,
:is(.entry-content, .post__content) > table:not(.hfmpc-results__matrix):not(.hf-pool-table) tbody {
  display: table-row-group !important;
}
:is(.entry-content, .post__content) table:not(.hfmpc-results__matrix):not(.hf-pool-table) tr,
:is(.entry-content, .post__content) > table:not(.hfmpc-results__matrix):not(.hf-pool-table) tr {
  display: table-row !important;
  border: 0;
}
:is(.entry-content, .post__content) table:not(.hfmpc-results__matrix):not(.hf-pool-table) :is(th, td),
:is(.entry-content, .post__content) > table:not(.hfmpc-results__matrix):not(.hf-pool-table) :is(th, td) {
  display: table-cell !important;
  box-sizing: border-box;
  min-width: 125px;
  width: auto !important;
  padding: 14px 16px !important;
  border: 0;
  border-block-end: 1px solid #d8e3ef;
  font-size: 18px !important;
  line-height: 1.55 !important;
  text-align: start !important;
  vertical-align: top;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-transform: none;
}
:is(.entry-content, .post__content) table:not(.hfmpc-results__matrix):not(.hf-pool-table) th,
:is(.entry-content, .post__content) > table:not(.hfmpc-results__matrix):not(.hf-pool-table) th {
  background: #eff5ff;
  font-weight: 700;
}
:is(.entry-content, .post__content) table:not(.hfmpc-results__matrix):not(.hf-pool-table) td::before,
:is(.entry-content, .post__content) > table:not(.hfmpc-results__matrix):not(.hf-pool-table) td::before {
  display: none !important;
  content: none !important;
}
:is(.entry-content, .post__content) table:not(.hfmpc-results__matrix):not(.hf-pool-table) :is(th, td) :is(p, a, span, li, strong),
:is(.entry-content, .post__content) > table:not(.hfmpc-results__matrix):not(.hf-pool-table) :is(th, td) :is(p, a, span, li, strong) {
  font-size: inherit !important;
  line-height: inherit !important;
}

:is(.entry-content, .post__content) .hf-faq__list {
  display: grid;
  gap: 12px;
  margin-block: 20px 32px;
  padding: 0;
}
:is(.entry-content, .post__content) :is(.hf-faq__item, details:not([class]):not(.hf-priority-toc details):not(.smart-toc details)) {
  box-sizing: border-box;
  margin: 0;
  border: 1px solid #d8e3ef;
  border-radius: 12px;
  background: #fff;
  color: #102033;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.6;
}
:is(.entry-content, .post__content) :is(.hf-faq__item, details:not([class]):not(.hf-priority-toc details):not(.smart-toc details)) > summary {
  display: block;
  box-sizing: border-box;
  position: relative;
  min-height: 54px;
  padding: 16px 18px;
  padding-inline-end: 52px;
  margin: 0;
  font-family: inherit;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.45 !important;
  cursor: pointer;
  list-style: none;
  text-align: start;
  overflow-wrap: anywhere;
}
:is(.entry-content, .post__content) :is(.hf-faq__item, details:not([class]):not(.hf-priority-toc details):not(.smart-toc details)) > summary::-webkit-details-marker { display: none; }
:is(.entry-content, .post__content) :is(.hf-faq__item, details:not([class]):not(.hf-priority-toc details):not(.smart-toc details)) > summary::marker { content: ''; }
:is(.entry-content, .post__content) :is(.hf-faq__item, details:not([class]):not(.hf-priority-toc details):not(.smart-toc details)) > summary::after {
  content: '';
  position: absolute;
  inset-inline-end: 21px;
  top: 23px;
  width: 8px;
  height: 8px;
  border: solid #195ae6;
  border-width: 0 2px 2px 0;
  background: none;
  transform: rotate(45deg);
}
:is(.entry-content, .post__content) :is(.hf-faq__item, details:not([class]):not(.hf-priority-toc details):not(.smart-toc details))[open] > summary::after {
  top: 27px;
  transform: rotate(225deg);
}
:is(.entry-content, .post__content) :is(.hf-faq__item, details:not([class]):not(.hf-priority-toc details):not(.smart-toc details)) > summary:focus-visible {
  outline: 2px solid #195ae6;
  outline-offset: -3px;
  border-radius: 10px;
}
:is(.entry-content, .post__content) :is(.hf-faq__item, details:not([class]):not(.hf-priority-toc details):not(.smart-toc details)) > :not(summary) {
  box-sizing: border-box;
  margin: 0;
  padding: 0 18px 18px;
  font-size: 18px !important;
  line-height: 1.6 !important;
}
:is(.entry-content, .post__content) :is(.hf-faq__item, details:not([class]):not(.hf-priority-toc details):not(.smart-toc details)) > :not(summary) :is(p, li, a, span, strong, div),
:is(.entry-content, .post__content) :is(.hf-faq__item, details:not([class]):not(.hf-priority-toc details):not(.smart-toc details)) > summary :is(span, strong) {
  font-size: inherit !important;
  line-height: inherit !important;
}
:is(.entry-content, .post__content) :is(.hf-faq__item, details:not([class]):not(.hf-priority-toc details):not(.smart-toc details)) > :not(summary) > :last-child { margin-bottom: 0; }

/* The theme's 62.5% root size made pre/code render at ~8px. Keep commands
   and formulas legible without changing their text or calculator controls. */
:is(.entry-content, .post__content) pre:not(.hfmpc pre):not(.hfmpc__details pre) {
  box-sizing: border-box;
  display: block;
  min-width: 0;
  max-width: 100%;
  margin-block: 20px 24px;
  padding: 16px 18px;
  overflow-x: auto;
  white-space: pre;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  color: #102033;
  background: #f4f7fb;
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  font-size: 17px !important;
  line-height: 1.65 !important;
  text-align: start;
  -webkit-overflow-scrolling: touch;
}
:is(.entry-content, .post__content) pre:not(.hfmpc pre):not(.hfmpc__details pre) :is(code, samp, span) {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit !important;
  line-height: inherit !important;
}

@media (max-width: 767.98px) {
  :is(.entry-content, .post__content) pre:not(.hfmpc pre):not(.hfmpc__details pre) { font-size: 16px !important; padding: 14px; }
  :is(.entry-content, .post__content) .hfpo-article { font-size: 16px; }
  :is(.entry-content, .post__content) .hfpo-article h2 { font-size: 28px; }
  :is(.entry-content, .post__content) table:not(.hfmpc-results__matrix):not(.hf-pool-table),
  :is(.entry-content, .post__content) > table:not(.hfmpc-results__matrix):not(.hf-pool-table),
  :is(.entry-content, .post__content) .wp-block-table table,
  :is(.entry-content, .post__content) table:not(.hfmpc-results__matrix):not(.hf-pool-table) :is(th, td),
  :is(.entry-content, .post__content) > table:not(.hfmpc-results__matrix):not(.hf-pool-table) :is(th, td) {
    font-size: 16px !important;
  }
  :is(.entry-content, .post__content) :is(.hf-faq__item, details:not([class]):not(.hf-priority-toc details):not(.smart-toc details)) > summary { font-size: 17px !important; }
  :is(.entry-content, .post__content) :is(.hf-faq__item, details:not([class]):not(.hf-priority-toc details):not(.smart-toc details)) > :not(summary) { font-size: 16px !important; }
}
