/* ==========================================================================
   SOCH WALE — design system
   Brand: Deep Black #0A0A0A / Charcoal #181818 / Warm Ivory #F7F4EE / Muted Gold #B89A5A
   English UI stays LTR. Urdu content blocks are RTL (.urdu / .urdu-content).
   ========================================================================== */

:root {
  --sw-ink: #0a0a0a;
  --sw-charcoal: #181818;
  --sw-ivory: #f7f4ee;
  --sw-gold: #b89a5a;
  --sw-gold-hover: #967b43;

  --sw-bg: var(--sw-ivory);
  --sw-fg: #161616;
  --sw-card: #ffffff;
  --sw-muted: #77736c;
  --sw-border: #e5e1d9;

  --sw-radius: 0.375rem;
  --sw-radius-sm: 0.125rem;
  --sw-max: 80rem; /* 1280px */
  --sw-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sw-font-urdu: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", "Nafees Nastaleeq", serif;
}

/* Jameel Noori Nastaleeq — drop the font files in assets/fonts/ to self-host.
   The @font-face below is loaded first; the CDN copy in inc/enqueue.php acts
   as a network fallback, then Noto Nastaliq Urdu, then serif. */
@font-face {
  font-family: "Jameel Noori Nastaleeq";
  src:
    url("../fonts/JameelNooriNastaleeq.woff2") format("woff2"),
    url("../fonts/JameelNooriNastaleeq.woff") format("woff"),
    url("../fonts/JameelNooriNastaleeq.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--sw-bg);
  color: var(--sw-fg);
  font-family: var(--sw-font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--sw-gold);
}
button {
  font: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--sw-gold);
  outline-offset: 2px;
}

/* ---------- layout helpers ---------- */
.sw-wrap {
  max-width: var(--sw-max);
  margin: 0 auto;
  padding: 0 1rem;
}
.sw-wrap--narrow {
  max-width: 48rem;
}
.sw-wrap--mid {
  max-width: 64rem;
}
@media (min-width: 640px) {
  .sw-wrap {
    padding: 0 1.5rem;
  }
}
.sw-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .sw-grid--2,
  .sw-grid--3,
  .sw-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .sw-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sw-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- typography utilities ---------- */
.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sw-gold);
  display: inline-block;
}
.hairline {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--sw-gold);
}
.sw-muted {
  color: var(--sw-muted);
}
.sw-meta {
  font-size: 0.75rem;
  color: var(--sw-muted);
}

/* Urdu */
.urdu,
.urdu-content {
  font-family: var(--sw-font-urdu);
  direction: rtl;
  text-align: right;
  line-height: 2.4;
  font-feature-settings: "kern";
}
.urdu-content {
  line-height: 2.9;
}
.urdu-content p,
.urdu-content ul,
.urdu-content ol,
.urdu-content blockquote,
.urdu-content h2,
.urdu-content h3 {
  margin: 0 0 1.75rem;
}
.urdu-content blockquote {
  border-right: 3px solid var(--sw-gold);
  padding-right: 1.25rem;
  color: var(--sw-muted);
}
.urdu-content img {
  border-radius: var(--sw-radius);
}

/* ---------- buttons ---------- */
.sw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--sw-radius-sm);
  background: var(--sw-gold);
  color: var(--sw-ink);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.sw-btn:hover {
  background: var(--sw-gold-hover);
  color: var(--sw-ink);
}
.sw-btn--ghost {
  background: transparent;
  border: 1px solid var(--sw-border);
  color: var(--sw-fg);
}
.sw-btn--ghost:hover {
  border-color: var(--sw-gold);
  color: var(--sw-gold);
  background: transparent;
}
.sw-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.sw-link:hover {
  color: var(--sw-gold);
}

/* ---------- badges ---------- */
.sw-badge {
  border-radius: var(--sw-radius-sm);
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sw-badge--premium {
  background: var(--sw-gold);
  color: var(--sw-ink);
}
.sw-badge--free {
  border: 1px solid rgba(184, 154, 90, 0.6);
  color: var(--sw-gold);
}

/* ---------- header ---------- */
.sw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sw-ink);
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-bar .sw-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .sw-header {
    top: 46px;
  }
}
.sw-header__bar {
  max-width: var(--sw-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4rem;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .sw-header__bar {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1280px) {
  .sw-header__bar {
    height: 5rem;
  }
}
.sw-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.sw-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.sw-brand__text {
  display: none;
}
@media (min-width: 640px) {
  .sw-brand__text {
    display: block;
  }
}
.sw-brand__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #fff;
}
.sw-brand__tag {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}

.sw-nav {
  display: none;
  margin: 0 auto;
  align-items: center;
}
@media (min-width: 1280px) {
  .sw-nav {
    display: flex;
  }
}
.sw-nav ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sw-nav li {
  position: relative;
}
.sw-nav a {
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}
.sw-nav a:hover,
.sw-nav .current-menu-item > a,
.sw-nav .current_page_item > a {
  color: var(--sw-gold);
}
.sw-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  background: var(--sw-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0;
  flex-direction: column;
  gap: 0;
  z-index: 60;
}
.sw-nav li:hover > .sub-menu,
.sw-nav li:focus-within > .sub-menu {
  display: flex;
}
.sw-nav .sub-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.sw-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 1280px) {
  .sw-header__actions {
    margin-left: 0;
  }
}
.sw-iconbtn {
  background: none;
  border: 0;
  padding: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  border-radius: var(--sw-radius-sm);
  transition: color 0.2s ease;
}
.sw-iconbtn:hover {
  color: var(--sw-gold);
}
.sw-header__link {
  display: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}
.sw-header__cta {
  display: none;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--sw-gold);
  color: var(--sw-ink);
  border-radius: var(--sw-radius-sm);
}
.sw-header__cta:hover {
  background: var(--sw-gold-hover);
  color: var(--sw-ink);
}
@media (min-width: 640px) {
  .sw-header__link,
  .sw-header__cta {
    display: inline-block;
  }
}
.sw-burger {
  display: inline-flex;
}
@media (min-width: 1280px) {
  .sw-burger {
    display: none;
  }
}

.sw-search-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--sw-charcoal);
  padding: 1rem;
}
@media (min-width: 640px) {
  .sw-search-panel {
    padding: 1rem 1.5rem;
  }
}
.sw-search-panel[hidden],
.sw-mobile-nav[hidden] {
  display: none;
}
.sw-search-panel form {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sw-search-panel input[type="search"] {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.sw-search-panel input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.sw-search-panel input:focus {
  outline: none;
}
.sw-search-panel .sw-hint {
  display: none;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
}
@media (min-width: 640px) {
  .sw-search-panel .sw-hint {
    display: block;
  }
}

.sw-mobile-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--sw-ink);
  padding: 0.5rem 1rem 1.5rem;
}
@media (min-width: 1280px) {
  .sw-mobile-nav {
    display: none !important;
  }
}
.sw-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sw-mobile-nav a {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}
.sw-mobile-nav .sub-menu a {
  padding-left: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}
.sw-mobile-nav__cta {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}
.sw-mobile-nav__cta a {
  flex: 1;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--sw-radius-sm);
  padding: 0.5rem;
  font-size: 0.875rem;
}
.sw-mobile-nav__cta a.is-gold {
  background: var(--sw-gold);
  border-color: var(--sw-gold);
  color: var(--sw-ink);
  font-weight: 600;
}

/* ---------- hero ---------- */
.sw-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--sw-ink);
}
@media (min-width: 640px) {
  .sw-hero {
    height: 600px;
  }
}
.sw-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.sw-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.sw-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.sw-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--sw-ink),
    rgba(10, 10, 10, 0.85) 45%,
    rgba(10, 10, 10, 0.2)
  );
}
.sw-hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.sw-hero__content {
  max-width: 42rem;
}
.sw-hero h1,
.sw-hero .sw-hero__title {
  font-family: var(--sw-font-urdu);
  direction: rtl;
  text-align: right;
  color: #fff;
  font-size: 1.875rem;
  line-height: 1.9;
  font-weight: 500;
  margin: 1.25rem 0 0;
}
@media (min-width: 640px) {
  .sw-hero h1,
  .sw-hero .sw-hero__title {
    font-size: 2.25rem;
  }
}
@media (min-width: 1024px) {
  .sw-hero h1,
  .sw-hero .sw-hero__title {
    font-size: 3rem;
  }
}
.sw-hero p {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.7;
}
@media (min-width: 640px) {
  .sw-hero p {
    font-size: 1rem;
  }
}
.sw-hero .sw-btn {
  margin-top: 2rem;
}
.sw-hero__dots {
  position: absolute;
  bottom: 1.75rem;
  left: 0;
  right: 0;
}
.sw-hero__dots .sw-wrap {
  display: flex;
  gap: 0.5rem;
}
.sw-hero__dots button {
  height: 3px;
  width: 3rem;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  transition: background-color 0.2s ease;
}
.sw-hero__dots button.is-active {
  background: var(--sw-gold);
}

/* ---------- sections ---------- */
.sw-section {
  padding: 4rem 0;
}
@media (min-width: 640px) {
  .sw-section {
    padding: 5rem 0;
  }
}
.sw-section--dark {
  background: var(--sw-charcoal);
  color: #fff;
}
.sw-section--ink {
  background: var(--sw-ink);
  color: #fff;
}
.sw-section__head {
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.sw-section__head h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .sw-section__head h2 {
    font-size: 1.875rem;
  }
}
.sw-section__head p {
  margin-top: 0.5rem;
  max-width: 42rem;
  font-size: 0.875rem;
  color: var(--sw-muted);
}
.sw-section--dark .sw-section__head p,
.sw-section--ink .sw-section__head p {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- cards ---------- */
.sw-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  background: var(--sw-card);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  height: 100%;
}
.sw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(10, 10, 10, 0.45);
  border-color: rgba(184, 154, 90, 0.55);
}
.sw-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sw-charcoal);
}
.sw-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sw-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}
.sw-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sw-card__title {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 500;
}
.sw-card__excerpt {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--sw-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sw-card__excerpt.urdu {
  font-size: 1rem;
}
.sw-card__meta {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--sw-muted);
}
.sw-card__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--sw-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sw-card--dark {
  background: var(--sw-ink);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.sw-card--dark .sw-card__excerpt,
.sw-card--dark .sw-card__meta {
  color: rgba(255, 255, 255, 0.5);
}
.sw-card--dark .sw-card__foot {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* category tiles */
.sw-tile {
  display: block;
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  background: var(--sw-card);
  padding: 1.5rem;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  height: 100%;
}
.sw-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(10, 10, 10, 0.45);
  border-color: rgba(184, 154, 90, 0.55);
  color: inherit;
}
.sw-tile h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
}
.sw-tile p {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--sw-muted);
}
.sw-tile .sw-link {
  margin-top: 1rem;
  color: var(--sw-gold);
}

/* ---------- ask / newsletter blocks ---------- */
.sw-cta-block {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}
.sw-cta-block h2 {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}
@media (min-width: 640px) {
  .sw-cta-block h2 {
    font-size: 1.875rem;
  }
}
.sw-cta-block .urdu {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}
.sw-cta-block > p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
.sw-cta-block .sw-fine {
  margin-top: 1rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
}
.sw-newsletter form {
  margin: 2rem auto 0;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .sw-newsletter form {
    flex-direction: row;
  }
}
.sw-newsletter input[type="email"] {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--sw-ink);
  border-radius: var(--sw-radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.875rem;
}
.sw-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.sw-newsletter input:focus {
  outline: none;
  border-color: var(--sw-gold);
}

/* ---------- page / archive headers ---------- */
.sw-page-head {
  background: var(--sw-ink);
  color: #fff;
  padding: 3.5rem 0;
}
.sw-page-head h1 {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .sw-page-head h1 {
    font-size: 2.25rem;
  }
}
.sw-page-head p {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}
.sw-page-head .sw-meta {
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1.5rem;
}

/* ---------- single article ---------- */
.sw-article__hero-img {
  margin-top: -2rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--sw-radius);
  box-shadow: 0 20px 40px -30px rgba(10, 10, 10, 0.7);
}
.sw-article__facts {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  border-bottom: 1px solid var(--sw-border);
  padding-bottom: 1.5rem;
  font-size: 0.75rem;
  color: var(--sw-muted);
}
@media (min-width: 640px) {
  .sw-article__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.sw-article__facts strong {
  color: var(--sw-fg);
  font-weight: 500;
}
.sw-article__tools {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sw-fontsize {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--sw-border);
  background: var(--sw-card);
  border-radius: var(--sw-radius-sm);
  padding: 0.25rem;
}
.sw-fontsize button {
  background: none;
  border: 0;
  padding: 0.25rem 0.75rem;
  color: inherit;
}
.sw-fontsize button:hover,
.sw-fontsize button[aria-pressed="true"] {
  color: var(--sw-gold);
}
.sw-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--sw-muted);
}
.sw-share a,
.sw-share button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 0;
  color: inherit;
}
.sw-entry {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}
.sw-entry.is-ltr {
  font-family: var(--sw-font-sans);
  direction: ltr;
  text-align: left;
  font-size: 1.0625rem;
  line-height: 1.85;
}
.sw-entry.is-ltr p {
  margin-bottom: 1.5rem;
}
.sw-helpful {
  margin-top: 3.5rem;
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  background: var(--sw-card);
  padding: 1.5rem;
  text-align: center;
}
.sw-helpful__row {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
.sw-tags {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sw-tags a {
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-sm);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  color: var(--sw-muted);
}
.sw-tags a:hover {
  border-color: var(--sw-gold);
  color: var(--sw-gold);
}
.sw-prevnext {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--sw-border);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
}
@media (min-width: 640px) {
  .sw-prevnext {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.sw-prevnext .is-next {
  text-align: right;
}

/* ---------- comments ---------- */
.sw-comments {
  margin-top: 3.5rem;
}
.sw-comments h2 {
  font-size: 1.125rem;
  font-weight: 600;
}
.sw-comments ol {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.sw-comments .comment-body {
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  background: var(--sw-card);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.sw-comments .children {
  list-style: none;
  padding-left: 1.5rem;
}
.sw-comments input[type="text"],
.sw-comments input[type="email"],
.sw-comments input[type="url"],
.sw-comments textarea {
  width: 100%;
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-sm);
  padding: 0.625rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  background: var(--sw-card);
  color: var(--sw-fg);
}
.sw-comments .submit {
  border: 0;
  border-radius: var(--sw-radius-sm);
  background: var(--sw-gold);
  color: var(--sw-ink);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

/* ---------- sidebar ---------- */
.sw-layout {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .sw-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}
.sw-sidebar .widget {
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  background: var(--sw-card);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sw-sidebar .widget-title {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--sw-gold);
  margin-bottom: 0.75rem;
}
.sw-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}
.sw-sidebar li {
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--sw-border);
}
.sw-sidebar li:last-child {
  border-bottom: 0;
}

/* ---------- search form ---------- */
.sw-searchform {
  display: flex;
  gap: 0.5rem;
}
.sw-searchform input[type="search"] {
  flex: 1;
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background: var(--sw-card);
  color: var(--sw-fg);
}
.sw-searchform input[type="search"]:focus {
  outline: none;
  border-color: var(--sw-gold);
}

/* ---------- pagination ---------- */
.sw-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}
.sw-pagination .page-numbers {
  display: inline-block;
  min-width: 2.25rem;
  text-align: center;
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-sm);
  padding: 0.5rem 0.75rem;
  margin: 0 0.25rem;
  font-size: 0.8125rem;
  background: var(--sw-card);
}
.sw-pagination .page-numbers.current,
.sw-pagination .page-numbers:hover {
  background: var(--sw-gold);
  border-color: var(--sw-gold);
  color: var(--sw-ink);
}

/* ---------- footer ---------- */
.sw-footer {
  background: var(--sw-ink);
  color: rgba(255, 255, 255, 0.7);
}
.sw-footer__inner {
  max-width: var(--sw-max);
  margin: 0 auto;
  padding: 4rem 1rem;
}
@media (min-width: 640px) {
  .sw-footer__inner {
    padding: 4rem 1.5rem;
  }
}
.sw-footer__cols {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .sw-footer__cols {
    grid-template-columns: 1.2fr repeat(4, 1fr);
  }
}
.sw-footer img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.sw-footer__name {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #fff;
}
.sw-footer__urdu {
  margin-top: 0.5rem;
  font-family: var(--sw-font-urdu);
  direction: rtl;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
}
.sw-footer__tag {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--sw-gold);
}
.sw-footer h3,
.sw-footer .widget-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  margin-bottom: 1rem;
}
.sw-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sw-footer li {
  margin-bottom: 0.625rem;
}
.sw-footer a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}
.sw-footer a:hover {
  color: var(--sw-gold);
}
.sw-footer__bottom {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .sw-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.sw-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ---------- misc ---------- */
.sw-icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sw-icon--lg {
  width: 2rem;
  height: 2rem;
}
.sw-empty {
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  background: var(--sw-card);
  padding: 2.5rem;
  text-align: center;
  color: var(--sw-muted);
}

@media print {
  .sw-header,
  .sw-footer,
  .sw-article__tools,
  .sw-helpful,
  .sw-comments,
  .sw-prevnext {
    display: none !important;
  }
}
