/* Article page layout, scoped so the homepage and archives keep their own design. */
body.single-post #mainbody {
  display: grid !important;
  grid-template-columns: 170px minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
  width: min(1200px, calc(100% - 32px)) !important;
  max-width: 1200px;
  margin: 22px auto 40px !important;
  padding: 0 !important;
  color: #202a35;
  font-family: Arial, Helvetica, sans-serif;
}

body.single-post #mainbody > #leftsection,
body.single-post #mainbody > #medsection1,
body.single-post #mainbody > #rightsection {
  float: none !important;
  position: static;
  box-sizing: border-box;
  width: auto !important;
  min-width: 0;
  max-width: none;
  margin: 0 !important;
  padding: 0;
}

body.single-post #leftsection .menuheading {
  margin: 0;
  padding: 11px 12px;
  background: #0754a5;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

body.single-post #leftsection ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  border: 1px solid #e3e8ee;
  border-top: 0;
}

body.single-post #leftsection li { margin: 0; padding: 0; }
body.single-post #leftsection li a {
  display: block;
  padding: 9px 11px;
  border-bottom: 1px solid #e9edf1;
  color: #334155;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}
body.single-post #leftsection li:last-child a { border-bottom: 0; }
body.single-post #leftsection li a:hover { color: #0754a5; background: #f5f8fb; }

body.single-post #medsection1 { min-width: 0; }
body.single-post .article-left-col {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 20px 22px 24px;
  border: 1px solid #e2e7ec;
  background: #fff;
}
body.single-post .article-left-col > .floatLeft,
body.single-post .article-left-col > .floatRight {
  float: none !important;
  display: inline-block;
  margin: 0 18px 10px 0;
  color: #687586;
  font-size: 13px;
  line-height: 1.5;
  vertical-align: top;
}
body.single-post .article-left-col > .floatRight { margin-right: 0; }
body.single-post .article-left-col h1 {
  clear: both;
  margin: 4px 0 16px;
  padding: 0 0 15px;
  border-bottom: 1px solid #e5e9ed;
  color: #17212b;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

body.single-post .option-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 15px;
  margin: 0 0 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid #e5e9ed;
}
body.single-post .option-bar > p { margin: 0; font-size: 13px; }
body.single-post .option-bar > p a {
  color: #0754a5;
  text-decoration: none;
}
body.single-post .option-bar > p a:hover { text-decoration: underline; }
body.single-post #share {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: auto;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
body.single-post #share a {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid #d6e0e9;
  border-radius: 3px;
  background: #f7f9fb;
  color: #314253;
  font-size: 12px;
  text-decoration: none;
}
body.single-post #share a:hover { border-color: #0754a5; color: #0754a5; }

body.single-post .article-left { min-width: 0; overflow: hidden; }
body.single-post .article-image {
  float: none !important;
  width: min(400px, 100%);
  max-width: 100%;
  margin: 0 0 18px;
}
body.single-post .article-image img,
body.single-post .article-image .ghw-article-hero {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
}
body.single-post .ghw-article-content {
  clear: both;
  color: #293543;
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
body.single-post .ghw-article-content p { margin: 0 0 1.15em; }
body.single-post .ghw-article-content h2,
body.single-post .ghw-article-content h3,
body.single-post .ghw-article-content h4 {
  margin: 1.5em 0 .6em;
  color: #17212b;
  line-height: 1.3;
}
body.single-post .ghw-article-content img,
body.single-post .ghw-article-content video,
body.single-post .ghw-article-content iframe,
body.single-post .ghw-article-content figure { max-width: 100%; height: auto; }
body.single-post .ghw-article-content blockquote {
  margin: 1.25em 0;
  padding: 12px 16px;
  border-left: 4px solid #0754a5;
  background: #f4f7fa;
}

body.single-post #rightsection .right-artl {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #e2e7ec;
  background: #fff;
  overflow: hidden;
}
body.single-post #rightsection .right-artl .title {
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 2px solid #0754a5;
  color: #17212b;
  font-size: 15px;
}
body.single-post #rightsection .right-artl > a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #273545;
  text-decoration: none;
}
body.single-post #rightsection .right-artl .image img {
  display: block;
  width: 92px;
  height: 72px;
  object-fit: cover;
}
body.single-post #rightsection .right-artl .text { margin: 0; font-size: 13px; line-height: 1.4; }
body.single-post #rightsection .right-artl > a:hover .text { color: #0754a5; }

body.single-post .related_articles {
  clear: both;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #e5e9ed;
}

@media (max-width: 1000px) {
  body.single-post #mainbody { grid-template-columns: 155px minmax(0, 1fr); }
  body.single-post #rightsection { grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.single-post #rightsection .right-artl { margin: 0; }
}

@media (max-width: 700px) {
  body.single-post #mainbody {
    display: block !important;
    width: auto !important;
    max-width: none;
    margin: 14px 12px 28px !important;
  }
  body.single-post #leftsection { display: none; }
  body.single-post .article-left-col { padding: 16px 14px 20px; }
  body.single-post .article-left-col > .floatLeft,
  body.single-post .article-left-col > .floatRight { display: block; margin: 0 0 7px; }
  body.single-post .article-left-col h1 { margin-top: 10px; font-size: clamp(25px, 7vw, 32px); }
  body.single-post .option-bar { gap: 8px 12px; }
  body.single-post #share { width: 100%; margin: 4px 0 0; }
  body.single-post .ghw-article-content { font-size: 16px; line-height: 1.7; }
  body.single-post #rightsection { display: block; margin-top: 20px !important; }
  body.single-post #rightsection .right-artl { margin-bottom: 10px; }
}
