/* hmmnm.in — designed covers for title-card featured images (mu-plugin hmmnm-covers.php). Sitewide. */
.hx-cover {
  --c1: #2dd4bf; --c2: #0f766e;
  --hx-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', Menlo, Consolas, monospace;
  container-type: inline-size;
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; color: #fff; border-radius: inherit;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c1) 55%, transparent) 0%, transparent 60%), linear-gradient(135deg, #0a1024 0%, color-mix(in srgb, var(--c2) 70%, #0a1024) 100%);
  background-color: #0a1024;
}
.hx-cover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 90%); mask-image: linear-gradient(120deg, transparent 20%, #000 90%); }
.hx-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--c1), transparent); }
.hx-cover-top { position: absolute; left: 16px; right: 16px; top: 14px; left: 4.5cqi; right: 4.5cqi; top: 4cqi; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hx-cover .hx-cover-topic { padding: 5px 9px; border-radius: 7px; background: rgba(2, 6, 23, .45); border: 1px solid rgba(255, 255, 255, .16); font: 600 12px/1 var(--hx-mono) !important; letter-spacing: .06em !important; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.hx-cover .hx-cover-meta { font: 600 12px/1 var(--hx-mono) !important; letter-spacing: .1em !important; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.hx-cover-ico { position: absolute; right: -6%; bottom: -14%; width: 62%; height: auto; max-height: 120%; color: var(--c1); opacity: .5; transition: transform .5s ease; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c1) 60%, transparent)); }
.hx-cover .hx-cover-code { position: absolute; z-index: 1; left: 16px; bottom: 14px; left: 4.5cqi; bottom: 4.5cqi; font: 800 1.8rem/1 var(--hx-mono) !important; font-size: clamp(1.05rem, 8.5cqi, 3.6rem) !important; letter-spacing: -.02em !important; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
/* variants (by post id) so a row of one stream doesn't repeat */
.hx-v1 { background: radial-gradient(110% 90% at 0% 100%, color-mix(in srgb, var(--c1) 50%, transparent) 0%, transparent 60%), linear-gradient(200deg, #0a1024 0%, color-mix(in srgb, var(--c2) 70%, #0a1024) 100%); }
.hx-v1 .hx-cover-ico { right: auto; left: 46%; bottom: auto; top: 12%; width: 46%; transform: rotate(-12deg); opacity: .42; }
.hx-v2 .hx-cover-ico { right: 8%; bottom: 10%; width: 40%; opacity: .6; }
.hx-v2::before { background-image: radial-gradient(circle at 78% 55%, transparent 0 22%, rgba(255, 255, 255, .08) 22.4% 22.8%, transparent 23.2% 34%, rgba(255, 255, 255, .06) 34.4% 34.8%, transparent 35.2%), linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 100% 100%, 26px 26px; }
/* stream colours */
.hx-cover--upsc { --c1: #2dd4bf; --c2: #0f766e; }
.hx-cover--jee { --c1: #a78bfa; --c2: #5b21b6; }
.hx-cover--cat { --c1: #fbbf24; --c2: #b45309; }
.hx-cover--law { --c1: #fb7185; --c2: #9f1239; }
.hx-cover--bank { --c1: #60a5fa; --c2: #1d4ed8; }
.hx-cover--abroad { --c1: #818cf8; --c2: #3730a3; }
.hx-cover--com { --c1: #fb923c; --c2: #c2410c; }
.hx-cover--ca { --c1: #22d3ee; --c2: #0e7490; }
.hx-cover--exam { --c1: #94a3b8; --c2: #334155; }
/* small square thumbs (search results, widgets): icon + code only */
.hx-cover--sq { aspect-ratio: 1 / 1; }
.hx-cover--sq .hx-cover-top { display: none; }
.hx-cover--sq .hx-cover-ico, .hx-cover--sq.hx-v1 .hx-cover-ico, .hx-cover--sq.hx-v2 .hx-cover-ico { left: auto; top: auto; right: -12%; bottom: -12%; width: 78%; transform: none; }
.hx-cover--sq .hx-cover-code { font-size: clamp(.8rem, 15cqi, 1.6rem) !important; }
@container (max-width: 230px) { .hx-cover-top { display: none; } }
/* cards that already carry a category badge: don't repeat it on the cover */
body:not(.home) article:has(.hi-card-eyebrow) .hx-cover-topic, .related-post .hx-cover-topic { display: none; }
.hx-cover-top:has(.hx-cover-topic[style*="none"]) { justify-content: flex-end; }
body:not(.home) article:has(.hi-card-eyebrow) .hx-cover-top, .related-post .hx-cover-top { justify-content: flex-end; }
body.search .thumbnail .hx-cover { height: 100%; }

/* hover zoom inside cards */
a:hover .hx-cover-ico, article:hover .hx-cover-ico { transform: scale(1.05); }
a:hover .hx-v1 .hx-cover-ico, article:hover .hx-v1 .hx-cover-ico { transform: rotate(-12deg) scale(1.05); }

/* list containers: stop the image-loading shimmer, keep the radius */
.blog-entry-thumbnail:has(.hx-cover), #blog-entries .blog-entry-thumbnail:has(.hx-cover), .thumbnail:has(.hx-cover) { animation: none !important; background: none !important; }
.blog-entry-thumbnail a:has(.hx-cover), .thumbnail a:has(.hx-cover), .related-post-media a:has(.hx-cover), .related-thumb:has(.hx-cover) { display: block; text-decoration: none !important; }
body.archive .blog-entry-thumbnail .hx-cover, body.search .blog-entry-thumbnail .hx-cover { height: 100%; }

/* phones: shorter covers so lists stay compact */
@media (max-width: 767px) {
  .hx-cover:not(.hx-cover--sq) { aspect-ratio: 2.4 / 1; }
  body.archive .blog-entry-thumbnail:has(.hx-cover), body.search .blog-entry-thumbnail:has(.hx-cover) { aspect-ratio: 2.4 / 1; }
}
@media (prefers-reduced-motion: reduce) { .hx-cover-ico { transition: none; } }
