.about-canvas {
  --news-ink: #121722;
  --news-muted: #687181;
  --news-rule: rgba(18, 23, 34, 0.16);
  --news-accent: #e34f35;
  --news-accent-soft: rgba(227, 79, 53, 0.1);
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(96px, 1fr) minmax(96px, 1fr) auto;
  width: 100%;
  min-height: 360px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--news-ink);
  box-shadow: var(--shadow-md);
}

.about-canvas::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 0 49.9%, var(--news-rule) 49.9% 50%, transparent 50% 100%),
    linear-gradient(180deg, transparent 0 69.8%, var(--news-rule) 69.8% 70%, transparent 70% 100%),
    repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in srgb, var(--news-rule) 42%, transparent) 31px 32px);
  opacity: 0.52;
  pointer-events: none;
}

.about-canvas::after {
  display: block;
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 0;
  border: 1px solid color-mix(in srgb, var(--news-accent) 32%, transparent);
  pointer-events: none;
}

.about-canvas-masthead,
.about-canvas-headline,
.about-canvas-footer {
  position: relative;
  z-index: 2;
}

.about-canvas-masthead {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--news-rule);
  color: var(--news-muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.about-canvas-channel {
  overflow: hidden;
  color: var(--news-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-canvas-live,
.about-canvas-footer-status {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 7px;
  white-space: nowrap;
}

.about-canvas-live i,
.about-canvas-footer-status i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--news-accent);
  box-shadow: 0 0 6px 1px var(--news-accent-soft);
}

.about-canvas-headline {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--news-rule);
}

.about-canvas-label,
.about-canvas-date {
  color: var(--news-accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  white-space: nowrap;
}

.about-canvas-date {
  flex: 0 1 auto;
  grid-column: auto;
}

.about-canvas-ticker {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
}

.about-canvas-ticker--english,
.about-canvas-ticker--persian {
  direction: ltr;
  min-height: 106px;
  border-bottom: 1px solid var(--news-rule);
}

.about-canvas-ticker-row {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 96px;
  overflow: hidden;
  direction: ltr;
  white-space: nowrap;
}

.about-canvas-ticker-row::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  z-index: 2;
  height: 1px;
  background: var(--news-rule);
  pointer-events: none;
}

.about-canvas-ticker-track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: max-content;
  min-width: max-content;
  height: 100%;
  flex: 0 0 auto;
  flex-direction: row;
  direction: ltr;
  will-change: transform;
}

.about-canvas-ticker-content {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: max-content;
  height: 100%;
  flex: 0 0 auto;
  gap: clamp(22px, 4vw, 56px);
  padding-inline: 0;
  direction: ltr;
  white-space: nowrap;
}

.about-canvas-ticker-content span {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--news-ink);
  font-family: "Kapiler", var(--font-mono);
  font-size: clamp(2rem, 5.2vw, 3.75rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.about-canvas-ticker-separator {
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--news-accent) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.45em !important;
  font-weight: 700 !important;
}

.about-canvas-ticker--persian .about-canvas-ticker-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 96px;
  height: 100%;
  direction: ltr;
}

.about-canvas-ticker--persian .about-canvas-ticker-track {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  display: flex;
  align-items: center;
  width: max-content;
  min-width: max-content;
  height: 100%;
  direction: ltr;
}

.about-canvas-ticker--persian .about-canvas-ticker-content {
  direction: ltr;
  flex-direction: row;
  justify-content: flex-start;
  text-align: right;
}

.about-canvas-ticker--persian .about-canvas-ticker-content span:not(.about-canvas-ticker-separator) {
  display: inline-flex;
  direction: rtl;
  unicode-bidi: isolate;
  color: var(--news-ink) !important;
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0;
}

.about-canvas-ticker--persian .about-canvas-ticker-separator {
  direction: ltr;
  unicode-bidi: isolate;
}

.about-canvas-ticker--english .about-canvas-ticker-track {
  animation: about-news-scroll-english 18s linear infinite;
}

.about-canvas-ticker--persian .about-canvas-ticker-track {
  direction: ltr;
  animation: about-news-scroll-persian 18s linear infinite;
}

@keyframes about-news-scroll-english {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes about-news-scroll-persian {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.about-canvas-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 14px 0 16px;
  color: var(--news-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.about-canvas-footer-copy {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-canvas-footer-count {
  flex: 0 0 auto;
  color: var(--news-accent);
  white-space: nowrap;
}

:root[data-theme="dark"] .about-canvas {
  --news-ink: #f2f4f8;
  --news-muted: #9ca6b7;
  --news-rule: rgba(221, 229, 243, 0.2);
  --news-accent: #ff8068;
  --news-accent-soft: rgba(255, 128, 104, 0.14);
  background: #111927;
}

:root[data-theme="dark"] .about-canvas::before {
  opacity: 0.4;
}

@media (max-width: 900px) {
  .about-canvas {
    min-height: 320px;
  }

  .about-canvas-headline {
    align-items: flex-start;
    gap: 7px;
    padding-block: 16px 18px;
  }
}

@media (max-width: 790px) {
  .about-canvas {
    width: calc(100% + (2 * var(--page-gutter)));
    max-width: none;
    margin-inline: calc(var(--page-gutter) * -1);
    border-radius: 0;
  }
}

@media (max-width: 520px) {
  .about-canvas {
    min-height: 300px;
  }

  .about-canvas-masthead,
  .about-canvas-headline,
  .about-canvas-footer {
    padding-inline: 0;
  }

  .about-canvas-masthead {
    gap: 8px;
  }

  .about-canvas-headline {
    align-items: flex-start;
    gap: 7px;
    padding-block: 16px 18px;
  }

  .about-canvas-date {
    grid-column: auto;
  }

  .about-canvas-ticker--english,
  .about-canvas-ticker--persian {
    min-height: 88px;
  }

  .about-canvas-ticker-row {
    min-height: 88px;
    height: 88px;
  }

  .about-canvas-ticker--persian .about-canvas-ticker-track {
    height: 88px;
  }

  .about-canvas-ticker-content {
    padding-inline: 0;
  }

  .about-canvas-footer {
    gap: 10px;
  }

  .about-canvas-footer-count {
    text-align: end;
  }
}

/* The newsroom ticker is the signature motion of this section and it is
   driven purely by CSS (the animation + @keyframes above) — no JS runs it,
   so it works even if scripts fail or load late. By design it keeps
   scrolling even when the user's device has animations turned off
   (prefers-reduced-motion), so the panel never appears frozen. */
