/* Shared reading and article index styles for ShinyHuntCards. */
body.single-post {
  --shc-paper: #101b2e;
  --shc-copy: #dbe5f1;
  --shc-heading: #f8fafc;
  --shc-story-link: #87c9ff;
}

body.single-post #primary {
  margin-block: clamp(18px, 4vw, 48px);
  padding-block: 0 !important;
  min-width: 0;
}
body.single-post.ast-no-sidebar #primary {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}
body.single-post #primary article.ast-article-single {
  background: var(--shc-paper) !important;
  color: var(--shc-copy);
  padding: clamp(18px, 4vw, 52px);
  border: 1px solid #2b3a52;
  border-radius: 16px;
  overflow-wrap: break-word;
}
body.single-post #primary .entry-header {
  padding: 0 0 18px;
  margin: 0 0 24px;
  border-bottom: 1px solid #34445b;
}
body.single-post #primary .entry-title {
  color: var(--shc-heading);
  font-size: clamp(28px, 3.4vw, 39px);
  line-height: 1.14;
  letter-spacing: -.025em;
  text-shadow: none;
}
body.single-post #primary .entry-meta,
body.single-post #primary .entry-meta span,
body.single-post #primary .entry-meta a {
  color: #b8c7d9;
  font-size: 14px;
}
body.single-post #primary .entry-content {
  padding: 0 !important;
  color: var(--shc-copy);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
}
body.single-post #primary .entry-content :where(p, ul, ol, figcaption, blockquote) {
  color: inherit;
}
body.single-post #primary .entry-content > :where(p, ul, ol, figure, blockquote) {
  margin-block: 0 1.05em;
}
body.single-post #primary .entry-content :where(h2, h3, h4) {
  margin: 1.45em 0 .43em;
  line-height: 1.23;
  letter-spacing: -.012em;
  color: var(--shc-heading);
  text-shadow: none;
}
body.single-post #primary .entry-content h2 { font-size: clamp(21px, 2.2vw, 26px); }
body.single-post #primary .entry-content h3 { font-size: clamp(19px, 1.8vw, 22px); }
body.single-post #primary .entry-content a:not(.wp-element-button),
body.single-post #primary .post-navigation a {
  color: var(--shc-story-link);
  text-decoration: underline;
  text-underline-offset: .17em;
  overflow-wrap: anywhere;
}
body.single-post #primary .entry-content a:not(.wp-element-button):is(:hover, :focus-visible) {
  color: #f2d6a2;
}
body.single-post #primary a:focus-visible,
.shc-article-list a:focus-visible {
  outline: 2px solid #f2d6a2;
  outline-offset: 3px;
}
body.single-post #primary .entry-content :where(img, video, figure, iframe) {
  max-width: 100%;
}
body.single-post #primary .entry-content :where(img, video) { height: auto; }
body.single-post #primary .entry-content figcaption { color: #b8c7d9; font-size: 14px; }
body.single-post #primary .entry-header .post-thumb img,
body.single-post #primary .ast-blog-featured-section img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(230px, 44vh, 430px);
  object-fit: contain;
  display: block;
  margin-inline: auto;
}

.shc-article-list {
  box-sizing: border-box;
  width: min(100%, 1160px);
  color: #dbe5f1;
  margin-inline: auto;
  padding-inline: clamp(18px, 3.3vw, 44px);
}
body.blog #primary.shc-article-archive {
  flex: 1 1 100%;
  width: min(100%, 1160px);
  margin: 0 auto;
  padding-block: clamp(30px, 5.5vw, 76px);
}
body.blog .site-content > .ast-container { width: 100%; }
.shc-article-list.shc-article-home { margin-block: clamp(32px, 5vw, 70px); }
.shc-holiday-copy a.shc-home-article-shortcut {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-inline-start: 12px;
  padding-inline: 4px;
  color: #dbe5f1;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.shc-holiday-copy a.shc-home-article-shortcut:is(:hover, :focus-visible) {
  color: #f2d6a2;
}
.shc-article-list .shc-story-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 0 20px;
}
#shc-recent-articles .shc-story-header h2,
.shc-article-archive > h1 {
  color: #f8fafc;
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -.025em;
  text-shadow: none;
  margin: 0;
}
.shc-article-archive > h1 { margin-bottom: 24px; }
.shc-article-list a.shc-story-all,
.shc-article-list .pagination a {
  color: #87c9ff;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.shc-article-list .shc-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  gap: clamp(15px, 2vw, 25px);
  padding: 0;
  margin: 0;
}
.shc-article-list .shc-story-card {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #30415a;
  border-radius: 14px;
  background: #101b2e;
  overflow: hidden;
}
.shc-article-list .shc-story-card > a {
  display: block;
  height: 100%;
  color: #f8fafc;
  text-decoration: none;
}
.shc-article-list .shc-story-card > a:focus-visible { outline-offset: -3px; }
.shc-article-list .shc-story-card a:is(:hover, :focus-visible) :is(h2, h3) {
  color: #a3d6ff;
  text-decoration: underline;
  text-underline-offset: .12em;
}
.shc-article-list .shc-story-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #091321;
  border-bottom: 1px solid #293a51;
}
.shc-article-list .shc-story-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  margin: 0;
}
.shc-article-list img.shc-story-contain { object-fit: contain; }
.shc-article-list img.shc-story-logo { width: 31%; height: auto; object-fit: contain; }
.shc-article-list .shc-story-caption { padding: 16px 18px 20px; }
.shc-article-list .shc-story-caption time {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: #b8c7d9;
}
.shc-article-list .shc-story-caption :is(h2, h3) {
  color: #f8fafc;
  font-size: clamp(18px, 1.65vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.012em;
  text-shadow: none;
  margin: 0;
}
.shc-article-archive .pagination { margin-top: 28px; }
.shc-article-archive .pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.shc-article-archive .pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding-inline: 10px;
}
.shc-article-archive .pagination .current { background: #1c3049; color: #fff; border-radius: 6px; }
@media (max-width: 921px) {
  body.single-post .site-content > .ast-container {
    display: block;
    padding-inline: 8px;
  }
  body.single-post .site-content #primary,
  body.single-post .site-content #secondary {
    box-sizing: border-box;
    width: 100%;
    max-width: 820px;
    margin-inline: auto;
    padding-inline: 0;
  }
}
@media (max-width: 899px) {
  .shc-article-list .shc-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .shc-article-list .shc-story-grid { grid-template-columns: minmax(0, 1fr); }
}
