@font-face {
  font-family: Almarai;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/almarai-arabic-400.woff2') format('woff2');
}

@font-face {
  font-family: Almarai;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/almarai-arabic-700.woff2') format('woff2');
}

@font-face {
  font-family: Almarai;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/almarai-arabic-800.woff2') format('woff2');
}

/* Local Latin subsets keep punctuation in Almarai too. */
@font-face {
  font-family: Almarai;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/almarai-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: Almarai;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/almarai-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: Almarai;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/almarai-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  color-scheme: light;
  --blue: #229ED9;
  --blue-hover: #168AC2;
  --ink: #17212B;
  --muted: #64748B;
  --border: #E5EEF5;
  --soft: #F4F9FC;
  --bar-space: 94px;
  font-family: Almarai, Tahoma, Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: #FFF;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding-bottom: calc(var(--bar-space) + env(safe-area-inset-bottom, 0px)); }
svg { display: block; flex-shrink: 0; }
p, h1, h2, dl, dd { margin: 0; }
.container {
  width: min(100%, 600px);
  margin-inline: auto;
  padding-inline: 24px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 27px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; }
.brand__icon { width: 21px; height: 21px; color: var(--blue); }
.masthead__note { color: var(--muted); font-size: 11px; white-space: nowrap; }
.hero { padding-top: 28px; text-align: center; }
.telegram-mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #FFF;
  outline: 1px solid var(--border);
  outline-offset: 11px;
  box-shadow: 0 10px 24px #229ed91c;
}
.telegram-mark svg { width: 46px; height: 46px; transform: translate(-1px, 2px); }
.eyebrow { margin-bottom: 12px; font-size: 12px; font-weight: 700; color: #126D99; }
h1 { max-width: 510px; margin-inline: auto; font-size: 36px; font-weight: 800; line-height: 1.62; text-wrap: balance; }
h1 span { display: block; color: #126D99; }
.hero__description { max-width: 460px; margin: 15px auto 24px; color: var(--muted); font-size: 16px; line-height: 1.95; text-wrap: pretty; }
.join-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--blue);
  color: #FFF;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
  box-shadow: 0 4px 10px #229ed914;
  -webkit-tap-highlight-color: #168ac22b;
  touch-action: manipulation;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}
.join-button svg { width: 23px; height: 23px; }
.join-button:active { background: var(--blue-hover); box-shadow: none; }
.join-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.hero__cta { max-width: 420px; margin-inline: auto; }
.hero__note { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.hero__note span { color: #64748B; }
.benefits { margin-block: 36px 30px; padding-block: 24px; border-block: 1px solid var(--border); }
.benefits__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.benefits__list li { display: flex; flex-direction: column; align-items: center; gap: 11px; padding-inline: 7px; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.85; }
.benefits__list li + li { border-inline-start: 1px solid var(--border); }
.benefits__list svg { width: 25px; height: 25px; color: #168AC2; }
.channel-content { padding: 27px 28px 5px; border-radius: 20px; background: var(--soft); }
.section-label { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #126D99; font-size: 11px; font-weight: 700; line-height: 1.8; }
.section-label span { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
h2 { font-size: 22px; font-weight: 800; line-height: 1.7; }
.channel-content > p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.95; }
.topics { margin-top: 17px; }
.topics > div { padding-block: 16px; border-top: 1px solid var(--border); }
.topics dt { font-size: 13px; font-weight: 700; line-height: 1.8; }
.topics dd { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.page-footer { padding-block: 22px 16px; text-align: center; color: var(--muted); font-size: 10px; line-height: 1.9; }
.join-bar {
  position: fixed;
  z-index: 10;
  inset: auto 0 0;
  width: 100%;
  padding-top: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: #FFF;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 28px #17212b06;
}

@media (hover: hover) {
  .join-button:hover { background: var(--blue-hover); box-shadow: 0 5px 16px #168ac225; }
}

@media (max-width: 479px) {
  .container { padding-inline: 20px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .masthead { padding-block: 21px; }
  .brand { font-size: 11px; gap: 7px; }
  .masthead__note { font-size: 10px; }
  .hero { padding-top: 20px; }
  .telegram-mark { width: 72px; height: 72px; margin-bottom: 23px; outline-offset: 9px; }
  .telegram-mark svg { width: 39px; height: 39px; }
  .eyebrow { margin-bottom: 10px; font-size: 11px; }
  h1 { font-size: clamp(27px, 7.45vw, 32px); line-height: 1.62; }
  .hero__description { margin-top: 12px; margin-bottom: 21px; font-size: 14px; line-height: 1.95; }
  .hero__note { font-size: 10px; gap: 6px; }
  .benefits { margin-block: 28px 24px; padding-block: 21px; }
  .benefits__list li { font-size: 11px; gap: 9px; padding-inline: 4px; }
  .benefits__list svg { width: 23px; height: 23px; }
  .channel-content { padding: 23px 20px 5px; border-radius: 17px; }
  h2 { font-size: 20px; }
  .channel-content > p { font-size: 13px; }
}

@media (max-height: 640px) and (max-width: 767px) {
  .masthead { padding-block: 14px; }
  .hero { padding-top: 8px; }
  .telegram-mark { width: 56px; height: 56px; margin-bottom: 16px; outline-offset: 6px; }
  .telegram-mark svg { width: 31px; height: 31px; }
  .eyebrow { margin-bottom: 6px; }
  h1 { font-size: 25px; line-height: 1.5; }
  .hero__description { margin-block: 9px 14px; font-size: 13px; }
  .hero__note { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .join-button { transition: none; }
}

@media (forced-colors: active) {
  .join-button { border-color: ButtonText; }
}

/* V2 additions retain the original hero, palette, fonts and fixed CTA. */
.hero__identity { margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.channel-content { padding-bottom: 26px; }
.editorial { margin-top: 30px; }
.section-intro { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.article-list { display: grid; gap: 12px; margin-top: 18px; }
.article-card { min-width: 0; padding: 18px 20px 6px; border: 1px solid var(--border); border-radius: 16px; background: #FFF; }
.article-card__category { color: #126D99; font-size: 10px; font-weight: 700; line-height: 1.9; }
.article-card h3 { margin: 6px 0 8px; font-size: 16px; line-height: 1.7; font-weight: 700; text-wrap: pretty; }
.article-card p { color: var(--muted); font-size: 13px; line-height: 1.95; }
.source-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.8; text-underline-offset: 4px; }
.source-link svg { width: 13px; height: 13px; }
.source-link:hover, .footer-links a:hover, .privacy-document a:hover { color: #126D99; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.faq { margin-top: 30px; }
.faq h2 { margin-bottom: 11px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding-block: 13px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; line-height: 1.8; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--muted); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding-block: 0 16px; padding-inline-end: 16px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.final-cta { margin-top: 28px; }
.page-footer { padding-block: 26px 12px; font-size: 11px; line-height: 1.95; }
.publisher-name { margin-bottom: 5px; color: var(--ink); font-size: 13px; font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 20px; margin-top: 8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 11px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.privacy-document { padding-block: 20px 0; }
.privacy-document h1 { font-size: 28px; text-align: start; margin: 0; line-height: 1.6; }
.privacy-document > p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 2; }
.privacy-date { font-size: 11px !important; }
.privacy-document section { padding-top: 25px; }
.privacy-document h2 { font-size: 18px; margin-bottom: 7px; }
.privacy-document section p, .privacy-document li { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 2; overflow-wrap: anywhere; }
.privacy-document ul { padding-inline-start: 21px; margin-block: 10px 0; }
.privacy-document a { color: #126D99; text-underline-offset: 4px; }
.privacy-document code { font-size: 12px; overflow-wrap: anywhere; }
.privacy-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; color: var(--muted); font-size: 12px; text-underline-offset: 4px; }

@media (max-width: 479px) {
  .hero__identity { font-size: 10px; }
  .channel-content { padding-bottom: 23px; }
  .editorial, .faq { margin-top: 26px; }
  .article-card { padding-inline: 17px; }
  .article-card h3 { font-size: 15px; }
  .section-intro { font-size: 11px; }
  .footer-links { column-gap: 18px; }
}
