/* ==========================================================================
   Teen Patti Master — Blog (listing + article)
   Builds on style.css and pages.css.
   ========================================================================== */

.post-card[hidden],
.blog-empty[hidden] { display: none; }

/* ---------- Shared bits ---------- */
.post-tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5;
  color: var(--gold-100);
  background: rgba(217, 164, 65, .14);
  border: 1px solid rgba(236, 196, 110, .4);
  transition: background-color .2s, color .2s;
}
a.post-tag:hover { color: var(--ink); background: var(--gold-fill); border-color: transparent; }

.post-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 16px;
  font-size: .8125rem; color: var(--muted);
}
.post-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .icon { width: 15px; height: 15px; color: var(--gold-300); }

.author { display: flex; align-items: center; gap: 12px; text-align: left; }
.author__avatar {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #1c2a46, #0a1222);
  border: 1px solid rgba(236, 196, 110, .5);
}
.author__avatar img { width: 34px; }
.author__name { display: block; font-size: .875rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.author__role { display: block; font-size: .75rem; color: var(--muted); }

/* Illustrated covers (reuse .game-art text styles) */
.cover-art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(70% 80% at 50% 45%, rgba(var(--tint), .42), rgba(var(--tint), .06) 60%, transparent 85%),
    linear-gradient(160deg, #111d36, #060b17);
  transition: transform .6s var(--ease);
}
.cover-art .game-art { width: 70%; max-height: 86%; }
.game-art .cover-18 { font-family: var(--font); font-weight: 700; font-size: 25px; fill: url(#g-gold); }

/* ==========================================================================
   Listing
   ========================================================================== */
.blog-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(48px, 6vw, 88px) clamp(136px, 13vw, 176px);
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(245, 205, 110, .14), transparent 70%),
    radial-gradient(40% 50% at 92% 100%, rgba(67, 213, 242, .08), transparent 70%),
    var(--bg-1);
}
.blog-hero__suits { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blog-hero__suits svg {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  rotate: var(--r, 0deg);
  color: var(--gold-300);
  opacity: .08;
  animation: float 9s var(--d, 0s) ease-in-out infinite;
}
.blog-hero__suits svg.is-cyan { color: var(--cyan); opacity: .07; }
.blog-hero__content { max-width: 760px; margin-inline: auto; }
.blog-hero .breadcrumb ol { justify-content: center; }
.blog-hero__title,
.post-hero__title,
.featured-post__title { text-wrap: balance; }
.blog-hero__title {
  font-size: clamp(2.25rem, 1.3rem + 3vw, 3.5rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
}
.blog-hero__lead { max-width: 580px; margin: 16px auto 0; color: #b9c2d3; }
.blog-hero__streak { bottom: 0; }

.blog-search { position: relative; max-width: 580px; margin: 32px auto 0; }
.blog-search .input {
  min-height: 60px;
  padding: 0 136px 0 54px;
  border-radius: 999px;
  background: rgba(4, 8, 17, .78);
  border-color: rgba(236, 196, 110, .3);
  box-shadow: 0 20px 40px -24px #000;
}
.blog-search .input::-webkit-search-cancel-button { filter: invert(80%) sepia(40%) saturate(500%) hue-rotate(360deg); cursor: pointer; }
.blog-search__icon { position: absolute; left: 22px; top: 50%; translate: 0 -50%; color: var(--gold-300); pointer-events: none; }
.blog-search .btn { --h: 48px; position: absolute; right: 6px; top: 6px; padding: 0 22px; }

/* Featured post */
.featured { position: relative; z-index: 2; margin-top: -100px; }
.featured-post {
  position: relative; overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(245, 205, 110, .08), transparent 70%),
    linear-gradient(180deg, #0f1a31, #070d1a);
  border: 1px solid rgba(236, 196, 110, .32);
  box-shadow: 0 40px 80px -40px #000, inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .35s, box-shadow .35s;
}
.featured-post:hover { border-color: rgba(236, 196, 110, .6); box-shadow: 0 40px 80px -40px #000, 0 0 60px -30px rgba(245, 205, 110, .5); }
.featured-post__media { position: relative; min-height: 380px; overflow: hidden; }
.featured-post__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 72% center;
  transition: transform .8s var(--ease);
}
.featured-post:hover .featured-post__media img { transform: scale(1.04); }
.featured-post__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, #0d172c 100%);
}
.featured-post__badge {
  position: absolute; left: 20px; top: 20px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-fill);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .7);
}
.featured-post__badge .icon { width: 13px; height: 13px; }
.featured-post__body {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px;
  padding: clamp(24px, 3.5vw, 44px);
}
.featured-post__title { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.125rem); line-height: 1.2; }
.featured-post__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.featured-post__excerpt { color: var(--muted); }
.featured-post__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; margin-top: 4px; padding-top: 20px;
  border-top: 1px solid rgba(236, 196, 110, .14);
}
.featured-post__cta { position: relative; z-index: 1; pointer-events: none; }
.featured-post .post-tag { position: relative; z-index: 1; }

/* Toolbar */
.blog-list { padding-top: clamp(48px, 6vw, 72px); }
.blog-list__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px;
  margin-bottom: 24px;
}
.blog-list__title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
.blog-count { font-size: .875rem; color: var(--muted); }
.blog-count b { color: var(--gold-300); font-weight: 600; }

.chips {
  display: flex; gap: 8px;
  margin-bottom: 28px; padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
html:not(.js) .chips { display: none; }
.chip {
  flex: none;
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
  font-size: .875rem; font-weight: 500; color: var(--text-2);
  transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.chip:hover { border-color: rgba(236, 196, 110, .45); color: var(--gold-100); }
.chip[aria-pressed="true"] {
  color: var(--ink);
  background: var(--gold-fill);
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 8px 20px -10px rgba(226, 168, 62, .7);
}

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(236, 196, 110, .14);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 196, 110, .5);
  box-shadow: 0 26px 50px -26px #000, 0 0 40px -22px rgba(245, 205, 110, .5);
}
.post-card:has(a:focus-visible),
.featured-post:has(a:focus-visible) { outline: 2px solid var(--gold-300); outline-offset: 3px; }
.post-card a:focus-visible,
.featured-post__title a:focus-visible { outline: none; }

.post-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a1224; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img,
.post-card:hover .cover-art { transform: scale(1.05); }
.post-card__media .post-tag { position: absolute; left: 14px; top: 14px; z-index: 1; background: rgba(5, 9, 18, .82); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.post-card__title { margin-top: 10px; font-size: 1.125rem; line-height: 1.35; }
.post-card__title a { transition: color .2s; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card:hover .post-card__title a { color: var(--gold-100); }
.post-card__excerpt {
  margin-top: 8px;
  font-size: .875rem; line-height: 1.6; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 16px;
  font-size: .875rem; font-weight: 600; color: var(--gold-300);
}
.post-card__more .icon { transition: transform .25s var(--ease); }
.post-card:hover .post-card__more .icon { transform: translateX(4px); }

.blog-empty {
  display: grid; justify-items: center; gap: 12px;
  padding: 56px 24px;
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(236, 196, 110, .3);
  text-align: center;
}
.blog-empty .medal { margin: 0 0 6px; }
.blog-empty h3 { font-size: 1.25rem; }
.blog-empty p { max-width: 420px; color: var(--muted); }
.blog-empty .btn { margin-top: 8px; }

/* ==========================================================================
   Article
   ========================================================================== */
.read-progress {
  position: fixed; left: 0; top: var(--header-h); z-index: 99;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold-300), var(--cyan));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

.post-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: clamp(40px, 5vw, 72px);
  text-align: center;
  background:
    radial-gradient(50% 50% at 50% 0%, rgba(245, 205, 110, .13), transparent 70%),
    var(--bg-1);
}
.post-hero__inner { max-width: 880px; margin-inline: auto; }
.post-hero .breadcrumb ol { justify-content: center; }
.post-hero__title {
  margin-top: 16px;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -.02em;
}
.post-hero__lead { max-width: 700px; margin: 18px auto 0; font-size: 1.0625rem; color: #b9c2d3; }
.post-hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 16px 28px;
  margin-top: 28px;
}

.share { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { margin-right: 4px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.share__btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--gold-300);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(236, 196, 110, .3);
  transition: color .2s, background-color .2s, border-color .2s, transform .2s var(--ease);
}
.share__btn .icon { width: 17px; height: 17px; }
.share__btn:hover { color: var(--ink); background: var(--gold-fill); border-color: transparent; transform: translateY(-2px); }
.share__status { font-size: .8125rem; font-weight: 500; color: var(--gold-300); }
.share__status:empty { display: none; }

.post-cover { margin-top: clamp(32px, 4vw, 48px); }
.post-cover__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(236, 196, 110, .3);
  box-shadow: 0 40px 80px -40px #000;
}
.post-cover__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.post-cover figcaption { margin-top: 12px; text-align: center; font-size: .8125rem; color: var(--muted); }

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 64px) clamp(48px, 5vw, 72px);
}
.post-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }

/* Table of contents */
.toc {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(236, 196, 110, .18);
}
.toc__title { margin-bottom: 12px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: flex; gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: .875rem; line-height: 1.4; color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.toc a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  flex: none;
  padding-top: 1px;
  font-size: .75rem; font-weight: 600; color: var(--muted);
}
.toc a:hover { color: var(--gold-100); background: rgba(255, 255, 255, .03); }
.toc a.is-active { color: var(--gold-100); background: rgba(217, 164, 65, .12); }
.toc a.is-active::before { color: var(--gold-300); }

.toc--mobile { display: none; margin-bottom: 32px; padding: 0; }
.toc--mobile summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
  list-style: none; cursor: pointer;
  font-weight: 600; color: var(--text);
}
.toc--mobile summary::-webkit-details-marker { display: none; }
.toc--mobile summary .icon { color: var(--gold-300); transition: transform .25s var(--ease); }
.toc--mobile[open] summary .icon { transform: rotate(180deg); }
.toc--mobile ol { padding: 0 12px 14px; }

.aside-cta {
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(245, 205, 110, .16), transparent 70%),
    linear-gradient(180deg, #111d36, #070d1a);
  border: 1px solid rgba(236, 196, 110, .38);
}
.aside-cta img { width: 112px; margin: 0 auto 14px; }
.aside-cta h2 { font-size: 1.125rem; }
.aside-cta p { margin-top: 6px; font-size: .875rem; color: var(--muted); }
.aside-cta .btn { width: 100%; margin-top: 18px; }
.aside-cta small { display: block; margin-top: 10px; font-size: .6875rem; color: var(--muted); }

/* Prose */
.prose { font-size: 1.0625rem; line-height: 1.8; color: #c8cfdc; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.4em;
  font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem); line-height: 1.25;
  scroll-margin-top: 16px;
}
.prose h2::before {
  content: ""; display: block;
  width: 40px; height: 3px; margin-bottom: 14px;
  border-radius: 2px;
  background: var(--gold-fill);
}
.prose > h3 { margin-top: 1.8em; font-size: 1.25rem; color: var(--gold-100); }
.prose a:not(.btn):not(.post-tag) {
  color: var(--gold-300);
  text-decoration: underline;
  text-decoration-color: rgba(245, 205, 110, .4);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.prose a:not(.btn):not(.post-tag):hover { color: var(--gold-100); text-decoration-color: currentColor; }
.prose strong { font-weight: 600; color: var(--text); }
.prose__intro { font-size: 1.1875rem; line-height: 1.75; color: var(--text); }

.prose > ul,
.prose > ol:not(.hand-ranks) { display: grid; gap: 10px; }
.prose > ul > li { position: relative; padding-left: 26px; }
.prose > ul > li::before {
  content: ""; position: absolute; left: 4px; top: .7em;
  width: 8px; height: 8px;
  background: var(--gold-300);
  transform: rotate(45deg);
  border-radius: 1px;
}
.prose > ol:not(.hand-ranks) { counter-reset: step; }
.prose > ol:not(.hand-ranks) > li { position: relative; padding-left: 44px; counter-increment: step; }
.prose > ol:not(.hand-ranks) > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .8125rem; font-weight: 700; line-height: 1;
  color: var(--ink);
  background: var(--gold-fill);
}

/* Callouts */
.callout {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  font-size: 1rem; line-height: 1.7;
  background: rgba(217, 164, 65, .07);
  border: 1px solid rgba(236, 196, 110, .32);
}
.callout__title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-300);
}
.callout__title .icon { width: 18px; height: 18px; }
.callout--tip { background: rgba(67, 213, 242, .06); border-color: rgba(67, 213, 242, .3); }
.callout--tip .callout__title { color: var(--cyan); }
.callout .checklist { gap: 8px; }
.callout .checklist li { padding: 0; background: none; border: 0; font-size: .9375rem; }

/* Hand rankings */
.hand-ranks { display: grid; gap: 12px; }
.hand-rank {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(236, 196, 110, .14);
  transition: border-color .3s;
}
.hand-rank:hover { border-color: rgba(236, 196, 110, .45); }
.hand-rank:first-child { border-color: rgba(236, 196, 110, .45); background: linear-gradient(90deg, rgba(217, 164, 65, .12), rgba(7, 12, 24, .86) 60%); }
.hand-rank__pos {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: .9375rem; font-weight: 700;
  color: var(--gold-300);
  border: 1.5px solid rgba(236, 196, 110, .55);
  background: radial-gradient(circle at 50% 30%, #1c2a46, #0a1222);
}
.hand-rank__name { font-size: 1.0625rem; line-height: 1.3; color: var(--text); }
.hand-rank__name small { margin-left: 6px; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.hand-rank__desc { margin-top: 4px; font-size: .875rem; line-height: 1.6; color: var(--muted); }

/* Glossary */
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.glossary > div {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .07);
}
.glossary dt { font-weight: 600; color: var(--gold-100); }
.glossary dd { margin: 4px 0 0; font-size: .9375rem; line-height: 1.6; color: var(--muted); }

/* Inline CTA */
.post-cta {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 20px 28px 20px 12px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 100% at 0% 50%, rgba(245, 190, 90, .2), transparent 70%),
    linear-gradient(180deg, #0f1a31, #070d1a);
  border: 1px solid rgba(236, 196, 110, .38);
}
.post-cta img { width: 100%; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .55)); }
.post-cta h3 { font-size: 1.25rem; line-height: 1.3; color: var(--text); }
.post-cta p { margin-top: 6px; font-size: .9375rem; color: var(--muted); }
.post-cta .btn { margin-top: 16px; }

/* Post footer */
.post-foot {
  display: grid; gap: 24px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(236, 196, 110, .16);
}
.post-foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tags__label { margin-right: 4px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.author-box {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(236, 196, 110, .18);
}
.author-box .author__avatar { width: 64px; height: 64px; }
.author-box .author__avatar img { width: 50px; }
.author-box h2 { font-size: 1.0625rem; }
.author-box p { margin-top: 6px; font-size: .9375rem; line-height: 1.65; color: var(--muted); }

.related { padding-top: 0; }


/* Blog pagination */
.blog-pagination { display:flex; align-items:center; justify-content:center; gap:10px; margin-top:38px; flex-wrap:wrap; }
.pagination-pages { display:flex; align-items:center; gap:8px; }
.pagination-page, .pagination-btn { min-width:42px; height:42px; padding:0 14px; display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(236,196,110,.25); border-radius:10px; color:var(--text,#fff); background:rgba(255,255,255,.04); text-decoration:none; font-weight:600; transition:.2s ease; }
.pagination-page:hover, .pagination-btn:hover { border-color:rgba(236,196,110,.65); transform:translateY(-1px); }
.pagination-page.is-active { background:linear-gradient(135deg,#f3c65f,#a8741f); color:#101522; border-color:#f3c65f; }
.pagination-btn.is-disabled { opacity:.4; cursor:not-allowed; }
@media (max-width:640px) { .blog-pagination{gap:7px}.pagination-pages{gap:5px}.pagination-page,.pagination-btn{min-width:38px;height:38px;padding:0 10px;font-size:.9rem} }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .featured { margin-top: -88px; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post__media { min-height: 0; aspect-ratio: 16 / 8; }
  .featured-post__media::after { background: linear-gradient(0deg, #0b152a 0%, transparent 40%); }

  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; }
  .toc--side { display: none; }
  .toc--mobile { display: block; }
  .aside-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; text-align: left; }
  .aside-cta img { grid-row: span 3; width: 96px; margin: 0; }
  .aside-cta .btn { grid-column: 3; grid-row: 1 / span 3; width: auto; margin: 0; }
  .aside-cta small { margin-top: 0; }
}

@media (max-width: 760px) {
  .glossary { grid-template-columns: 1fr; }
  .post-cta { grid-template-columns: 1fr; padding: 8px 20px 24px; text-align: center; }
  .post-cta img { max-width: 240px; margin-inline: auto; }
  .aside-cta { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .aside-cta img { grid-row: auto; }
  .aside-cta .btn { grid-column: auto; grid-row: auto; width: 100%; margin-top: 10px; }
}

@media (max-width: 640px) {
  .blog-hero { padding-bottom: 120px; }
  .blog-hero__suits svg:nth-child(n + 4) { display: none; }
  .blog-search .input { min-height: 56px; padding-right: 20px; padding-left: 50px; }
  .blog-search .btn { display: none; }

  .featured { margin-top: -80px; }
  .featured-post__media { aspect-ratio: 16 / 10; }
  .featured-post__body { padding: 22px 18px 24px; }
  .featured-post__foot { flex-direction: column; align-items: flex-start; }
  .featured-post__cta { width: 100%; }

  .blog-list__head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .chips {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .post-grid { grid-template-columns: 1fr; gap: 16px; }

  .post-hero__meta { gap: 16px; }
  .post-cover__frame { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
  .prose { font-size: 1rem; }
  .prose__intro { font-size: 1.0625rem; }
  .callout { padding: 18px; }

  .hand-rank { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 16px; }
  .hand-rank .hand { grid-column: 2; }
  .hand-rank__pos { width: 34px; height: 34px; font-size: .875rem; }

  .post-foot__row { flex-direction: column; align-items: flex-start; }
  .author-box { flex-direction: column; }
}
