@media (max-width: 839px) {
  body.post-page {
    --post-reader-scale: 1;
    padding: 0;
    background: #030812;
    color: #eff6ff;
  }

  body.post-page::before {
    opacity: 0.48;
    background-image:
      linear-gradient(rgba(98, 232, 255, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(98, 232, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: none;
  }

  body.post-page .site-shell {
    width: min(100%, 680px);
    margin: 0 auto;
    overflow: hidden;
    border: 0;
    background: #030812;
  }

  .post-breadcrumb {
    gap: 7px;
    padding: 13px 16px 11px;
    color: #93a7bc;
    font-size: 0.67rem;
    letter-spacing: 0;
  }

  .post-breadcrumb a {
    color: #cfe2f5;
  }

  .post-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0 12px;
  }

  .post-cover {
    order: 1;
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .post-cover img {
    width: 100%;
    height: min(64vw, 270px);
    min-height: 210px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.96) contrast(1.03) brightness(0.9);
  }

  .post-cover::after {
    height: 32%;
    background: linear-gradient(180deg, transparent, rgba(3, 8, 18, 0.72));
  }

  .post-hero-copy {
    order: 2;
    padding: 22px 20px 14px;
    background: #030812;
  }

  .post-kicker {
    margin-bottom: 10px;
    color: #a9bbce;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .post-kicker::before {
    height: 20px;
  }

  .post-category {
    margin-bottom: 12px;
    font-size: 0.72rem;
  }

  .post-hero h1 {
    max-width: 100%;
    font-size: 1.72rem;
    line-height: 1.42;
    letter-spacing: 0;
  }

  .post-hero p:not(.post-kicker):not(.post-trust) {
    width: 100%;
    margin-top: 14px;
    color: #cddaea;
    font-size: 0.96rem;
    line-height: 1.8;
  }

  .post-meta {
    gap: 6px;
    margin-top: 15px;
  }

  .post-meta time,
  .post-tag,
  .post-read-time {
    min-height: 27px;
    padding: 3px 8px;
    font-size: 0.68rem;
  }

  .post-trust {
    margin-top: 12px;
    color: #8fa5bb;
    font-size: 0.72rem;
    line-height: 1.65;
  }

  .post-reader-tools {
    grid-template-columns: minmax(0, 1fr) auto;
    width: auto;
    margin: 0 16px 22px;
    padding: 14px;
  }

  .post-reader-summary small {
    display: none;
  }

  .post-font-controls {
    grid-template-columns: repeat(3, 36px);
  }

  .post-font-controls > span {
    display: none;
  }

  .post-font-controls button {
    width: 36px;
    height: 36px;
  }

  .post-content-wrap {
    grid-template-columns: 1fr;
    padding: 0 0 28px;
  }

  .post-side {
    display: none;
  }

  .post-content {
    order: 1;
    padding: 4px 20px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .post-content > :first-child {
    margin-top: 0;
  }

  .post-content h2,
  .post-content .block-heading:is(h2) {
    scroll-margin-top: 80px;
    margin: 1.85em 0 0.72em;
    padding: 12px 13px;
    border: 0;
    border-top: 1px solid rgba(98, 232, 255, 0.28);
    border-bottom: 1px solid rgba(98, 232, 255, 0.16);
    border-radius: 0;
    background: linear-gradient(90deg, rgba(98, 232, 255, 0.11), rgba(98, 232, 255, 0.01));
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.5;
  }

  .post-content h3 {
    scroll-margin-top: 80px;
    margin: 1.65em 0 0.62em;
    padding-left: 11px;
    border-left: 3px solid var(--cyan);
    color: #f1f7ff;
    font-size: 1.16rem;
    line-height: 1.55;
  }

  .post-content h4 {
    color: #e4effb;
    font-size: 1.04rem;
  }

  .post-content p,
  .post-content .block-text,
  .post-content li {
    color: #dbe7f4;
    font-size: calc(1.02rem * var(--post-reader-scale));
    line-height: 2;
  }

  .post-content .block-text {
    margin: 0 0 1.25em;
  }

  .post-content ul,
  .post-content ol {
    margin: 1em 0 1.35em;
    padding-left: 1.35em;
  }

  .post-content li + li {
    margin-top: 0.5em;
  }

  .post-content a {
    color: #6cecff;
    text-decoration-thickness: 1px;
  }

  .post-content blockquote {
    margin: 24px 0;
    padding: 16px 16px 16px 18px;
    border-left: 3px solid #e6c36a;
    background: rgba(230, 195, 106, 0.07);
    color: #f0e6c9;
  }

  .post-content table {
    display: block;
    width: 100%;
    margin: 22px 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.86rem;
  }

  .post-content th,
  .post-content td {
    min-width: 120px;
    padding: 10px;
    border: 1px solid rgba(98, 232, 255, 0.18);
    text-align: left;
  }

  .post-content th {
    background: rgba(98, 232, 255, 0.09);
    color: #fff;
  }

  .block-image {
    margin: 26px -20px;
  }

  .block-image img {
    width: 100%;
    border-inline: 0;
    border-radius: 0;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.4);
  }

  .block-image figcaption {
    padding: 0 20px;
    color: #91a6bb;
    font-size: 0.72rem;
  }

  .block-code {
    margin-inline: -6px;
  }

  .block-html,
  .block-design {
    max-width: 100%;
    overflow-x: auto;
  }

  .post-share-strip {
    flex-wrap: wrap;
    gap: 10px;
    padding: 24px 18px;
    background: #06101d;
  }

  .post-share-strip > span {
    flex: 1 0 100%;
    text-align: center;
  }

  .post-share-strip a,
  .post-copy-link {
    min-width: 50px;
    height: 42px;
    border-radius: 7px;
  }

  .post-share-status {
    flex: 1 0 100%;
    text-align: center;
  }

  .post-action-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 13px;
    margin: 0 14px 34px;
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #081727, #040a13);
  }

  .post-action-media img {
    height: 82px;
    aspect-ratio: auto;
  }

  .post-action-copy h2 {
    font-size: 1rem;
  }

  .post-action-copy span {
    font-size: 0.72rem;
  }

  .post-action-button {
    grid-column: 1 / -1;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--cyan), #3ca2ff);
    color: #03101b;
    font-size: 0.86rem;
    font-weight: 900;
  }

  .related-section {
    padding: 34px 16px;
    background: #050d18;
  }

  .related-section .section-head {
    margin-bottom: 16px;
  }

  .related-section .article-grid {
    gap: 10px;
  }

  .related-section .article-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 126px;
    border-radius: 8px;
    box-shadow: none;
  }

  .related-section .card-media {
    min-height: 126px;
    aspect-ratio: auto;
  }

  .related-section .card-body {
    align-content: center;
    gap: 7px;
    padding: 11px;
  }

  .related-section .card-body h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .related-section .card-meta {
    gap: 5px;
    font-size: 0.62rem;
  }

  .related-section .read-link {
    display: none;
  }

  body.post-page .blog-footer {
    display: grid;
    gap: 18px;
    padding: 28px 18px 82px;
    background: #020711;
  }

  body.post-page .blog-footer nav {
    gap: 9px 14px;
  }

  body.post-page .blog-footer a {
    color: #b8c9da;
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .post-reader-tools {
    grid-template-columns: 1fr;
  }

  .post-font-controls {
    justify-content: start;
  }

  .post-hero h1 {
    font-size: 1.52rem;
  }

  .post-content {
    padding-inline: 17px;
  }

  .block-image {
    margin-inline: -17px;
  }

  .related-section .article-card {
    grid-template-columns: 98px minmax(0, 1fr);
  }
}

/* Premium article footer */
body.post-page .post-premium-footer {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  background:
    linear-gradient(145deg, rgba(16, 30, 42, 0.54) 0%, transparent 36%),
    linear-gradient(180deg, #05080c 0%, #020305 100%);
  color: #f4f6f8;
}

.post-premium-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 76%);
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.post-footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8a96b 22%, #77d5ef 72%, transparent);
  box-shadow: 0 0 18px rgba(119, 213, 239, 0.24);
}

.post-footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.post-footer-intro {
  display: block;
  padding: 76px 0 68px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.post-footer-overline {
  margin: 0 0 20px;
  color: #c8a96b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

body.post-page .post-premium-footer .post-footer-overline {
  width: 100%;
  max-width: none;
  margin: 0 auto 20px;
  text-align: center;
}

.post-footer-intro h2 {
  margin: 0;
  color: #f7f8f9;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.post-footer-intro h2 em {
  color: #d8bd85;
  font-style: normal;
  font-weight: 500;
}

.post-footer-lead {
  width: min(100%, 660px);
  margin: 24px auto 0;
  color: #aab5bf;
  font-size: 0.95rem;
  line-height: 2;
}

body.post-page .post-premium-footer .post-footer-lead {
  width: min(100%, 660px);
  max-width: 660px;
  margin: 24px auto 0;
  text-align: center;
}

.post-footer-actions {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 10px;
  margin: 28px auto 0;
}

.post-footer-primary,
.post-footer-secondary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.post-footer-primary {
  justify-content: space-between;
  gap: 18px;
  padding: 10px 16px 10px 18px;
  background: #f1f4f5;
  color: #071018;
  font-size: 0.86rem;
  font-weight: 900;
}

body.post-page .post-premium-footer .post-footer-primary {
  position: relative;
  justify-content: center;
  color: #071018;
  text-align: center;
}

.post-footer-primary small {
  display: block;
  margin-bottom: 2px;
  color: #7d6740;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.post-footer-primary img {
  position: absolute;
  right: 16px;
  flex: 0 0 auto;
  filter: brightness(0) saturate(100%);
}

.post-footer-secondary {
  padding: 10px 14px;
  border: 1px solid rgba(216, 189, 133, 0.38);
  color: #d8bd85;
  font-size: 0.78rem;
  font-weight: 700;
}

body.post-page .post-premium-footer .post-footer-secondary {
  color: #d8bd85;
}

.post-footer-primary:hover,
.post-footer-secondary:hover {
  transform: translateY(-2px);
}

.post-footer-primary:hover {
  box-shadow: 0 14px 34px rgba(119, 213, 239, 0.12);
}

.post-footer-secondary:hover {
  border-color: #d8bd85;
  background: rgba(216, 189, 133, 0.08);
}

.post-footer-directory {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 42px;
  padding: 52px 0 48px;
  text-align: center;
}

.post-footer-brand {
  align-self: start;
  width: min(300px, 100%);
  display: block;
  margin-inline: auto;
}

.post-footer-brand img {
  width: 100%;
  height: auto;
  display: block;
}

.post-footer-navs {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.post-footer-navs nav {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 13px;
  text-align: center;
}

body.post-page .post-footer-navs p {
  margin: 0 0 5px;
  color: #778793;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

body.post-page .post-footer-navs a {
  position: relative;
  color: #d9dfe3;
  font-size: 0.82rem;
  text-decoration: none;
}

body.post-page .post-footer-navs a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: #c8a96b;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

body.post-page .post-footer-navs a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.post-footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 18px 28px;
  padding: 22px 0 calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.post-page .post-footer-social,
body.post-page .post-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: center;
}

body.post-page .post-footer-social a,
body.post-page .post-footer-legal a {
  color: #a9b4bd;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
}

.post-footer-social span {
  color: #77d5ef;
}

body.post-page .post-footer-legal {
  justify-content: center;
}

.post-footer-bottom > p {
  margin: 0;
  color: #53616c;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-align: center;
}

@media (max-width: 700px) {
  body.post-page .post-premium-footer {
    padding: 0;
  }

  .post-footer-inner {
    width: min(100% - 36px, 560px);
  }

  .post-footer-intro {
    display: block;
    padding: 50px 0 44px;
    text-align: center;
  }

  body.post-page .post-premium-footer .post-footer-overline {
    width: min(100%, 270px);
    max-width: 270px;
    margin-inline: auto;
    margin-bottom: 16px;
    font-size: 0.59rem;
    line-height: 1.7;
    letter-spacing: 0.09em;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .post-footer-intro h2 {
    font-size: 1.84rem;
    line-height: 1.35;
  }

  .post-footer-lead {
    margin-top: 20px;
    font-size: 0.82rem;
    line-height: 1.9;
  }

  .post-footer-actions {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 24px;
  }

  .post-footer-primary,
  .post-footer-secondary {
    min-height: 54px;
  }

  body.post-page .post-premium-footer .post-footer-primary {
    position: relative;
    justify-content: center;
    text-align: center;
  }

  .post-footer-primary img {
    position: absolute;
    right: 16px;
  }

  .post-footer-directory {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    padding: 42px 0 38px;
  }

  .post-footer-brand {
    width: min(260px, 78vw);
    margin-inline: auto;
  }

  .post-footer-navs {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  body.post-page .post-footer-navs nav {
    min-width: 0;
    display: grid;
    align-content: start;
    justify-items: center;
    justify-content: stretch;
    gap: 12px;
    text-align: center;
  }

  body.post-page .post-footer-navs a {
    max-width: 100%;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
  }

  .post-footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 20px;
  }

  body.post-page .post-footer-legal {
    justify-content: center;
  }

  body.post-page .post-footer-social {
    justify-content: center;
  }

  .post-footer-bottom > p {
    text-align: center;
  }
}

@media (max-width: 360px) {
  .post-footer-intro h2 {
    font-size: 1.68rem;
  }

  .post-footer-navs {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-footer-primary,
  .post-footer-secondary,
  body.post-page .post-footer-navs a::after {
    transition: none;
  }
}
