/* ==========================================================
   Telo Mahnegar 1.0.0 | mobile-first, RTL, scoped to .telo-mh
   ========================================================== */

.telo-mh,
.telo-mh-list {
  --telo-green: #13BB2A;
  --telo-green-dark: #0E7A23;
  --telo-green-soft: #A7E382;
  --telo-black: #1F1F1F;
  --telo-charcoal: #2D2D2D;
  --telo-white: #FFFFFF;
  --telo-gray: #D9D9D9;
  --telo-gray-light: #F4F4F4;
  --telo-teal: #00A8B4;
  --telo-gold: #FFCC4D;
  --telo-text-soft: #4A4A4A;

  font-family: Vazirmatn, Sahel, iranyekan, Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--telo-black);
  line-height: 1.9;
}
.telo-mh *, .telo-mh *::before, .telo-mh *::after,
.telo-mh-list *, .telo-mh-list *::before, .telo-mh-list *::after { box-sizing: border-box; }
.telo-mh [hidden], .telo-mh-list [hidden] { display: none !important; }
.telo-mh img { max-width: 100%; height: auto; }
body.telo-mh-page { overflow-x: clip; }

.telo-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.telo-mh :focus-visible,
.telo-mh-list :focus-visible { outline: 2px solid var(--telo-black); outline-offset: 2px; }
#telo-page-hero :focus-visible { outline-color: var(--telo-gold); }

/* ----------------------------------------------------------
   Inner page banner (same as the Contact Us banner)
   ---------------------------------------------------------- */
#telo-page-hero{
  --telo-green:#13BB2A; --telo-green-dark:#0E7A23; --telo-black:#1F1F1F; --telo-white:#FFFFFF;
  --telo-gray:#D9D9D9; --telo-soft:#A7E382; --telo-gold:#FFCC4D;
  position:relative; isolation:isolate; container-type:inline-size;
  width:100%; margin:0; padding:44px 16px 46px;
  background:var(--telo-black); color:var(--telo-white);
  font-family:Vazirmatn,Sahel,iranyekan,Tahoma,sans-serif;
  direction:rtl; text-align:right; overflow:hidden;
  border-bottom:1px solid rgba(19,187,42,.25);
}
#telo-page-hero *,#telo-page-hero *::before,#telo-page-hero *::after{box-sizing:border-box}
#telo-page-hero::before{
  content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;
  background:
    radial-gradient(50% 120% at 85% 0%,rgba(19,187,42,.16),transparent 70%),
    linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);
  background-size:auto,44px 44px,44px 44px;
  -webkit-mask-image:linear-gradient(180deg,#000 40%,transparent 100%);
          mask-image:linear-gradient(180deg,#000 40%,transparent 100%);
}
#telo-page-hero .ph-shine{
  position:absolute;top:-20%;bottom:-20%;left:0;width:22%;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.05),transparent);
  transform:translateX(-150%) skewX(-20deg);
  animation:ph-shine 9s 1.2s ease-in-out infinite;
}
@keyframes ph-shine{0%,35%{transform:translateX(-150%) skewX(-20deg)}100%{transform:translateX(650%) skewX(-20deg)}}
#telo-page-hero .ph-line{
  position:absolute;right:0;left:0;bottom:-1px;height:2px;z-index:1;pointer-events:none;
  background:linear-gradient(270deg,var(--telo-green),var(--telo-soft) 40%,transparent);
  transform:scaleX(0);transform-origin:right center;
  animation:ph-line 1.4s .3s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes ph-line{to{transform:scaleX(1)}}
#telo-page-hero .ph-inner{max-width:1120px;margin:0 auto}
#telo-page-hero .ph-crumbs{margin:0 0 12px;padding:0}
#telo-page-hero .ph-crumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:0;list-style:none}
#telo-page-hero .ph-crumbs li{display:flex;align-items:center;gap:8px;margin:0;padding:0;font-size:12px;font-weight:600;line-height:1.7}
#telo-page-hero .ph-crumbs li + li::before{content:"/";color:rgba(217,217,217,.4);font-weight:400}
#telo-page-hero .ph-crumbs a{color:rgba(217,217,217,.7);text-decoration:none;letter-spacing:.04em;transition:color .25s}
#telo-page-hero .ph-crumbs a:hover{color:var(--telo-white)}
#telo-page-hero .ph-crumbs a:focus-visible{outline:2px solid var(--telo-gold);outline-offset:3px;border-radius:3px}
#telo-page-hero .ph-crumbs [aria-current="page"]{color:var(--telo-green)}
#telo-page-hero .ph-title{
  position:relative;display:inline-block;margin:0 0 12px;padding:0 0 12px;
  font-size:clamp(26px,4.6vw,44px);line-height:1.4;font-weight:800;color:var(--telo-white);
}
#telo-page-hero .ph-title::after{
  content:"";position:absolute;right:0;bottom:0;width:64px;height:3px;border-radius:3px;
  background:linear-gradient(270deg,var(--telo-green),var(--telo-soft));
  box-shadow:0 0 14px rgba(19,187,42,.6);
  transform:scaleX(0);transform-origin:right center;
  animation:ph-bar .9s .55s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes ph-bar{to{transform:scaleX(1)}}
#telo-page-hero .ph-sub{margin:0;padding:0;max-width:640px;font-size:clamp(13.5px,1.7vw,16px);line-height:2;color:rgba(217,217,217,.85)}
#telo-page-hero .ph-crumbs,#telo-page-hero .ph-title,#telo-page-hero .ph-sub{animation:ph-up .8s cubic-bezier(.2,.8,.2,1) both}
#telo-page-hero .ph-title{animation-delay:.12s}
#telo-page-hero .ph-sub{animation-delay:.24s}
@keyframes ph-up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@container (min-width:900px){
  #telo-page-hero{padding:64px 24px 66px}
  #telo-page-hero .ph-crumbs li{font-size:12.5px}
}
@container (max-width:480px){ #telo-page-hero{padding:34px 16px 38px} }
@media (prefers-reduced-motion:reduce){
  #telo-page-hero *{animation:none !important}
  #telo-page-hero .ph-line,#telo-page-hero .ph-title::after{transform:none}
}
@media (min-width:768px){
  #telo-page-hero{width:100vw;max-width:100vw;margin-inline:calc(50% - 50vw)}
}

/* ----------------------------------------------------------
   Layout and headings
   ---------------------------------------------------------- */
.telo-mh__wrap { max-width: 1120px; margin: 0 auto; padding: 24px 16px 56px; }
@media (min-width: 768px) { .telo-mh__wrap { padding: 36px 24px 72px; } }

.telo-mh-sec + .telo-mh-sec { margin-top: 8px; }
.telo-mh-h {
  margin: 36px 0 16px; padding: 0; padding-inline-start: 12px;
  border-inline-start: 3px solid var(--telo-green);
  font-size: 18px; line-height: 1.6; font-weight: 800; color: var(--telo-black);
}
.telo-mh-sec:first-child .telo-mh-h { margin-top: 0; }
.telo-mh-empty { padding: 32px 16px; text-align: center; background: var(--telo-gray-light); border: 1px dashed var(--telo-gray); border-radius: 4px; }

/* ----------------------------------------------------------
   Buttons and links
   ---------------------------------------------------------- */
.telo-mh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 1.5px solid var(--telo-green);
  border-radius: 3px; background: transparent; color: var(--telo-green-dark);
  font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.4;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.telo-mh-btn--solid { background: var(--telo-green-dark); border-color: var(--telo-green-dark); color: var(--telo-white); }
.telo-mh-btn--solid:hover { background: var(--telo-black); border-color: var(--telo-black); color: var(--telo-white); }
.telo-mh-btn--line:hover { background: var(--telo-green-dark); border-color: var(--telo-green-dark); color: var(--telo-white); }
.telo-mh-btn--ghost { border-color: var(--telo-gray); color: var(--telo-black); }
.telo-mh-btn--ghost:hover { border-color: var(--telo-black); }
.telo-mh-ico { flex: none; }

.telo-mh-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 13.5px; font-weight: 700; color: var(--telo-black); text-decoration: none;
}
.telo-mh-link:hover { color: var(--telo-green-dark); }

/* ----------------------------------------------------------
   Grid and cards
   ---------------------------------------------------------- */
.telo-mh-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; padding: 0; }
@media (min-width: 560px) { .telo-mh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { .telo-mh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.telo-mh-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--telo-white); border: 1px solid var(--telo-gray); border-radius: 4px;
  transition: border-color .2s;
}
.telo-mh-card:hover, .telo-mh-card:focus-within { border-color: var(--telo-green); }

.telo-mh-card__media { display: block; position: relative; overflow: hidden; background: var(--telo-charcoal); text-decoration: none; }
.telo-mh-card__media img, .telo-mh-card__media .telo-mh-ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.telo-mh-card--event .telo-mh-card__media { aspect-ratio: 16 / 9; }

/* Issue card: compact row on phones, tall cover from 560px */
.telo-mh-card--issue { flex-direction: row; }
.telo-mh-card--issue .telo-mh-card__media { flex: 0 0 34%; aspect-ratio: 600 / 850; align-self: flex-start; }
@media (min-width: 560px) {
  .telo-mh-card--issue { flex-direction: column; }
  .telo-mh-card--issue .telo-mh-card__media { flex: none; width: 100%; align-self: auto; }
}

.telo-mh-ph { position: relative; min-height: 100px; background: linear-gradient(135deg, var(--telo-black), var(--telo-charcoal)); }
.telo-mh-ph::before {
  content: ""; position: absolute; inset: 24% 26%;
  border: 2px solid rgba(19,187,42,.6); background: rgba(19,187,42,.12);
}

.telo-mh-card__body { display: flex; flex-direction: column; flex: 1; gap: 4px; min-width: 0; padding: 12px 14px 8px; }
.telo-mh-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0;
  font-size: 12px; line-height: 1.8; font-weight: 600; color: var(--telo-text-soft);
}
.telo-mh-card__meta strong { color: var(--telo-green-dark); font-weight: 800; }
.telo-mh-card__meta .telo-mh-ico { width: 14px; height: 14px; color: var(--telo-green-dark); }
.telo-mh-card__meta time { display: inline-flex; align-items: center; }
.telo-mh-card--event .telo-mh-card__meta { gap: 6px; }

.telo-mh-card__title { margin: 0; font-size: 15px; line-height: 1.8; font-weight: 800; }
.telo-mh-card__title a { color: var(--telo-black); text-decoration: none; }
.telo-mh-card__title a:hover { color: var(--telo-green-dark); }
.telo-mh-card__place { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--telo-text-soft); }
.telo-mh-card__place .telo-mh-ico { width: 14px; height: 14px; color: var(--telo-green-dark); }
.telo-mh-card__excerpt {
  margin: 0; font-size: 13px; line-height: 1.95; color: var(--telo-text-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.telo-mh-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: auto; padding-top: 6px; }

/* Featured card */
.telo-mh-feature {
  display: flex; flex-direction: column; overflow: hidden; margin-bottom: 8px;
  background: var(--telo-white); border: 1px solid var(--telo-gray); border-radius: 4px;
}
.telo-mh-feature__media { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--telo-charcoal); overflow: hidden; }
.telo-mh-feature__media img, .telo-mh-feature__media .telo-mh-ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.telo-mh-feature__body { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px 16px 20px; }
.telo-mh-feature__title { margin: 0; font-size: clamp(18px, 2.6vw, 24px); line-height: 1.7; font-weight: 800; }
.telo-mh-feature__title a { color: var(--telo-black); text-decoration: none; }
.telo-mh-feature__title a:hover { color: var(--telo-green-dark); }
.telo-mh-feature__excerpt { margin: 0; font-size: 14px; line-height: 2; color: var(--telo-text-soft); }
.telo-mh-feature .telo-mh-card__actions { gap: 10px; padding-top: 10px; }
@media (min-width: 700px) {
  .telo-mh-feature { flex-direction: row; align-items: stretch; }
  .telo-mh-feature__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 220px; }
  .telo-mh-feature__media img, .telo-mh-feature__media .telo-mh-ph { position: absolute; inset: 0; }
  .telo-mh-feature__body { flex: 1; padding: 26px 30px; }
}

/* Pagination */
.telo-mh-pagination { margin-top: 28px; }
.telo-mh-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.telo-mh-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
  background: var(--telo-white); border: 1px solid var(--telo-gray); border-radius: 3px;
  font-size: 14px; font-weight: 700; color: var(--telo-black); text-decoration: none;
}
.telo-mh-pagination a.page-numbers:hover { border-color: var(--telo-green); color: var(--telo-green-dark); }
.telo-mh-pagination .current { background: var(--telo-black); border-color: var(--telo-black); color: var(--telo-white); }
.telo-mh-pagination .dots { border: 0; background: none; }

/* ----------------------------------------------------------
   Single: issue / event
   ---------------------------------------------------------- */
.telo-mh-doc__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) {
  .telo-mh-doc--issue .telo-mh-doc__layout { grid-template-columns: 300px minmax(0, 1fr); gap: 52px; align-items: start; }
  .telo-mh-doc--issue .telo-mh-doc__side { position: sticky; top: 24px; }
}
.telo-mh-doc--event .telo-mh-doc__main { width: 100%; max-width: 800px; margin-inline: auto; }

/* Cover: the one distinctive element. A glass-edge spine on the right, like a Persian magazine. */
.telo-mh-cover {
  position: relative; max-width: 300px; margin: 0 auto 20px; background: var(--telo-charcoal);
  box-shadow: 0 22px 40px -22px rgba(0,0,0,.55);
}
.telo-mh-cover::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 8px; z-index: 1;
  background: linear-gradient(180deg, var(--telo-green), var(--telo-green-dark));
}
.telo-mh-cover img, .telo-mh-cover .telo-mh-ph { display: block; width: 100%; aspect-ratio: 600 / 850; object-fit: cover; }
.telo-mh-cover__no {
  position: absolute; inset-block-end: 0; inset-inline-end: 0; z-index: 1;
  padding: 6px 16px; background: var(--telo-black); color: var(--telo-white);
  font-size: 13px; font-weight: 800; line-height: 1.8;
}
@media (min-width: 900px) { .telo-mh-cover { max-width: none; } }

.telo-mh-facts { margin: 0 0 20px; padding: 0; }
.telo-mh-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--telo-gray); font-size: 13.5px; }
.telo-mh-facts dt { margin: 0; color: var(--telo-text-soft); }
.telo-mh-facts dd { margin: 0; font-weight: 800; }

.telo-mh-actions { display: flex; flex-direction: column; gap: 10px; }
.telo-mh-actions .telo-mh-btn { width: 100%; }
.telo-mh-actions--inline { margin: 28px 0 0; flex-direction: row; }
.telo-mh-actions--inline .telo-mh-btn { width: auto; }
@media (max-width: 899px) {
  .telo-mh-doc--issue .telo-mh-actions { flex-direction: row; flex-wrap: wrap; }
  .telo-mh-doc--issue .telo-mh-actions .telo-mh-btn { flex: 1 1 160px; }
}

/* Event hero image and meta */
.telo-mh-wide { margin: 0 0 16px; background: var(--telo-charcoal); border-radius: 4px; overflow: hidden; }
.telo-mh-wide img, .telo-mh-wide .telo-mh-ph { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.telo-mh-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--telo-text-soft); }
.telo-mh-meta li { display: inline-flex; align-items: center; gap: 8px; }
.telo-mh-meta .telo-mh-ico { color: var(--telo-green-dark); }

/* Lead, TOC, prose */
.telo-mh-lead {
  margin: 0 0 24px; padding: 0; padding-inline-start: 16px;
  border-inline-start: 3px solid var(--telo-green);
  font-size: clamp(16px, 2vw, 19px); line-height: 2.1; font-weight: 600;
}
.telo-mh-toc { margin: 0 0 28px; padding: 16px 18px; background: var(--telo-gray-light); border: 1px solid var(--telo-gray); border-radius: 4px; }
.telo-mh-toc__t { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.telo-mh-toc ol { margin: 0; padding: 0 20px 0 0; font-size: 14px; }
.telo-mh-toc li { margin: 0; }
.telo-mh-toc a { display: inline-block; padding: 4px 0; color: var(--telo-black); text-decoration: none; }
.telo-mh-toc a:hover { color: var(--telo-green-dark); text-decoration: underline; }

.telo-mh-prose { max-width: 72ch; font-size: 16px; line-height: 2.1; overflow-wrap: anywhere; }
.telo-mh-doc--event .telo-mh-prose { max-width: none; }
.telo-mh-prose > :first-child { margin-top: 0; }
.telo-mh-prose h2 { margin: 36px 0 12px; font-size: 22px; line-height: 1.6; font-weight: 800; scroll-margin-top: 24px; }
.telo-mh-prose h3 { margin: 28px 0 10px; font-size: 18px; line-height: 1.7; font-weight: 800; }
.telo-mh-prose p { margin: 0 0 16px; }
.telo-mh-prose ul, .telo-mh-prose ol { margin: 0 0 16px; padding: 0 22px 0 0; }
.telo-mh-prose a { color: var(--telo-green-dark); text-decoration: underline; text-underline-offset: 3px; }
.telo-mh-prose a:hover { color: var(--telo-black); }
.telo-mh-prose img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.telo-mh-prose figure { margin: 24px 0; }
.telo-mh-prose figcaption { margin-top: 6px; font-size: 13px; color: var(--telo-text-soft); }
.telo-mh-prose blockquote { margin: 24px 0; padding: 4px 18px 4px 0; border-inline-start: 3px solid var(--telo-green); font-weight: 600; }
.telo-mh-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.telo-mh-prose th, .telo-mh-prose td { padding: 8px 12px; border: 1px solid var(--telo-gray); }

/* Inline PDF viewer (desktop only; phones open the PDF directly) */
.telo-mh-viewer { margin-top: 40px; background: var(--telo-white); border: 1px solid var(--telo-gray); border-radius: 4px; overflow: hidden; }
.telo-mh-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: var(--telo-black); color: var(--telo-white); font-size: 14px; }
.telo-mh-viewer__bar .telo-mh-btn--ghost { border-color: rgba(255,255,255,.35); color: var(--telo-white); }
.telo-mh-viewer__bar .telo-mh-btn--ghost:hover { border-color: var(--telo-white); }
.telo-mh-viewer__bar :focus-visible { outline-color: var(--telo-gold); }
.telo-mh-viewer__body iframe { display: block; width: 100%; height: 82vh; min-height: 520px; border: 0; }

/* Prev / next */
.telo-mh-pager { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 44px; }
@media (min-width: 640px) { .telo-mh-pager { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.telo-mh-pager__a {
  display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 12px 16px;
  background: var(--telo-white); border: 1px solid var(--telo-gray); border-radius: 4px;
  color: var(--telo-black); text-decoration: none; transition: border-color .2s;
}
.telo-mh-pager__a:hover { border-color: var(--telo-green); }
.telo-mh-pager__a--next { text-align: left; align-items: flex-end; }
@media (min-width: 640px) { .telo-mh-pager__a--next:only-child { grid-column: 2; } }
.telo-mh-pager__l { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--telo-green-dark); }
.telo-mh-pager__t { font-size: 14.5px; font-weight: 800; line-height: 1.8; }

.telo-mh-all { margin: 12px 0 0; }

/* Shortcode wrapper */
.telo-mh-list { display: block; }

@media (prefers-reduced-motion: reduce) {
  .telo-mh *, .telo-mh-list * { transition: none !important; scroll-behavior: auto !important; }
}
