/* Punjabi Mania editorial article layout. Loaded after premium-post.css. */
.pm-reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 25000;
  height: 3px;
  pointer-events: none;
}

.pm-reading-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ed1e24, #ff754f);
  box-shadow: 0 0 14px rgba(237, 30, 36, 0.45);
  transition: width 90ms linear;
}

.pm-post-v2 {
  --post-content-width: 730px;
  --post-sidebar-width: 300px;
  --post-gap: 36px;
  --post-font-size: clamp(1.08rem, 0.99rem + 0.22vw, 1.18rem);
  --post-line-height: 1.76;
  padding: 24px 0 70px;
  overflow: clip;
}

.pm-post-v2 *,
.pm-post-v2 *::before,
.pm-post-v2 *::after { box-sizing: border-box; }

.pm-post-v2 .pm-post-container {
  width: min(1240px, calc(100% - 40px));
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--post-sidebar-width);
  gap: var(--post-gap);
}

.pm-post-v2 .pm-main-column {
  min-width: 0;
  padding: clamp(22px, 3.3vw, 48px);
  border: 1px solid var(--pm-border);
  border-radius: 28px;
  background: color-mix(in srgb, var(--pm-surface) 96%, transparent);
  box-shadow: 0 18px 60px rgba(17, 24, 39, 0.07);
  overflow: visible;
}

html.dark-theme .pm-post-v2 .pm-main-column {
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.26);
}

.pm-post-v2 .pm-post-header {
  max-width: 840px;
  margin: 0 auto 28px;
  padding: 0;
}

.pm-post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 15px;
  color: var(--pm-text-muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.pm-post-breadcrumb a { color: inherit; text-decoration: none; }
.pm-post-breadcrumb a:hover { color: var(--color-primary); }
.pm-post-breadcrumb .material-symbols-outlined { font-size: 15px; }

.pm-post-v2 .pm-post-category {
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-decoration: none;
}

.pm-post-v2 .pm-post-title {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(2rem, 1.35rem + 2.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.pm-post-deck {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--pm-text-muted);
  font-size: clamp(1rem, 0.91rem + 0.35vw, 1.22rem);
  line-height: 1.55;
}

.pm-post-v2 .pm-post-meta {
  gap: 10px 18px;
  padding: 14px 0;
  border-color: var(--pm-border);
}

.pm-post-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.pm-post-header-actions .pm-action-button { box-shadow: none; }

.pm-post-v2 .pm-entity-tags-header {
  margin-top: 15px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pm-post-v2 .pm-entity-tags-header::-webkit-scrollbar { display: none; }

.pm-post-v2 .pm-featured-image-wrapper {
  max-width: 920px;
  margin: 0 auto 42px;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.14);
}

.pm-post-v2 .pm-featured-image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.pm-post-v2 .pm-article-content,
.pm-post-v2 .pm-author-bio-box,
.pm-post-v2 .pm-post-reaction-panel,
.pm-post-v2 .pm-ad-bottom,
.pm-post-v2 #ajax-related-container,
.pm-post-v2 #comments-app,
.pm-post-v2 .pm-story-context {
  width: min(100%, var(--post-content-width));
  margin-left: auto;
  margin-right: auto;
}

.pm-post-v2 .pm-article-content {
  min-width: 0;
  font-size: var(--post-font-size);
  line-height: var(--post-line-height);
}

.pm-post-v2 .pm-article-content > * { max-width: 100%; }
.pm-post-v2 .pm-article-content p { margin: 0 0 1.55em; }
.pm-post-v2 .pm-article-content table { display: block; max-width: 100%; overflow-x: auto; }
.pm-post-v2 .pm-article-content iframe,
.pm-post-v2 .pm-article-content video { max-width: 100%; }

html[lang^="pa"] .pm-post-v2 .pm-article-content p:first-of-type::first-letter,
.pm-post-v2.is-short-post .pm-article-content p:first-of-type::first-letter { all: unset; }

.pm-post-v2 .pm-author-bio-box {
  margin-top: 42px !important;
  padding: 20px !important;
  border-radius: 18px !important;
  box-shadow: none;
}

.pm-post-reaction-panel {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--pm-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(237, 30, 36, 0.12), transparent 42%),
    var(--pm-surface);
}

.pm-story-context {
  margin-top: 34px;
  padding: 15px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--pm-border);
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 8%, var(--pm-surface)), var(--pm-surface));
}

.pm-story-context > img {
  width: 90px;
  height: 135px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.pm-story-context h2 {
  margin: 4px 0 3px;
  color: var(--pm-text);
  font: 820 1.25rem/1.25 var(--font-heading, system-ui, sans-serif);
}

.pm-story-context p { margin: 0 0 12px; color: var(--pm-text-muted); font-size: 0.82rem; font-weight: 720; }
.pm-story-context-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-story-context-actions .pm-action-button { min-height: 40px; padding: 0 13px; box-shadow: none; font-size: 0.76rem; }

.pm-section-kicker {
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pm-post-reaction-copy h2 {
  margin: 5px 0 7px;
  color: var(--pm-text);
  font: 820 clamp(1.25rem, 1.05rem + 0.7vw, 1.7rem)/1.25 var(--font-heading, system-ui, sans-serif);
}

.pm-post-reaction-copy p {
  margin: 0 0 18px;
  color: var(--pm-text-muted);
  font-size: 0.9rem;
}

.pm-post-reaction-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pm-post-reaction-panel .pm-vote-btn {
  min-width: 0;
  min-height: 50px;
  padding: 10px 14px;
  flex-direction: row;
  gap: 8px;
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  background: var(--pm-bg);
  color: var(--pm-text);
  font: 780 0.88rem/1 var(--font-body, system-ui, sans-serif);
}

.pm-post-reaction-panel .pm-vote-btn .material-symbols-outlined { font-size: 20px; }
.pm-post-reaction-panel .pm-vote-like.active { color: #087a3d; border-color: #22c55e; background: rgba(34, 197, 94, 0.12); }
.pm-post-reaction-panel .pm-vote-dislike.active { color: #c32626; border-color: #ef4444; background: rgba(239, 68, 68, 0.1); }

.pm-post-reaction-panel .pm-vote-count {
  margin-left: auto;
  min-width: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  text-align: center;
  background: color-mix(in srgb, var(--pm-text) 7%, transparent);
}

.pm-sentiment-summary {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  color: var(--pm-text-muted);
  font-size: 0.76rem;
  font-weight: 720;
}

.pm-post-reaction-panel .pm-sentiment-track {
  height: 6px;
  overflow: hidden;
}
.pm-post-reaction-panel .pm-sentiment-fill-like,
.pm-post-reaction-panel .pm-sentiment-fill-dislike { min-width: 0; }

.pm-reaction-error {
  min-height: 0;
  margin-top: 9px;
  color: #d22b32;
  font-size: 0.82rem;
  font-weight: 700;
}

.pm-post-v2 #ajax-related-container { min-height: 220px !important; margin-top: 44px !important; }
.pm-post-v2 #comments-app {
  scroll-margin-top: 100px;
  margin-top: 50px;
  padding: 22px;
  border: 1px solid var(--pm-border);
  border-radius: 20px;
  background: var(--pm-surface);
}

html.dark-theme .comments-section .comments-header { border-color: var(--pm-border); }
html.dark-theme .comments-section .badge,
html.dark-theme .comments-section .user-avatar-small { background: rgba(255, 255, 255, 0.09); color: var(--pm-text-muted); }
html.dark-theme .comments-section .comment-meta,
html.dark-theme .comments-section .comment-footer { color: var(--pm-text-muted); }

.pm-post-v2 .pm-sidebar { top: 92px; min-width: 0; }
.pm-post-v2 .pm-sidebar .pm-ad-slot { margin-top: 0; }
.pm-post-v2 .pm-floating-share-v2 { display: none !important; }
body.pm-share-open { overflow: hidden; }

@media (max-width: 1023px) {
  .pm-post-v2 .pm-post-container { grid-template-columns: minmax(0, 1fr); width: min(880px, calc(100% - 32px)); }
  .pm-post-v2 .pm-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

@media (max-width: 760px) {
  .pm-post-v2 { padding-top: 10px; padding-bottom: 100px; }
  .pm-post-v2 .pm-post-container { width: 100%; gap: 24px; }
  .pm-post-v2 .pm-main-column { padding: 20px 16px 30px; border-width: 1px 0; border-radius: 0; }
  .pm-post-v2 .pm-post-header { margin-bottom: 20px; }
  .pm-post-v2 .pm-post-title { font-size: clamp(2rem, 9.2vw, 3rem); letter-spacing: -0.04em; }
  .pm-post-v2 .pm-post-meta { font-size: 0.79rem; gap: 10px 13px; }
  .pm-post-v2 .pm-meta-item:first-child { width: 100%; }
  .pm-post-v2 .pm-author-avatar { width: 34px; height: 34px; }
  .pm-post-header-actions .pm-action-button { flex: 1; }
  .pm-post-v2 .pm-featured-image-wrapper { width: calc(100% + 32px); margin-left: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .pm-post-v2 .pm-article-content { font-size: 1.06rem; line-height: 1.72; }
  .pm-post-v2 .pm-article-content p:first-of-type::first-letter { all: unset; }
  .pm-post-v2 .pm-article-content h2 { margin-top: 38px; padding-left: 13px; }
  .pm-post-v2 .pm-author-bio-box { align-items: center !important; gap: 13px !important; padding: 16px !important; }
  .pm-post-v2 .pm-author-bio-box img,
  .pm-post-v2 .pm-author-bio-box > div:first-child { width: 54px !important; height: 54px !important; }
  .pm-post-reaction-panel { padding: 19px 16px; }
  .pm-story-context { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .pm-story-context > img { width: 72px; height: 108px; }
  .pm-story-context-actions .pm-action-button { min-height: 42px; }
  .pm-story-context-actions .pm-action-button:last-child { display: none; }
  .pm-sentiment-summary { grid-template-columns: 1fr; gap: 8px; }
  .pm-post-v2 #comments-app { padding: 17px 14px; border-radius: 17px; }
  .pm-post-v2 .comments-section .comment-input-area { gap: 9px; }
  .pm-post-v2 .pm-sidebar { display: block; padding: 0 16px; }
}

@media (max-width: 360px) {
  .pm-post-v2 .pm-main-column { padding-left: 14px; padding-right: 14px; }
  .pm-post-v2 .pm-featured-image-wrapper { width: calc(100% + 28px); margin-left: -14px; }
  .pm-post-reaction-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-reading-progress > span { transition: none; }
}
