:root{
  --text:#1e293b;
  --bg-0:#f8fafc;
  --accent:#39CCCC;
  --muted:#64748b;
  --header-blue:#1f0b66;
  --glass-border:rgba(216,226,239,.85);
  --footer-bg:#0f172a;

  --content-max: 1100px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --touch-min: 44px;
  --internal-panel-pad-block: 18px;
  --internal-panel-pad-inline: 20px;
  --article-hero-aspect: 17 / 9;
}

/**
 * Shared styles for internal HTML templates — header, footer, and nav match index.html.
 * Template-specific: glass panels, two-column / full-width layouts, article & forms.
 */
:root {
  --content-max: 1100px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --touch-min: 44px;
  /* پنل تنگ صفحات داخلی — برای هماهنگی با حاشیهٔ منفی تصویر شاخص */
  --internal-panel-pad-block: 18px;
  --internal-panel-pad-inline: 20px;
  /* کادر ثابت تصویر شاخص خبر (برش با object-fit: cover) — کمی پهن‌تر از ۱۶:۹ برای ارتفاع کمتر */
  --article-hero-aspect: 17 / 9;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--weather-font-family, "Vazir", Tahoma, sans-serif) !important;
  color: var(--text);
  background: var(--bg-0, #f8fafc);
  padding-bottom: var(--safe-bottom);
}
body.is-nav-open {
  overflow: hidden;
  touch-action: none;
}
/* لینک‌ها: globals.css — text-decoration: none سراسری */

/* ——— Header (homepage parity) ——— */
.header-row--1 {
  background: #1f0b66;
  color: #fff;
  font-size: 13px;
}
.header-row--1 .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 12% 75% 12%;
  align-items: center;
  gap: 0;
  padding: 8px 16px;
  direction: rtl;
}
.header-social a {
  margin-inline-start: 10px;
  opacity: 0.9;
}
.header-social a:hover { opacity: 1; }

/* Iranian social icons: show as multi-column grid (not a single row). */
.header-social {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.header-social a {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.header-social img.social-icon-img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  /* Force white even if provided SVG has colors */
  filter: brightness(0) invert(1);
}
.ticker-marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.topbar-social,
.topbar-ticker,
.header-datetime--top {
  display: flex;
  align-items: center;
  min-width: 0;
}

.topbar-social {
  justify-content: flex-start;
  gap: 10px;
  white-space: nowrap;
}

.topbar-social__label,
.topbar-ticker__label {
  font-weight: 900;
  white-space: nowrap;
}

.topbar-ticker {
  justify-content: center;
  gap: 10px;
  position: relative;
}

.header-datetime--top {
  justify-content: center;
  gap: 10px;
  position: relative;
  direction: ltr; /* keep time digits readable */
}

.header-datetime__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.header-datetime__label {
  font-weight: 900;
  white-space: nowrap;
}

/* no separator for topbar datetime */
.header-row--2 {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.header-row--2 .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 16px;
  min-height: 100px;
  flex-wrap: wrap;
}
.brand-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.brand-block__logo {
  width: auto;
  height: 100%;
  max-height: 100px;
  object-fit: contain;
}

.header-banner {
  width: 400px;
  flex: 0 0 400px;
  height: 100%;
  min-height: 100px;
  position: relative;
  overflow: hidden;
  /* border-radius: 12px; */
  /* border: 1px solid #e2e8f0; */
  /* background: #ffffff; */
}

.header-banner__img {
  position: absolute;
  inset: 0;
  width: auto;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.header-banner__img.is-active {
  opacity: 1;
}

.header-banner__placeholder {
  width: 100%;
  height: 100%;
  background: rgba(31, 11, 102, 0.08);
}
.brand-block h1 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--header-blue);
}
.brand-block span {
  font-size: 0.85rem;
  color: var(--muted);
}
.header-datetime {
  text-align: left;
  direction: ltr;
  font-size: 0.9rem;
  color: var(--muted);
}
.header-datetime .clock { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.header-row--3 {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.header-row--3 .inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  flex-wrap: wrap;
}
.main-nav__root {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
@media (min-width: 769px) {
  .main-nav__root {
    align-items: flex-start;
  }
}
.main-nav__link {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  border: none;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease;
  text-decoration: none;
}

.main-nav__drop a,
.main-nav__sub a {
  text-decoration: none;
}
.main-nav__li:not(.active) .main-nav__link:hover {
  background: #f1f5f9;
  color: #1e293b;
}
.main-nav__li:not(.active) .main-nav__link:active { background: #e2e8f0; }
.main-nav__li.active > .main-nav__link,
.main-nav__li.active > .main-nav__hit .main-nav__link {
  background: #e0f2fe;
  color: #0c4a6e;
  font-weight: 700;
}
.main-nav__li.active > .main-nav__link:hover,
.main-nav__li.active > .main-nav__hit .main-nav__link:hover {
  background: #bae6fd;
  color: #0c4a6e;
}
.main-nav__link:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}
.main-nav__li.active .main-nav__link:focus-visible { outline-color: #0ea5e9; }
.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: #fff;
  color: #1f0b66;
  box-shadow: 0 2px 14px rgba(31, 11, 102, 0.12);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.nav-toggle:active { transform: scale(0.96); }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle__bars span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
}
.main-nav__head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.main-nav__title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--header-blue);
}
.nav-close {
  display: grid;
  place-items: center;
  width: var(--touch-min);
  height: var(--touch-min);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: rgba(31, 11, 102, 0.08);
  color: #1f0b66;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 280;
  background: rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ——— Internal page shell ——— */
.page-wrap--internal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* Clean Slate: prevent parent theme containers from overriding width */
body .site,
body .site-content,
body .inside-article,
body .content-area,
body .site-main,
body .grid-container,
body .container.grid-container {
  max-width: none !important;
}
body .page-wrap--internal,
body .header-row--1 .inner,
body .header-row--2 .inner,
body .header-row--3 .inner {
  max-width: 1200px !important;
}

/* ——— Service Desk: Tracking UI ——— */
.service-desk-tracking {
  margin-top: 16px;
}
.service-desk-tracking__card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
}
.service-desk-tracking__card h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--header-blue);
}
.service-desk-tracking__form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.service-desk-tracking__code-input {
  flex: 1 1 240px;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--text);
}
.service-desk-tracking__result {
  margin-top: 12px;
}
.service-desk-tracking__loading {
  color: var(--muted);
  font-weight: 700;
}
.service-desk-tracking__badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.88rem;
}
.service-desk-tracking__badge--in_review {
  background: #fef3c7;
  color: #92400e;
}
.service-desk-tracking__badge--referred {
  background: #e0e7ff;
  color: #3730a3;
}
.service-desk-tracking__badge--answered {
  background: #d1fae5;
  color: #065f46;
}
.service-desk-tracking__badge--closed {
  background: #fee2e2;
  color: #991b1b;
}
.service-desk-tracking__form-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--muted);
  margin-bottom: 8px;
}
.service-desk-tracking__response h3 {
  margin: 14px 0 8px;
  font-size: 1rem;
  font-weight: 900;
}
.service-desk-tracking__files {
  margin-top: 12px;
}
.service-desk-tracking__files h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 900;
}
.service-desk-tracking__files ul {
  margin: 0;
  padding-right: 18px;
}

/* ——— Content panels (صفحات داخلی: زمینه و باکس سفید) ——— */
.glass-panel {
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(24, 50, 79, 0.06);
}
.glass-panel--tight {
  padding: var(--internal-panel-pad-block) var(--internal-panel-pad-inline);
  overflow: hidden;
}
/* تصویر شاخص: چسبیده به لبهٔ بالا و کناره‌ها + کادر نسبت ثابت و برش cover */
.glass-panel--tight > .article-hero-img:first-child {
  margin-block-start: calc(-1 * var(--internal-panel-pad-block));
  margin-inline: calc(-1 * var(--internal-panel-pad-inline));
  margin-block-end: 0;
  width: calc(100% + 2 * var(--internal-panel-pad-inline));
  max-width: none;
  border-radius: 20px 20px 0 0;
  box-shadow: none;
  aspect-ratio: var(--article-hero-aspect);
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
.glass-panel--tight > .article-hero-img:first-child[src$=".svg"] {
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--glass-border);
  padding: 0;
  background: #e8eef3;
}
.glass-widget {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(15, 39, 68, 0.05);
  overflow: hidden;
}
.glass-widget__title {
  margin: 0;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--header-blue);
  background: #ffffff;
  border-bottom: 1px solid var(--glass-border);
}
.glass-widget__body { padding: 14px 16px 16px; }

/* ——— Breadcrumb ——— */
.breadcrumb-bar {
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  font-size: 0.88rem;
  color: var(--muted);
}
.breadcrumb-bar a { color: var(--accent); font-weight: 600; }
.breadcrumb-bar a:hover { text-decoration: none; }
.breadcrumb-bar span[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}
.breadcrumb-bar .sep {
  margin: 0 0.35em;
  opacity: 0.45;
}

/* ——— Two-column internal ——— */
.internal-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 20px;
  align-items: start;
}
.internal-two-col > * {
  min-width: 0;
}
.internal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ——— Article ——— */
.article-hero-img {
  width: 100%;
  display: block;
  aspect-ratio: var(--article-hero-aspect);
  height: auto;
  max-height: none;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(24, 50, 79, 0.12);
  object-fit: cover;
  object-position: center;
}
.article-hero-img[src$=".svg"] {
  object-fit: cover;
  object-position: center;
  background: #e8eef3;
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin: 16px 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
.article-meta-row .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.article-meta-row .meta-item i {
  color: var(--accent);
  font-size: 0.95rem;
}
.article-meta-row .meta-print {
  margin-inline-start: auto;
}
.article-meta-row .meta-print button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  border: none;
  border-radius: 12px;
  background: rgba(47, 143, 184, 0.12);
  color: var(--accent);
  cursor: pointer;
  transition: background 0.15s ease;
}
.article-meta-row .meta-print button:hover { background: rgba(47, 143, 184, 0.2); }
/* روتیتر — تایپ تمیز + نوار عمودی در لبهٔ شروع (در RTL کنار متن) */
.article-rotitle {
  display: block;
  margin: 2px 0 14px;
  padding: 4px 0 2px;
  padding-inline-start: 14px;
  max-width: 65ch;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.65;
  color: #3d6f86;
  border-inline-start: 3px solid var(--accent);
  background: transparent;
}
/* روتیتر در کارت‌های آرشیو (GeneratePress + generate_before_entry_title) */
.weatherpro-loop-rotitle {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
  color: #3d6f86;
}
.article-title {
  margin: 0 0 16px;
  padding: 0;
  font-size: clamp(1.42rem, 4.2vw, 2.05rem);
  font-weight: 800;
  color: #0a1f33;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
/* تاریخ + واحد — مثل template-publication-detail.html */
.news-meta {
  margin: -4px 0 20px;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--muted);
}
.news-meta time {
  font-variant-numeric: tabular-nums;
}
.pub-detail__content .news-meta {
  margin-bottom: 18px;
}
.article-lead {
  margin: 0 0 26px;
  padding: 18px 22px;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.78;
  color: #3d5266;
  text-align: justify;
  background: linear-gradient(180deg, #f6f7f9 0%, #eef1f5 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  border-inline-start: 4px solid rgba(47, 143, 184, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 4px 20px rgba(15, 39, 68, 0.04);
}
.article-lead::first-line {
  font-weight: 700;
  color: #2a3f52;
}
.article-body {
  font-size: 1rem;
  line-height: 1.95;
  text-align: justify;
}
.article-body p { margin: 0 0 1.1em; }
.article-body h2 {
  margin: 1.6em 0 0.65em;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--header-blue);
}
.article-body h3 {
  margin: 1.35em 0 0.5em;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f2d5c;
}
.article-body blockquote {
  margin: 1.25em 0;
  padding: 14px 18px;
  border-radius: 12px;
  border-inline-end: 4px solid var(--accent);
  background: rgba(224, 242, 254, 0.45);
  font-style: normal;
  color: #1e3a5f;
}
.article-body ul,
.article-body ol {
  margin: 0 0 1.1em;
  padding-inline-start: 1.35em;
}
.article-body li { margin-bottom: 0.45em; }

/* ——— Tags ——— */
.tag-row {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.tag-row__label {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--header-blue);
}
.tag-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(47, 143, 184, 0.12);
  color: #0c4a6e;
  border: 1px solid rgba(47, 143, 184, 0.22);
  transition: background 0.15s ease;
}
.tag-pill:hover { background: rgba(47, 143, 184, 0.2); }

/* ——— لینک کوتاه خبر ——— */
.article-shortlink {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.65));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.article-shortlink__label {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--header-blue);
  flex-shrink: 0;
}
.article-shortlink__field {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.article-shortlink__url {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 4px 2px;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  word-break: break-all;
  line-height: 1.45;
}
.article-shortlink__copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min, 44px);
  height: var(--touch-min, 44px);
  margin: -4px 0 -4px -4px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(31, 11, 102, 0.08);
  color: #1f0b66;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.article-shortlink__copy:hover {
  background: rgba(31, 11, 102, 0.14);
}
.article-shortlink__copy:active {
  transform: scale(0.96);
}
.article-shortlink__copy.is-done {
  background: rgba(22, 163, 74, 0.18);
  color: #166534;
}

/* لینک کوتاه و برچسب در یک ردیف (RTL: یک طرف لینک، طرف دیگر برچسب‌ها) */
.article-meta-tags-row {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.article-meta-tags-row .tag-row--beside-shortlink {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  flex: 1 1 200px;
  min-width: 0;
  /* RTL: چسبیدن به شروع خط (راست) — برچسب‌ها سمت راست صفحه */
  justify-content: flex-start;
}
.article-meta-tags-row .article-shortlink--inline {
  margin-top: 0;
  padding: 6px 10px;
  flex: 0 1 auto;
  max-width: min(100%, 300px);
  gap: 6px 8px;
  flex-wrap: nowrap;
  align-items: center;
}
.article-shortlink--inline .article-shortlink__label {
  font-size: 0.76rem;
  white-space: nowrap;
}
.article-shortlink--inline .article-shortlink__field {
  flex: 1 1 100px;
  min-width: 0;
  padding: 4px 6px;
}
.article-shortlink--inline .article-shortlink__url {
  font-size: 0.65rem;
  padding: 2px 0;
  line-height: 1.35;
}
.article-shortlink--inline .article-shortlink__copy {
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 8px;
}

/* ——— Comments ——— */
.comments-block { margin-top: 32px; }
.comments-block__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--header-blue);
}
.comments-block__title i { color: var(--accent); }
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d8e3f0;
  font: inherit;
  font-size: 0.94rem;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 143, 184, 0.2);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.captcha-row .form-field { flex: 1; min-width: 140px; }
.captcha-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  user-select: none;
  font-family: ui-monospace, monospace;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #334155;
}
.captcha-refresh {
  width: var(--touch-min);
  height: var(--touch-min);
  border: none;
  border-radius: 12px;
  background: rgba(47, 143, 184, 0.15);
  color: var(--accent);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.captcha-refresh:hover { background: rgba(47, 143, 184, 0.25); }
.btn-submit {
  margin-top: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #1f0b66 0%, var(--accent) 100%);
  box-shadow: 0 4px 18px rgba(31, 11, 102, 0.3);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn-submit:hover { filter: brightness(1.05); }
.btn-submit:active { transform: scale(0.98); }
.comments-list {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
}
.comments-list__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--header-blue);
}
.comments-empty {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px dashed var(--glass-border);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

/* ——— Sidebar widgets ——— */
.widget-search form {
  display: flex;
  gap: 8px;
}
.widget-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d8e3f0;
  font: inherit;
  font-size: 0.9rem;
  background: #ffffff;
}
.widget-search button {
  flex-shrink: 0;
  width: var(--touch-min);
  height: var(--touch-min);
  border: none;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #1f0b66, var(--accent));
  display: grid;
  place-items: center;
}
.widget-search-footer {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}
.sidebar-archive-all {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
}
.sidebar-archive-all:hover { text-decoration: none; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a { flex: 1; color: var(--text); }
.cat-list a:hover { color: var(--accent); }
.cat-count {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(47, 143, 184, 0.15);
  color: #0c4a6e;
}
.latest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.latest-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 4px 0;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.latest-item:hover { background: rgba(224, 242, 254, 0.35); }
.latest-item__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  background-size: cover;
  background-position: center;
}
.latest-item__thumb[style*="url"] {
  background-size: 70% 70%;
  background-repeat: no-repeat;
  background-color: #ffffff;
}
.latest-item__body { min-width: 0; }
.latest-item__title {
  margin: 0 0 4px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  color: #0f2d5c;
}
.latest-item time {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

/* Archive accordion */
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-item {
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}
.archive-item:last-child { border-bottom: none; }
.archive-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--header-blue);
}
.archive-item summary::-webkit-details-marker { display: none; }
.archive-item summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.archive-item[open] summary::after { transform: rotate(-180deg); }
.archive-months {
  list-style: none;
  margin: 0 0 10px;
  padding: 0 8px 8px 20px;
  font-size: 0.86rem;
  color: var(--muted);
}
.archive-months li { margin-bottom: 6px; }
.archive-months a { color: var(--accent); font-weight: 600; }
.archive-months a:hover { text-decoration: none; }

/* ——— آرشیو اخبار + صفحه‌بندی ——— */
.news-archive-intro {
  margin: 0 0 20px;
  font-size: 0.94rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
}
.news-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.news-archive-item {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 16px 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease;
}
.news-archive-list li:not(:last-child) .news-archive-item {
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}
a.news-archive-item:hover {
  background: rgba(248, 250, 252, 0.95);
}
.news-archive-item__media {
  flex-shrink: 0;
  width: 120px;
  min-height: 88px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: #ffffff center / 55% 55% no-repeat;
  display: block;
}
.news-archive-item__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.news-archive-item__rotitle {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.35;
}
.news-archive-item__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--header-blue);
  line-height: 1.45;
}
.news-archive-item__excerpt {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-archive-item__meta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.news-archive-item__meta time { font-variant-numeric: tabular-nums; }
.news-archive-item__more {
  color: var(--accent);
  font-weight: 700;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}
.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--touch-min);
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--header-blue);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pagination__btn:hover:not([aria-disabled="true"]) {
  background: #f0f9ff;
  border-color: var(--accent);
  color: var(--accent);
}
.pagination__btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pagination__num {
  min-width: var(--touch-min);
  height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--header-blue);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pagination__num:hover {
  background: #f0f9ff;
  border-color: var(--accent);
  color: var(--accent);
}
.pagination__num.is-current {
  background: linear-gradient(135deg, #1f0b66 0%, var(--accent) 100%);
  border-color: transparent;
  color: #fff;
  pointer-events: none;
}
.pagination__ellipsis {
  padding: 0 6px;
  font-weight: 700;
  color: var(--muted);
}
.news-archive-count {
  margin-bottom: 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 560px) {
  .news-archive-item {
    flex-direction: column;
    align-items: stretch;
  }
  .news-archive-item__media {
    width: 100%;
    min-height: 140px;
    background-size: 30% 30%;
  }
}

/* ——— Full-width template ——— */
.page-header-band {
  margin-bottom: 24px;
  padding: 22px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-bottom: 3px solid rgba(47, 143, 184, 0.35);
  box-shadow: 0 4px 24px rgba(15, 39, 68, 0.05);
}
.page-header-band h1 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  color: var(--header-blue);
}
.page-header-band p {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}
.content-narrow {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ——— صفحه ۴۰۴ ——— */
.error-404__hero {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.error-404__hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(57, 204, 204, 0.16), transparent 70%);
  pointer-events: none;
}
.error-404__eyebrow {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
}
.error-404__code-wrap {
  position: relative;
  margin: 0 0 8px;
}
.error-404__code {
  display: inline-block;
  font-size: clamp(4rem, 18vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #1f0b66 0%, #39cccc 45%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 40px rgba(31, 11, 102, 0.12);
}
.error-404__title {
  margin: 0;
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 800;
  color: var(--header-blue);
  position: relative;
}
.error-404__lead {
  margin: 0.75rem auto 0;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 600;
  position: relative;
}
.error-404__panel {
  padding: 22px 22px 26px !important;
}
.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}
.error-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.error-404__btn--primary {
  color: #fff;
  background: linear-gradient(145deg, #1f0b66 0%, #39cccc 100%);
  box-shadow: 0 8px 24px rgba(31, 11, 102, 0.25);
}
.error-404__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 11, 102, 0.3);
}
.error-404__btn--ghost {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: var(--text);
}
.error-404__btn--ghost:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.error-404__search {
  margin-bottom: 22px;
  padding: 16px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
}
.error-404__search-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--header-blue);
}
.error-404__search .search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.error-404__search .search-form label {
  flex: 1 1 200px;
  min-width: 0;
}
.error-404__search .search-form input[type="search"],
.error-404__search .search-form input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font: inherit;
  background: #fff;
}
.error-404__search .search-form input:focus {
  outline: 2px solid rgba(57, 204, 204, 0.45);
  outline-offset: 2px;
}

/* دکمهٔ جستجوی پیش‌فرض وردپرس */
.error-404__search .search-form input[type="submit"],
.error-404__search .search-form button[type="submit"] {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--header-blue);
  color: #fff;
}
.error-404__quick-title {
  display: block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}
.error-404__quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.error-404__quick-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--header-blue);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.error-404__quick-list a:hover {
  background: #f8fafc;
  border-color: rgba(57, 204, 204, 0.45);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.error-404__quick-list i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(145deg, #1f0b66, #39cccc);
  flex-shrink: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.contact-card {
  text-align: center;
  padding: 20px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(15, 39, 68, 0.04);
}
.contact-card i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #1f0b66);
}
.contact-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--header-blue);
}
.contact-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 600;
}
.contact-form-wide .form-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.contact-form-wide .form-field--full {
  grid-column: 1 / -1;
}

/* ——— میز خدمات الکترونیک ——— */
/* عنوان، توضیح و ریبون آیکن‌ها داخل همان glass-panel (بدون page-header-band جدا) */
.service-desk-page__masthead {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eef1f5;
}
.service-desk-page__masthead-text h1 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  color: var(--header-blue);
}
.service-desk-page__masthead-text p {
  margin: 8px 0 0;
  max-width: 52rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.65;
}
.service-desk-page__masthead-desc {
  margin: 8px 0 0;
  max-width: 52rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.65;
}
.service-desk-page__masthead .service-desk-cards {
  margin-top: 18px;
  margin-bottom: 0;
}
.service-desk-cards {
  position: relative;
  margin-bottom: 24px;
}
.service-desk-cards__viewport {
  overflow: hidden;
}
.service-desk-cards__track {
  display: flex;
  transition: transform 0.28s ease;
  will-change: transform;
}
.service-desk-cards__slide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  box-sizing: border-box;
}
.service-desk-cards.is-static .service-desk-cards__viewport {
  overflow: visible;
}
.service-desk-cards.is-static .service-desk-cards__track {
  display: block;
  transform: none !important;
}
.service-desk-cards.is-static .service-desk-cards__slide {
  width: 100% !important;
}
.service-desk-cards__btn {
  position: absolute;
  top: calc(50% - 12px);
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #dbe4ee;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  z-index: 3;
}
.service-desk-cards__btn--prev {
  right: -10px;
}
.service-desk-cards__btn--next {
  left: -10px;
}
.service-desk-cards__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}
.service-desk-cards__dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
}
.service-desk-cards__dot.is-active {
  background: #2563eb;
}
.service-desk-ribbon__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 108px;
  padding: 14px 10px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--header-blue);
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.15s ease;
}
.service-desk-ribbon__item:hover {
  border-color: rgba(47, 143, 184, 0.4);
  background: #f0f7fc;
  color: #0c4a6e;
}
.service-desk-ribbon__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #1f0b66);
  box-shadow: none;
}
.service-desk-ribbon__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}
.service-desk-ribbon__item:nth-child(2) .service-desk-ribbon__icon {
  background: linear-gradient(145deg, #0ea5e9, #0369a1);
}
.service-desk-ribbon__item:nth-child(3) .service-desk-ribbon__icon {
  background: linear-gradient(145deg, #22c55e, #15803d);
}
.service-desk-ribbon__item:nth-child(4) .service-desk-ribbon__icon {
  background: linear-gradient(145deg, #f59e0b, #c2410c);
}
.service-desk-ribbon__item:nth-child(5) .service-desk-ribbon__icon {
  background: linear-gradient(145deg, #8b5cf6, #5b21b6);
}
.service-desk {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}
.service-desk__intro {
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.65;
}

/* جدول/فهرست داخل متن برگه (بدون ACF) */
.service-desk__content {
  padding: 0 20px 20px;
}
.service-desk__content table {
  width: 100%;
  border-collapse: collapse;
}
.service-desk__content th,
.service-desk__content td {
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 10px 12px;
  font-size: 0.88rem;
}
.service-desk__content th {
  background: #f3f7fc;
  font-weight: 800;
  color: #0f172a;
}
.service-desk__content .wp-block-table {
  overflow-x: auto;
}
/* ستون‌ها: شناسه | عنوان | شیوه | نوار ۴ آیکن (هم‌عرض) */
.service-desk__head {
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr) 7.25rem minmax(14rem, 17.5rem);
  gap: 12px 20px;
  align-items: center;
  padding: 14px 20px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #1e4a7a 0%, #163a63 100%);
}
.service-desk__head > span:nth-child(1) { text-align: center; }
.service-desk__head > span:nth-child(2) { text-align: right; }
.service-desk__head > span:nth-child(3) { text-align: center; }
.service-desk__head-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.25;
  background: transparent;
  border-radius: 0;
  border: none;
}
.service-desk__head-tools span {
  padding: 6px 4px;
  border-radius: 0;
}
.service-desk__head-tools span:not(:last-child) {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.28);
}
.service-desk__row {
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr) 7.25rem minmax(14rem, 17.5rem);
  gap: 12px 20px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eef1f5;
  font-size: 0.88rem;
  transition: background 0.15s ease;
}
.service-desk__row:last-child {
  border-bottom: none;
}
.service-desk__row:nth-child(even) {
  background: #fafbfd;
}
.service-desk__row:hover {
  background: #f0f7fc;
}
.service-desk__id {
  font-family: ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  word-break: break-all;
  line-height: 1.4;
}
.service-desk__title {
  min-width: 0;
  text-align: right;
}
.service-desk__title a {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.55;
}
.service-desk__title a:hover {
  text-decoration: underline;
  color: #1f0b66;
}
.service-desk__channel {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 3px;
  background: #e8f4fc;
  color: #0c4a6e;
  border: none;
}
/* نوار ابزار: چهار دکمه هم‌عرض، بدون قاب دور دسته */
.service-desk__tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  max-width: 17.5rem;
  margin-inline-start: auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.service-desk__tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  cursor: pointer;
  color: var(--accent);
  background: #fafbfc;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.service-desk__tool:hover {
  background: #f0f7fc;
  color: #1f0b66;
  border-color: rgba(47, 143, 184, 0.35);
}
.service-desk__tool:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.service-desk__tool i {
  font-size: 1.05rem;
}
.service-desk__tool.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.service-desk__tool--pdf {
  color: #b91c1c;
  background: #fef7f7;
  border-color: #f3e4e4;
}
.service-desk__tool--pdf:hover {
  background: #fce8e8;
  color: #991b1b;
  border-color: #e9c7c7;
}

.service-desk-rates-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}

.service-desk-rates-table th,
.service-desk-rates-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: right;
}

.service-desk-page__stations-overview {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 32px rgba(0, 31, 63, 0.06);
  backdrop-filter: blur(10px);
}

.service-desk-page__stations-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-desk-page__stations-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.service-desk-page__stations-type {
  font-size: 0.88rem;
  color: var(--muted, #64748b);
}

.service-desk-page__stations-map {
  margin-inline-start: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0ea5e9;
  text-decoration: none;
}

.service-desk-page__stations-map:hover {
  text-decoration: none;
}

.service-desk-page__related {
  margin-top: 18px;
}

.service-desk-page__related-lead {
  margin: 0 0 12px;
  color: var(--muted, #64748b);
  font-size: 0.95rem;
  line-height: 1.65;
}

.service-desk-page__related-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.service-stations-page__masthead {
  margin-bottom: 14px;
}

.service-stations-page__back {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.service-stations-table {
  min-width: 760px;
}

.service-stations-table__na {
  color: #94a3b8;
}

.office-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.office-card {
  background: #f8fafc;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  padding: 12px;
}

.office-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.office-card p {
  margin: 0 0 6px;
}

@media (max-width: 960px) {
  .service-desk-cards__slide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .service-desk__head {
    display: none;
  }
  .service-desk__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff !important;
    box-shadow: none;
  }
  .service-desk__row:nth-child(even) {
    background: #fff !important;
  }
  .service-desk__row:hover {
    background: #f8fafc !important;
  }
  .service-desk__id::before,
  .service-desk__title::before,
  .service-desk__channel::before,
  .service-desk__tools::before {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
  }
  .service-desk__id::before { content: "شناسه خدمت"; }
  .service-desk__title::before { content: "جزئیات خدمت"; }
  .service-desk__channel::before { content: "شیوه ارائه"; }
  .service-desk__tools::before { content: "راهنما و دسترسی سریع"; }
  .service-desk__id { text-align: right; }
  .service-desk__tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: none;
    margin-inline-start: 0;
    padding: 0;
    padding-top: 2px;
  }
  .service-desk__tool {
    width: 100%;
    min-height: var(--touch-min);
    height: auto;
    aspect-ratio: 1;
    max-height: 52px;
  }
}
@media (max-width: 480px) {
  .service-desk-cards__slide {
    grid-template-columns: 1fr;
  }
  .service-desk-cards__btn {
    display: none;
  }
  .service-desk-ribbon__item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: right;
    min-height: 0;
    padding: 12px 14px;
    gap: 14px;
  }
  .service-desk-ribbon__icon {
    flex-shrink: 0;
  }
}

/* ——— FAQ + Publications ——— */
.faq-shell {
  display: grid;
  gap: 16px;
}
.faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.faq-search {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
}
.faq-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
}
.faq-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faq-chip {
  border: 1px solid #dbe3ec;
  background: #fff;
  color: var(--header-blue);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.faq-item {
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.faq-item + .faq-item {
  margin-top: 10px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: var(--header-blue);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary i {
  color: var(--accent);
  transition: transform 0.18s ease;
}
.faq-item[open] summary i {
  transform: rotate(180deg);
}
.faq-item__body {
  padding: 0 16px 14px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.9rem;
}

.pub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.pub-count {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.pub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pub-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.pub-card__cover {
  margin: 0;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #e6f1ff, #f5f7fa);
  display: grid;
  place-items: center;
  color: #1e4a7a;
  font-size: 2rem;
}
.pub-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pub-card__body {
  padding: 10px;
}
.pub-meta {
  margin: 0 0 6px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}
.pub-title {
  margin: 0 0 8px;
  font-size: 0.87rem;
  line-height: 1.7;
}
.pub-title a {
  color: var(--header-blue);
}
.pub-title a:hover {
  color: var(--accent);
}
.pub-excerpt {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.75;
}
.pub-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d8e3ef;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--header-blue);
  background: #f8fbff;
}
.btn-soft:hover {
  border-color: #b7cce2;
  background: #f0f7ff;
}

.pub-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}
.pub-detail__content,
.pub-detail__aside {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.pub-detail__content {
  padding: 16px;
}
.pub-detail__aside {
  padding: 14px;
  align-self: start;
  position: sticky;
  top: 14px;
}
.pub-detail__cover {
  margin: 0 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fbff;
}
.pub-detail__cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.pub-download {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pub-download a {
  justify-content: center;
}

/* ——— Tenders / Procurement ——— */
.tender-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid transparent;
}
.tender-chip--type {
  color: #0c4a6e;
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.32);
}
.tender-chip--status {
  color: #92400e;
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.35);
}
.tender-chip--status-live { color: #166534; background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.34); }
.tender-chip--status-extended { color: #0c4a6e; background: rgba(56, 189, 248, 0.16); border-color: rgba(56, 189, 248, 0.32); }
.tender-chip--status-ended { color: #991b1b; background: rgba(248, 113, 113, 0.15); border-color: rgba(248, 113, 113, 0.3); }
.tender-chip--status-opening { color: #6d28d9; background: rgba(167, 139, 250, 0.18); border-color: rgba(167, 139, 250, 0.35); }
.tender-archive-item__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tender-archive-item__meta-inline {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}
.tender-archive-status-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.tender-archive-status-line__deadline {
  font-weight: 600;
  color: var(--muted);
}
.tender-archive-status-line--plain {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.tender-single-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  direction: ltr;
}
.tender-single-layout > * {
  direction: rtl;
}
.tender-single-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
  position: sticky;
  top: 14px;
}
.tender-single-content {
  min-width: 0;
}
.tender-facts p {
  margin: 0 0 10px;
  font-size: 0.87rem;
  line-height: 1.7;
  color: #334155;
}
.tender-facts p:last-child {
  margin-bottom: 0;
}
.tender-downloads {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tender-downloads .btn-soft {
  justify-content: flex-start;
}
.tender-setad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1.6;
}
.pub-detail .tender-facts--aside {
  margin-bottom: 18px;
}
.pub-detail .tender-aside-print {
  width: 100%;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  box-sizing: border-box;
}
.pub-detail .tender-aside-print:hover {
  background: #f0f9ff;
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 980px) {
  .pub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pub-detail {
    grid-template-columns: 1fr;
  }
  .pub-detail__aside {
    position: static;
    order: -1;
  }
  .pub-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .tender-single-layout {
    grid-template-columns: 1fr;
    direction: rtl;
  }
  .tender-single-aside {
    position: static;
    order: -1;
  }
}
@media (max-width: 680px) {
  .pub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .faq-toolbar {
    align-items: stretch;
  }
  .faq-search {
    max-width: none;
  }
}
@media (max-width: 480px) {
  .pub-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Footer (homepage parity) ——— */
.site-footer {
  background: var(--footer-bg);
  color: #cbd5e1;
  margin-top: 0;
  padding: 32px 0 0;
  font-size: 0.88rem;
}
.site-footer .inner {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding-inline: 16px;
  padding-bottom: 24px;
}
.site-footer h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.site-footer .widget {
  margin: 0;
}
.site-footer .widget-title {
  color: #fff;
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  padding-inline: 5%;
  text-align: right;
  font-size: 0.8rem;
  color: #94a3b8;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  direction: ltr;
}
.footer-credit {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.86);
}
.footer-bottom__right {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  order: 2;
  margin-left: auto;
  direction: rtl;
  text-align: right;
  white-space: nowrap;
}
.footer-bottom__left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.84);
  order: 1;
  direction: rtl;
  text-align: left;
  white-space: nowrap;
}
.footer-credit__link {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.footer-credit__link:hover {
  color: #39cccc;
  border-bottom-color: #39cccc;
  opacity: 1;
}
.footer-social a {
  margin: 0 8px;
  font-size: 1.2rem;
}
.footer-social .widget {
  margin: 0;
}
.footer-social .widget:first-child {
  margin-top: 8px;
}

/* جدول‌ها: جلوگیری از collapse ستون‌ها + تثبیت فونت فارسی */
.weather-pro-data-table,
.entry-content table,
.wp-block-table table {
  table-layout: auto;
  width: 100%;
  font-family: var(--weather-font-family, "Vazir", Tahoma, sans-serif) !important;
}

.weather-pro-data-table th,
.weather-pro-data-table td,
.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td {
  padding: 10px 14px;
  font-family: var(--weather-font-family, "Vazir", Tahoma, sans-serif) !important;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .weather-pro-data-table-wrap,
  .wp-block-weatherpro-data-table {
    margin: 0.75rem 0;
  }

  .weather-pro-data-table {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .weather-pro-data-table th,
  .weather-pro-data-table td,
  .entry-content th,
  .entry-content td,
  .wp-block-table th,
  .wp-block-table td {
    padding: 6px 8px;
  }

  .weather-pro-data-table-caption {
    margin-top: 6px;
    font-size: 0.76rem;
  }
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .header-banner {
    display: none !important;
  }
}

/* تبلت: نوار افقی منو — فقط بین ۷۶۹px و ۱۰۲۴px؛ روی موبایل با منوی کشویی تداخل نگذارد */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-row--3 .inner {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
  }
  .main-nav {
    flex: 1;
    min-width: 0;
  }
  .main-nav__root {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 4px 2px 10px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 11, 102, 0.35) transparent;
  }
  .main-nav__root::-webkit-scrollbar { height: 4px; }
  .main-nav__root::-webkit-scrollbar-thumb {
    background: rgba(31, 11, 102, 0.25);
    border-radius: 99px;
  }
  .main-nav__link {
    scroll-snap-align: start;
    padding: 10px 14px;
    white-space: nowrap;
    font-size: 0.88rem;
  }
}

@media (max-width: 992px) {
  .internal-two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .page-wrap--internal {
    padding-left: max(14px, var(--safe-left));
    padding-right: max(14px, var(--safe-right));
  }
}

@media (max-width: 768px) {
  :root {
    --internal-panel-pad-block: 14px;
    --internal-panel-pad-inline: 14px;
  }
  .glass-panel {
    border-radius: 16px;
  }
  .glass-panel--tight > .article-hero-img:first-child {
    border-radius: 16px 16px 0 0;
  }
  .breadcrumb-bar {
    margin-bottom: 14px;
    padding: 8px 12px;
    font-size: 0.82rem;
    line-height: 1.5;
    word-break: break-word;
  }
  .page-header-band {
    margin-bottom: 18px;
    padding: 16px 14px;
    border-radius: 14px;
  }
  .page-header-band h1 {
    font-size: clamp(1.1rem, 4.5vw, 1.45rem);
  }
  .page-header-band p {
    font-size: 0.86rem;
  }
  .glass-widget__title {
    padding: 10px 12px;
    font-size: 0.86rem;
  }
  .glass-widget__body {
    padding: 12px 12px 14px;
  }
  .widget-search form {
    flex-wrap: wrap;
  }
  .widget-search input {
    min-width: 0;
  }
  .article-meta-row {
    gap: 10px 14px;
    margin-top: 12px;
    font-size: 0.82rem;
  }
  .article-lead {
    padding: 14px 16px;
    font-size: 0.92rem;
    border-radius: 14px;
  }
  .comments-block__title {
    font-size: 0.98rem;
  }
  .pagination {
    margin-top: 22px;
    padding-top: 18px;
    gap: 6px;
  }
  .pagination__btn {
    padding: 0 12px;
    font-size: 0.8rem;
  }
  .pagination__num {
    min-width: 40px;
    height: 40px;
    font-size: 0.82rem;
  }
  .news-archive-intro {
    font-size: 0.88rem;
  }
  .news-archive-count {
    font-size: 0.8rem;
  }
  .nav-overlay { background: none; }
  .site-header {
    position: sticky;
    top: 0;
    z-index: 350;
    padding-top: var(--safe-top);
  }
  .header-row--1 .inner {
    padding: 8px max(12px, var(--safe-right)) 8px max(12px, var(--safe-left));
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "datetime social"
      "ticker ticker";
    align-items: center;
    justify-items: center;
    column-gap: 10px;
    row-gap: 8px;
  }

  .header-row--1 .topbar-ticker::before,
  .header-row--1 .header-datetime--top::before {
    content: "";
    margin: 0;
  }

  .header-row--1 .topbar-social { grid-area: social; justify-self: end; }
  .header-row--1 .header-datetime--top { grid-area: datetime; justify-self: start; justify-content: flex-start; }
  .header-row--1 .topbar-ticker { grid-area: ticker; justify-self: center; width: 100%; }

  .header-row--2 .inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px max(14px, var(--safe-right)) 14px max(14px, var(--safe-left));
    gap: 12px;
  }

  .header-banner {
    display: none;
    width: 100%;
    flex: 0 0 auto;
    min-height: 120px;
  }
  .brand-block h1 {
    font-size: clamp(0.95rem, 4.2vw, 1.1rem);
    line-height: 1.35;
  }
  .header-row--2 .header-datetime {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    font-size: clamp(0.72rem, 2.8vw, 0.88rem);
  }
  .header-row--2 .header-datetime #shamsiDate,
  .header-row--2 .header-datetime #miladiDate {
    white-space: nowrap;
  }
  .header-row--2 .header-datetime .clock {
    font-size: clamp(0.8rem, 3vw, 0.95rem);
    white-space: nowrap;
  }
  .header-row--3 {
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  }
  .header-row--3 .inner {
    flex-wrap: nowrap;
    padding: 10px max(12px, var(--safe-right)) 12px max(12px, var(--safe-left));
    gap: 10px;
  }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(19rem, 88vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: var(--safe-top) 0 var(--safe-bottom);
    flex: none !important;
    z-index: 300;
    background: #fff;
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.08);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .main-nav__head { display: flex; }
  .main-nav__root {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
    padding: 12px 14px 24px;
    gap: 4px;
    margin: 0;
    scroll-snap-type: none;
  }
  .main-nav__link {
    padding: 14px 16px;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: normal;
  }
  .main-nav__li:not(.active) .main-nav__link:active { background: #e2e8f0; }
  .page-wrap--internal {
    padding: 16px max(14px, var(--safe-right)) max(28px, var(--safe-bottom)) max(14px, var(--safe-left));
  }
  .site-footer {
    padding: 28px max(14px, var(--safe-right)) 0 max(14px, var(--safe-left));
  }
  .footer-bottom {
    padding-bottom: max(16px, var(--safe-bottom));
  }
  .form-grid-2,
  .contact-form-wide .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .article-meta-row .meta-print {
    margin-inline-start: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .header-social a {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  :root {
    --internal-panel-pad-block: 12px;
    --internal-panel-pad-inline: 12px;
  }
  .glass-panel {
    border-radius: 14px;
  }
  .glass-panel--tight > .article-hero-img:first-child {
    border-radius: 14px 14px 0 0;
  }
  .page-wrap--internal {
    padding-top: 12px;
    padding-bottom: 24px;
  }
  .tag-row {
    gap: 8px;
  }
  .article-meta-tags-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .article-meta-tags-row .tag-row--beside-shortlink {
    justify-content: flex-start;
  }
  .article-meta-tags-row .article-shortlink--inline {
    max-width: none;
  }
  .article-shortlink {
    padding: 12px 14px;
    gap: 8px;
  }
  .article-shortlink__field {
    flex-basis: 100%;
  }
  .tag-pill {
    font-size: 0.78rem;
    padding: 5px 10px;
  }
  .captcha-row {
    flex-direction: column;
    align-items: stretch;
  }
  .captcha-row .captcha-visual {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav,
  .nav-overlay {
    transition-duration: 0.01ms !important;
  }
}

/* ——— Organization / Pages — Editorial hero + prose ——— */
.org-page-layout--full-width .content-narrow {
  max-width: min(100%, 72rem);
  margin-inline: auto;
}
.org-page-layout--full-width .glass-panel--org,
.org-page-layout--full-width .org-page-shell {
  max-width: min(100%, 72rem);
}

.org-editorial-page-main {
  max-width: 900px;
  margin-inline: auto;
}

/* Editorial header stack (banner + title) — blog-style */
.org-editorial-header {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.8vw, 2rem);
  margin: 0 0 clamp(1rem, 2.8vw, 2rem);
  max-width: 100%;
}

.org-editorial-banner {
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.08),
    0 12px 40px -12px rgba(15, 23, 42, 0.18);
  line-height: 0;
}

.org-editorial-banner__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 560px);
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center;
}

.org-editorial-title-block {
  margin: 0;
  padding: 0 clamp(0.25rem, 2vw, 0.5rem);
  text-align: center;
}

[dir="rtl"] .org-editorial-title-block {
  text-align: center;
}

.org-editorial-title-block__heading {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--header-blue, #1f0b66);
}

/* Lead — gray-600 , accent bar on inline-start (right edge in RTL) */
.org-editorial-lead.article-lead,
.org-editorial-lead {
  margin: 0 0 40px;
  padding: 0;
  padding-inline-start: 1rem;
  border: none;
  border-inline-start: 4px solid var(--header-blue, #1f0b66);
  font-size: 1.25rem;
  line-height: 1.7;
  color: #4b5563;
  background: transparent;
  box-shadow: none;
}

.org-editorial-lead p {
  margin: 0 0 0.65em;
}

.org-editorial-lead p:last-child {
  margin-bottom: 0;
}

.org-editorial-lead.article-lead::first-line {
  font-weight: 600;
  color: #4b5563;
}

/* Prose column — readability */
.org-editorial-prose {
  max-width: 860px;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.org-editorial-prose > *:first-child {
  margin-top: 0;
}

.org-editorial-prose p {
  margin: 0 0 1.15em;
}

.org-editorial-prose h2,
.org-editorial-prose h3 {
  margin: 1.75em 0 0.65em;
  font-weight: 800;
  line-height: 1.35;
  color: var(--header-blue, #1f0b66);
}

.org-editorial-prose h2:first-child,
.org-editorial-prose h3:first-child {
  margin-top: 0;
}

.org-editorial-prose h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.org-editorial-prose h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.org-editorial-prose ul,
.org-editorial-prose ol {
  margin: 0 0 1.15em;
  padding-inline-start: 1.35em;
}

.org-editorial-prose blockquote {
  margin: 1.25em 0;
  padding: 0.75em 1rem;
  border-inline-start: 3px solid rgba(31, 11, 102, 0.35);
  background: rgba(241, 245, 249, 0.85);
  border-radius: 8px;
}

.org-page-shell--no-hero.org-page-shell--no-lead .article-body--org,
.org-page-shell--no-hero.org-page-shell--no-lead .entry-content {
  margin-top: 0;
}

.org-page-shell--has-lead .article-body--org,
.org-page-shell--has-lead .entry-content {
  margin-top: 0;
}

.org-page-shell--no-lead:not(.org-page-shell--no-hero) .article-body--org,
.org-page-shell--no-lead:not(.org-page-shell--no-hero) .entry-content {
  margin-top: 0;
}

.org-page-shell--no-hero .article-body--org:first-child,
.org-page-shell--no-hero .entry-content:first-child {
  margin-top: 0;
  padding-top: 0;
}

.glass-panel--org.org-page-shell--has-hero {
  margin-top: 0;
}

@media (max-width: 640px) {
  .org-editorial-header {
    gap: 1rem;
    margin-bottom: 1.25rem;
  }
  .org-editorial-banner__img {
    aspect-ratio: 16 / 10;
    max-height: 42vh;
  }
  .org-editorial-title-block__heading {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }
  .org-editorial-lead {
    font-size: 1.05rem;
    margin-bottom: 28px;
  }
  .org-editorial-prose {
    font-size: 1rem;
  }
}

.org-structure-archive__list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.org-structure-archive__item {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.org-structure-archive__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.org-structure-archive__link {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--header-blue, #0f172a);
  text-decoration: none;
}
.org-structure-archive__link:hover,
.org-structure-archive__link:focus-visible {
  text-decoration: underline;
}
.org-structure-archive__lead {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted-text, #475569);
}
.org-structure-archive__lead p:last-child {
  margin-bottom: 0;
}

/* ——— آرشیو اطلاعیه‌ها (لیست تیتر + تاریخ) ——— */
.notice-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--gov-radius, 12px);
  background: #fff;
  overflow: hidden;
}
.notice-archive-list__item:not(:last-child) .notice-archive-row {
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}
.notice-archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease;
}
.notice-archive-row:hover,
.notice-archive-row:focus-visible {
  background: rgba(248, 250, 252, 0.98);
}
.notice-archive-row__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--header-blue);
  text-align: right;
}
.notice-archive-row:hover .notice-archive-row__title,
.notice-archive-row:focus-visible .notice-archive-row__title {
  color: var(--accent);
}
.notice-archive-row__date {
  flex-shrink: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: left;
}
@media (max-width: 640px) {
  .notice-archive-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
  }
  .notice-archive-row__title {
    font-size: 0.95rem;
    text-align: right;
    width: 100%;
  }
  .notice-archive-row__date {
    text-align: right;
  }
}

@media print {
  .site-header,
  .nav-overlay,
  .internal-sidebar,
  .comments-block,
  .site-footer {
    display: none !important;
  }
  body { background: #fff; }
  .glass-panel { box-shadow: none; }
  .article-lead {
    background: #f3f4f6;
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
  .org-editorial-lead.article-lead {
    background: transparent;
    border: none;
    border-inline-start: 4px solid var(--header-blue, #1f0b66);
    padding: 0;
    padding-inline-start: 1rem;
  }
  .article-rotitle {
    border-inline-start-color: #0ea5e9;
    color: #334155;
  }
}
