@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0F1A17;
  --ground: #FBFCFB;
  --green: #0A5C4A;
  --mint: #8FD9C0;
  --mute: #51625C;
  --text2: #33433D;
  --line: #D5DEDA;
  --panel: #F0F4F2;
  --red: #D92D20;
  --red-dark: #7F1D1D;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* نوار بالا */
.topbar { background: var(--ink); color: #fff; font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 44px; }
.cities { display: flex; flex-wrap: wrap; gap: 4px; }
.cities a { padding: 10px 12px; color: #D5DEDA; border-bottom: 2px solid transparent; }
.cities a:hover { color: #fff; }
.cities a.on { color: #fff; font-weight: 700; border-bottom-color: var(--mint); }
.topbar .side { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; color: #D5DEDA; }
.topbar .side a { color: var(--mint); font-weight: 700; padding: 10px 0; }

/* سربرگ */
.masthead { border-bottom: 1px solid var(--ink); }
.masthead .wrap { padding-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand .logo { font-size: 56px; font-weight: 900; line-height: 1.15; letter-spacing: -1px; }
.brand .logo:hover { color: var(--ink); }
.brand .tag { font-size: 15px; color: var(--mute); }
.sections { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 700; }
.sections a { padding: 12px 0; border-bottom: 3px solid transparent; }
.sections a.on { border-bottom-color: var(--green); color: var(--green); }

/* نوار خبرنگاران */
.strip { border-bottom: 1px solid var(--line); background: #fff; }
.strip .wrap { padding-top: 22px; padding-bottom: 22px; display: flex; align-items: flex-start; gap: 28px; overflow-x: auto; }
.face { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ring { width: 84px; height: 84px; border: 3px solid var(--red); border-radius: 999px; padding: 3px; display: grid; }
.ring > span, .ring > img { border-radius: 999px; background: var(--red-dark); display: grid; place-items: center; width: 100%; height: 100%; object-fit: cover; overflow: hidden; }
.ring svg { width: 58%; height: 58%; fill: #fff; }
.ring.add { border-style: dashed; border-color: var(--green); }
.ring.add > span { background: #E3EFEA; }
.ring.add svg { width: 44%; height: 44%; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; }
.face b { font-size: 13px; line-height: 1.4; }
.face small { font-size: 12px; color: var(--mute); line-height: 1.3; }

/* خبر اصلی */
.hero { padding-top: 36px; display: flex; flex-wrap: wrap; gap: 36px; }
.lead { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ph { width: 100%; aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, #DDE7E2 0 14px, #D3DFD9 14px 28px); }
.ph.r32 { aspect-ratio: 3 / 2; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--mute); }
.chip { background: var(--green); color: #fff; font-weight: 700; padding: 2px 10px; }
.lead h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 900; line-height: 1.35; letter-spacing: -0.5px; text-wrap: balance; }
.lead p { font-size: 17px; color: var(--text2); max-width: 640px; }
.src { font-size: 12px; color: var(--mute); }
.src a { text-decoration: underline; text-underline-offset: 3px; }
.second { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }
.second article { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.second article:first-child { padding-top: 0; }
.second article:last-child { border-bottom: 0; }
.label { font-size: 13px; font-weight: 700; color: var(--green); }
.second h2 { font-size: 21px; font-weight: 700; line-height: 1.5; }
.latest { flex: 1 1 260px; min-width: 0; background: var(--panel); padding: 20px; display: flex; flex-direction: column; gap: 14px; align-self: flex-start; }
.latest h2 { font-size: 17px; font-weight: 900; }
.latest ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.latest li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.latest li:first-child { border-top: 0; padding-top: 0; }
.latest li a { font-size: 15px; font-weight: 700; line-height: 1.6; }

/* بخش‌ها */
.block { padding-top: 56px; }
.block-head { border-top: 4px solid var(--ink); padding-top: 14px; margin-bottom: 24px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.block-head h2 { font-size: 32px; font-weight: 900; line-height: 1.4; }
.block-head span { font-size: 14px; color: var(--mute); }

.eco { display: flex; flex-wrap: wrap; gap: 28px; }
.market { flex: 1 1 320px; min-width: 0; background: var(--ink); color: #fff; padding: 24px; }
.today { flex: 1 1 280px; min-width: 0; background: var(--panel); padding: 24px; }
.market h3, .today h3 { font-size: 18px; font-weight: 900; margin-bottom: 14px; }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #2C3D36; font-size: 15px; }
.today .row { border-top-color: var(--line); }
.row strong { font-size: 17px; color: var(--mint); white-space: nowrap; }
.today .row a { font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.market .note { display: block; font-size: 12px; color: #B9C6C1; padding-top: 10px; }
.market .note a { text-decoration: underline; }
.market .note a:hover { color: #fff; }
.eco-news { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; }
.eco-news article { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.eco-news article:first-child { padding-top: 0; }
.eco-news article:last-child { border-bottom: 0; }
.eco-news h3, .cards h3 { font-size: 19px; font-weight: 700; line-height: 1.55; }
.eco-news p { font-size: 14px; color: var(--text2); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px 28px; }
.cards article { display: flex; flex-direction: column; gap: 10px; }

/* پیوستن */
.join { margin-top: 64px; background: #E3EFEA; padding: 44px 40px; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.join .pitch { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.join h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; line-height: 1.45; text-wrap: balance; }
.join p { font-size: 16px; color: var(--text2); }
.btn { min-height: 48px; display: inline-flex; align-items: center; padding: 0 26px; background: var(--green); color: #fff; font-weight: 700; font-size: 15px; border: 0; font-family: inherit; cursor: pointer; }
.btn:hover { color: #fff; background: #084A3B; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.steps { flex: 1 1 340px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps .n { flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 900; }
.steps div { display: flex; flex-direction: column; }
.steps strong { font-size: 16px; }
.steps span { font-size: 14px; color: var(--text2); }

/* پانوشت */
.foot { margin-top: 64px; border-top: 1px solid var(--ink); }
.foot .wrap { padding-top: 36px; padding-bottom: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot .logo { font-size: 30px; font-weight: 900; line-height: 1.3; display: block; }
.foot small { font-size: 14px; color: var(--mute); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 14px; font-weight: 700; align-items: center; }
.foot nav a { padding: 12px 0; }

/* صفحه خبر */
.article { max-width: 760px; margin: 0 auto; padding: 40px 24px 0; display: flex; flex-direction: column; gap: 20px; }
.article h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.35; letter-spacing: -0.5px; text-wrap: balance; }
.article .body { display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 2; color: #1C2A26; }
.source-box { border: 1px solid var(--line); background: #fff; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }

/* پروفایل خبرنگار */
.profile { background: #fff; border-bottom: 1px solid var(--ink); }
.profile .wrap { padding-top: 48px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.ring.big { flex: none; width: 176px; height: 176px; border-width: 5px; padding: 5px; }
.profile .info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.profile h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 900; line-height: 1.25; letter-spacing: -1px; }
.profile p { font-size: 17px; color: var(--text2); max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 4px; }
.two-col { padding-top: 36px; display: flex; flex-wrap: wrap; gap: 40px; }
.two-col .main { flex: 999 1 560px; min-width: 0; }
.two-col aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--ink); padding-top: 14px; align-self: flex-start; }
.two-col aside h2 { font-size: 17px; font-weight: 900; }
.empty { background: var(--panel); padding: 28px; font-size: 16px; color: var(--text2); }
.mini { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.mini .ring { flex: none; width: 56px; height: 56px; padding: 2px; }
.mini span.t { display: flex; flex-direction: column; line-height: 1.5; }
.mini span.t small { font-size: 13px; color: var(--mute); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .brand .logo { font-size: 40px; }
  .join { padding: 28px 20px; }
  .block-head h2 { font-size: 26px; }
  .article { padding: 28px 16px 0; }
}
