/* Readability for the five articles included in the rebrand. */
#main .entry-content h2 {
  color: #6e2529 !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 3px solid #6e2529 !important;
}
#main .entry-content h3 { color: #242422 !important; border-color: #6e2529 !important; }
#main .entry-content figure.wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
#main .entry-content figure.wp-block-table table {
  min-width: 520px;
  font-size: 15px;
  line-height: 1.8;
}
#main .entry-content figure.wp-block-table th,
#main .entry-content figure.wp-block-table td {
  font-size: 15px;
  padding: 12px;
  color: #242422;
  background: #fff;
  border-color: #d4ccc2;
}
#main .entry-content figure.wp-block-table th { background: #f1ece5; }
#main .entry-content figure.wp-block-table tr:nth-child(odd) td { background: #f8f6f2; }
@media (max-width: 600px) {
  #main .entry-content h2 { font-size: 22px; line-height: 1.6; }
}

/* Step-by-step article guides. The asset is loaded only for the five guide posts. */
#main .entry-content .jjt-guide-intro,
#main .entry-content .jjt-step-nav,
#main .entry-content .jjt-step-done,
#main .entry-content .jjt-next-step {
  box-sizing: border-box;
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid #d5cdc1;
  border-radius: 4px;
  background: #faf8f3;
  color: #242422;
}
#main .entry-content .jjt-guide-intro { border-left: 4px solid #743035; }
#main .entry-content .jjt-step-nav { background: #fff; }
#main .entry-content .jjt-step-nav ol { margin: 12px 0 0; padding-left: 28px; }
#main .entry-content .jjt-step-nav li { margin: 0; padding: 0; line-height: 1.8; }
#main .entry-content .jjt-step-nav a { display: block; min-height: 44px; box-sizing: border-box; padding: 9px 0; color: #6e2529; text-decoration: underline; text-underline-offset: 3px; font-size: 16px; }
#main .entry-content .jjt-step-nav a:focus-visible { outline: 3px solid #743035; outline-offset: 3px; }
#main .entry-content .jjt-guide-step { margin: 42px 0; }
#main .entry-content .jjt-step-title { scroll-margin-top: 100px; }
#main .entry-content .jjt-step-done { border-left: 4px solid #743035; background: #f5f0e9; }
#main .entry-content .jjt-step-done p { margin: 0; }
#main .entry-content .jjt-guide-example {
  max-width: 100%; box-sizing: border-box; margin: 20px 0; padding: 18px;
  color: #242422; background: #f5f3ef; border: 1px solid #d5cdc1;
  font: inherit; font-size: 16px; line-height: 1.9;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal;
}
#main .entry-content .jjt-next-step { border: 2px solid #743035; background: #fff; }
#main .entry-content .jjt-next-step a { color: #6e2529; text-decoration: underline; }
#main .entry-content .jjt-guide-intro > :first-child,
#main .entry-content .jjt-step-nav > :first-child,
#main .entry-content .jjt-next-step > :first-child { margin-top: 0; }
#main .entry-content .jjt-guide-intro > :last-child,
#main .entry-content .jjt-next-step > :last-child { margin-bottom: 0; }
/* The guide navigation replaces the automatically generated duplicate contents. */
#main .entry-content:has(.jjt-step-nav) .toc { display: none; }
@media (max-width: 600px) {
  #main .entry-content .jjt-guide-intro,
  #main .entry-content .jjt-step-nav,
  #main .entry-content .jjt-step-done,
  #main .entry-content .jjt-next-step { padding: 16px; margin: 22px 0; }
  #main .entry-content .jjt-step-title { font-size: 22px; line-height: 1.65; }
  #main .entry-content .jjt-guide-example { padding: 14px; }
}

/* Procedure library and downloadable blank records. */
#main .entry-content .jjt-procedure-hub .jjt-guide-step > ul { padding-left: 24px; }
#main .entry-content .jjt-procedure-hub .jjt-guide-step > ul > li { margin: 4px 0; }
#main .entry-content .jjt-procedure-hub .jjt-guide-step > ul a,
#main .entry-content .jjt-downloads a { display: block; padding: 10px 0; min-height: 44px; box-sizing: border-box; line-height: 1.8; }
#main .entry-content .jjt-procedure-hub .jjt-guide-step > ul a:focus-visible,
#main .entry-content .jjt-downloads a:focus-visible { outline: 3px solid #743035; outline-offset: 3px; }
#main .entry-content #jjt-forms { scroll-margin-top: 100px; margin-top: 38px; }
#main .entry-content .jjt-downloads { padding: 12px 20px; background: #faf8f3; border: 1px solid #d5cdc1; }
#main .entry-content .jjt-guide-detail { margin: 28px 0; }
#main .entry-content .jjt-guide-detail > summary { cursor: pointer; padding: 14px; line-height: 1.8; min-height: 44px; background: #f5f3ef; }

/* Readable article titles for procedural guides. */
#main article:has(.jjt-step-nav) h1.entry-title { background: #faf8f3; color: #242422; border-left: 4px solid #743035; border-radius: 0; font-size: 30px; line-height: 1.65; padding: 20px 24px; }
@media (max-width: 600px) { #main article:has(.jjt-step-nav) h1.entry-title { font-size: 24px; line-height: 1.65; padding: 16px; } }

/* Procedure directory */
#jjt-directory-controls{padding:18px;margin:20px 0;background:#faf8f3;border:1px solid #d8d6ce}#jjt-directory-controls[hidden],#jjt-directory [hidden]{display:none!important}#jjt-directory-search{display:block;width:100%;max-width:100%;min-height:48px;font:inherit;padding:12px;border:1px solid #686862;border-radius:4px;margin:8px 0}#jjt-directory-status{font-size:16px}#jjt-directory .jjt-directory-group summary{min-height:48px;cursor:pointer}#jjt-directory li a{display:block;min-height:44px;padding:10px 0;overflow-wrap:anywhere}
