:root {
  --gh-font-heading: "AxiaStencil", Sans-serif;
  --gh-font-body: "NotoSans", Sans-serif;
}

/* Post: floats from Koenig body (.drop-cap, aligned images, cards) must not wrap share/meta/byline */
#article-content {
  display: flow-root;
}

.csg-post-after-content,
#article-meta,
.byline-box.csg-byline-box {
  clear: both;
}

.byline-box.csg-byline-box {
  display: flow-root;
}

.byline-box.csg-byline-box:has(.author-avi) .author-bio {
  padding-left: 85px;
}

.byline-box-small {
  display: flow-root;
}

.kg-width-wide,
.kg-width-full {
  width: 100%;
}

.kg-width-wide img,
.kg-width-full img,
.kg-width-wide video,
.kg-width-full video {
  max-width: 100%;
  height: auto;
}

/* Members paywall CTA — same .csg-hero-signup as hero (partials/content-cta.hbs) */
.csg-upgrade-cta {
  margin: 2em 0;
  position: relative;
}

#article-content .gh-post-upgrade-cta .csg-hero-signup__fineprint {
  color: #818181 !important;
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
  margin-top: 0.5rem !important;
  text-align: left;
}

#article-content .gh-post-upgrade-cta .csg-hero-signup__fineprint a {
  color: #22d3ee !important;
  text-decoration: none;
  border-bottom: 1px solid #c084fc;
}

#article-content .gh-post-upgrade-cta .csg-hero-signup__fineprint a:hover {
  color: #c084fc !important;
}

#article-content .gh-post-upgrade-cta a.csg-hero-signup__btn.gh-btn {
  display: inline-block;
  text-align: center;
  text-decoration: none !important;
}

#article-content .gh-post-upgrade-cta a.csg-hero-signup__btn.gh-btn:hover {
  color: #fff !important;
}

/* Paywall card in article: match hero banner (override #article-content body text styles) */
#article-content .gh-post-upgrade-cta .csg-paywall-signup {
  position: relative;
  overflow: hidden;
}

#article-content .gh-post-upgrade-cta .csg-paywall-signup::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.03) 3px,
      rgba(255, 255, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.03) 3px,
      rgba(255, 255, 255, 0.03) 4px
    );
  pointer-events: none;
  z-index: 0;
}

#article-content .gh-post-upgrade-cta .csg-paywall-signup > * {
  position: relative;
  z-index: 1;
}

#article-content .gh-post-upgrade-cta .csg-hero-signup__title {
  color: #ecf0f1 !important;
  margin-top: 0;
  text-align: left;
}

#article-content .gh-post-upgrade-cta .csg-hero-signup__lede,
#article-content .gh-post-upgrade-cta .csg-hero-signup__member-note {
  color: #a8b0b8 !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  text-align: left;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

#article-content .gh-post-upgrade-cta .csg-hero-signup__success {
  color: #86efac !important;
  font-size: 0.95rem !important;
}

#article-content .gh-post-upgrade-cta .csg-hero-signup__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
}

#article-content .gh-post-upgrade-cta .csg-hero-signup__input.form-control {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  height: 45px;
}

#article-content .gh-post-upgrade-cta .csg-hero-signup__row .csg-hero-signup__btn {
  flex: 0 0 auto;
  height: 45px;
  line-height: 1;
}

@media (max-width: 520px) {
  #article-content .gh-post-upgrade-cta .csg-hero-signup__row {
    flex-wrap: wrap;
  }

  #article-content .gh-post-upgrade-cta .csg-hero-signup__input.form-control {
    width: 100%;
    flex: 1 1 100%;
  }

  #article-content .gh-post-upgrade-cta .csg-hero-signup__row .csg-hero-signup__btn {
    flex: 1 1 auto;
  }
}

/* Responsive <picture> progressive load (partials/images.hbs) */
picture:has(.csg-responsive-img),
.csg-feature-picture {
  display: block;
  width: 100%;
}

/* Post feature image: cyberpunk frame + overlay + caption on image */
.csg-feature-hero {
  position: relative;
  width: 100%;
  margin-top: 50px;
  overflow: hidden;
  line-height: 0;
}

.csg-feature-hero .csg-feature-picture {
  position: relative;
  z-index: 0;
}

.csg-feature-hero #article-longform-splash,
.csg-feature-hero .csg-feature-img {
  margin-top: 0;
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.csg-feature-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.92) 0%, rgba(5, 5, 8, 0.65) 100%);
  border-bottom: 1px solid rgba(147, 51, 234, 0.45);
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #22d3ee;
  pointer-events: none;
}

.csg-feature-hud-prompt {
  color: #c084fc;
  text-shadow: 0 0 10px rgba(147, 51, 234, 0.85);
  letter-spacing: 0;
  font-weight: bold;
}

.csg-feature-hud-rail {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.45), transparent);
}

.csg-feature-hud-label {
  opacity: 0.95;
}

.csg-feature-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(5, 5, 8, 0.88) 0%, rgba(5, 5, 8, 0.25) 42%, transparent 62%),
    linear-gradient(120deg, rgba(147, 51, 234, 0.22) 0%, transparent 45%),
    linear-gradient(300deg, rgba(34, 211, 238, 0.08) 0%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.04) 2px,
      rgba(0, 0, 0, 0.04) 4px
    );
  border-bottom: 2px solid rgba(147, 51, 234, 0.55);
}

.csg-feature-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 1.1rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(5, 5, 8, 0.75), transparent);
  pointer-events: auto;
}

.csg-feature-hero #longform-caption {
  margin-bottom: 0;
}

.csg-feature-caption__text,
.csg-feature-caption .wp-caption-text {
  margin: 0;
  max-width: 42rem;
  font-family: "AxiaStencil", Sans-serif;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  line-height: 1.35;
  color: #ecf0f1 !important;
  text-align: left;
  border-left: 3px solid #9333ea;
  padding: 0.35rem 0 0.35rem 1rem;
  text-shadow: 0 0 18px rgba(147, 51, 234, 0.45);
}

.csg-feature-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(34, 211, 238, 0.65);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
}

.csg-feature-corner--tl {
  top: 36px;
  left: 10px;
  border-width: 2px 0 0 2px;
}

.csg-feature-corner--br {
  bottom: 10px;
  right: 10px;
  border-width: 0 2px 2px 0;
}

.csg-feature-hero:not(:has(.csg-feature-caption)) .csg-feature-corner--br {
  bottom: 14px;
}

/* Standard posts: feature image after byline (post-content-standard.hbs) */
.csg-post-inline-feature-wrap {
  margin: 1rem 0 1.25rem;
}

.csg-post-inline-feature {
  display: block;
  width: 100%;
  line-height: 0;
}

.csg-post-inline-feature__img,
#post-feature-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}




.csg-responsive-img.is-blurred {
  filter: blur(14px);
  transform: scale(1.02);
  transition: filter 0.35s ease, transform 0.35s ease;
}

/* Home hero + members signup (partials/hero-banner.hbs) */
#hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.8rem 0 2rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#hero-banner > .wrapper {
  width: 100%;
}

/* Match index #content + #content-box (style.css): post summaries sit in 750px column */
.csg-hero-banner__content-box {
  min-width: 350px;
  margin: 0;
  padding: 0;
}

.csg-hero-banner__content {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0;
}

.csg-hero-signup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: 1.35rem 1.35rem 1.5rem;
  background: rgba(8, 10, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.csg-hero-signup__title {
  font-family: "AxiaStencil", Sans-serif;
  font-size: clamp(1.25rem, 3.8vw, 1.65rem);
  line-height: 1.2;
  color: #ecf0f1;
  margin: 0 0 0.5rem;
}

.csg-hero-signup__lede {
  font-family: "NotoSans", ui-sans-serif, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #a8b0b8;
  margin: 0 0 1.25rem;
}

.csg-hero-signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.csg-hero-signup__input.form-control {
  flex: 1 1 200px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.35);
  color: #ecf0f1;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
}

.csg-hero-signup__input.form-control::placeholder {
  color: #62707c;
}

.csg-hero-signup__input.form-control:focus {
  outline: none;
  border-color: rgba(124, 34, 206, 0.65);
  box-shadow: 0 0 0 2px rgba(124, 34, 206, 0.2);
}

.csg-hero-signup__btn {
  flex: 0 0 auto;
  padding: 0.65rem 1.15rem;
  font-family: "AxiaStencil", Sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: #fff !important;
  background: #7c22ce;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, filter 0.15s ease;
}

.csg-hero-signup__btn:hover {
  filter: brightness(1.1);
}

.csg-hero-signup__btn--ghost {
  display: inline-block;
  text-align: center;
  text-decoration: none !important;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #e2e8f0 !important;
}

.csg-hero-signup__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
}

form[data-members-form].loading .csg-members-btn {
  opacity: 0.75;
  pointer-events: none;
}

.csg-hero-signup__error {
  flex: 1 0 100%;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #f87171;
  min-height: 0;
}

.csg-hero-signup__error:empty {
  display: none;
}

.csg-hero-signup__success {
  display: none;
  margin: 0;
  padding: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #86efac;
}

form[data-members-form].success .csg-hero-signup__success {
  display: block;
}

form[data-members-form].success .csg-hero-signup__row,
form[data-members-form].success .csg-hero-signup__fineprint {
  display: none;
}

.csg-hero-signup__fineprint {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: #818181;
}

.csg-hero-signup__fineprint a {
  color: #22d3ee;
  text-decoration: none;
  border-bottom: 1px solid #c084fc;
}

.csg-hero-signup__fineprint a:hover {
  color: #c084fc;
  border-bottom-color: #c084fc;
}

.csg-hero-signup__member-note {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #a8b0b8;
}

/* Footer Ghost members signup (partials/site-footer.hbs) */
.csg-footer-subscribe-caption {
  text-transform: lowercase;
}

.csg-footer-members__signed-in {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.csg-footer-members__signed-in a {
  color: #22d3ee;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
}

.csg-footer-members__signed-in a:hover {
  color: #c084fc;
  border-bottom-color: #c084fc;
}

.csg-footer-signup__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.4rem;
}

.csg-footer-signup__row .csg-footer-signin__input {
  flex: 1 1 10rem;
  min-width: 0;
}

.csg-footer-signup__row .csg-footer-signin__submit {
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: stretch;
}

.csg-footer-signup__row .csg-footer-signin__error {
  flex: 1 0 100%;
  margin-top: 0.15rem;
}

.csg-footer-signin__input {
  margin-top: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.5) !important;
  color: #ecf0f1 !important;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
}

.csg-footer-signin__input::placeholder {
  color: #62707c;
}

.csg-footer-signin__input:focus {
  outline: none;
  border-color: rgba(124, 34, 206, 0.65) !important;
  box-shadow: 0 0 0 2px rgba(124, 34, 206, 0.2);
}

.csg-footer-signin__submit {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  font-family: "AxiaStencil", Sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #fff !important;
  background: #7c22ce;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.csg-footer-signin__submit:hover {
  filter: brightness(1.1);
}

.csg-footer-signin__error {
  margin: 0;
  font-size: 0.82rem;
  color: #f87171;
  min-height: 0;
}

.csg-footer-signin__error:empty {
  display: none;
}

@media screen and (max-width: 500px) {
  #hero-banner {
    padding: 1.5rem 0;
  }

  .csg-hero-signup__btn {
    flex: 1 1 100%;
  }

  .csg-footer-signup__row .csg-footer-signin__submit {
    flex: 1 1 100%;
  }
}

/* Post excerpt list cards (partials/post-excerpt.hbs) — avoid legacy .thumbnail { width:31% } on grid cols */
.post-summary.row > .summary {
  display: block;
  min-width: 0;
}

.post-summary .post-excerpt__thumb a {
  display: block;
  line-height: 0;
}

.post-summary .post-excerpt__thumb img {
  width: 100%;
  height: auto;
  border-radius: 13px;
  vertical-align: middle;
}

@media (max-width: 575.98px) {
  .post-summary {
    padding: 0.65rem 0 0.35rem;
  }

  .post-summary .post-excerpt__thumb {
    flex-shrink: 0;
    max-width: 100%;
  }

  .post-summary .post-excerpt__thumb img {
    aspect-ratio: 3/2;
    object-fit: cover;
    max-height: 120px;
  }

  .post-summary .summary-article-title {
    padding-top: 0;
    padding-bottom: 6px;
  }

  .post-summary .summary-article-title h1 {
    line-height: 1.2;
  }

  .post-summary .summary-article-excerpt {
    padding-right: 0;
    font-size: 0.88rem;
    -webkit-line-clamp: 5;
  }

  .post-summary .summary-article-byline {
    font-size: 0.78rem;
    display: none;
  }

  hr.post-summary__divider {
    margin: 0.65rem 0 1.1rem;
  }
}

.kg-embed-card{
  padding: 0;
  margin: 0 0 1rem 0;
  width: 100%;
}
.kg-embed-card iframe {
  border: 0;
  width: 100% !important;
  height: auto;
  aspect-ratio: 16 / 9;
}