/**
 * Guide / site-page reading shell — قراءة · استماع · مشاركة.
 */

.jf-guide-page {
  max-width: var(--jf-max, 720px);
  margin: 0 auto;
  padding: 1rem 1rem 5.5rem;
  font-family: "Cairo", system-ui, sans-serif;
  color: var(--jf-ink, #0f172a);
}

.jf-guide-page__hero {
  margin-bottom: 0.85rem;
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 1.15rem;
  border: 1px solid color-mix(in srgb, #e3000f 14%, #e2e8f0);
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, #e3000f 9%, transparent), transparent 55%),
    linear-gradient(165deg, #fff 0%, #f8fafc 100%);
}

.jf-guide-page__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--jf-muted, #64748b);
}

.jf-guide-page__crumbs a {
  color: #e3000f;
  text-decoration: none;
}

.jf-guide-page__crumbs a:hover {
  text-decoration: underline;
}

.jf-guide-page__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #e3000f;
}

.jf-guide-page__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 4.2vw, 1.95rem);
  font-weight: 900;
  line-height: 1.3;
}

.jf-guide-page__lead {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--jf-muted, #475569);
}

.jf-guide-page__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.jf-guide-page__chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.2rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid color-mix(in srgb, #e3000f 22%, #e2e8f0);
  background: color-mix(in srgb, #e3000f 6%, #fff);
  color: #e3000f;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.jf-guide-page__chip:hover {
  border-color: #e3000f;
  background: color-mix(in srgb, #e3000f 10%, #fff);
}

.jf-guide-page__hubs {
  margin: 1.15rem 0;
}

.jf-guide-page__sec-title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 900;
}

.jf-guide-page__hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.jf-guide-page__hub {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid var(--jf-border, #e2e8f0);
  background: var(--jf-card, #fff);
  color: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.jf-guide-page__hub:hover {
  border-color: color-mix(in srgb, #e3000f 45%, #e2e8f0);
  color: #e3000f;
}

.jf-guide-page__content {
  margin: 1rem 0 1.5rem;
  padding: 1.15rem 1.05rem 1.25rem;
  border-radius: 1.05rem;
  border: 1px solid var(--jf-border, #e2e8f0);
  background: var(--jf-card, #fff);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 2.05;
  color: color-mix(in srgb, #0f172a 92%, transparent);
}

.jf-guide-page__content > *:first-child {
  margin-top: 0;
}

.jf-guide-page__content p {
  margin: 0 0 1.05rem;
}

.jf-guide-page__content h2,
.jf-guide-page__content h3 {
  margin: 1.35rem 0 0.55rem;
  font-weight: 900;
  line-height: 1.35;
  color: #0f172a;
}

.jf-guide-page__content h2 {
  font-size: 1.15rem;
}

.jf-guide-page__content a {
  color: #e3000f;
  font-weight: 800;
}

.jf-guide-page__content ul,
.jf-guide-page__content ol {
  margin: 0 0 1.05rem;
  padding-inline-start: 1.25rem;
}

.jf-guide-page__block {
  margin-bottom: 1.35rem;
}

.jf-guide-page__block h2 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 900;
}

.jf-guide-page__quote {
  margin: 0 0 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border-inline-start: 3px solid #e3000f;
  background: color-mix(in srgb, #0f172a 3%, #fff);
}

.jf-guide-page__quote p {
  margin: 0 0 0.45rem;
  font-weight: 700;
  line-height: 1.85;
}

.jf-guide-page__quote footer {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--jf-muted, #64748b);
}

.jf-guide-page__related {
  margin: 1.75rem 0 0.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid color-mix(in srgb, #0f172a 8%, transparent);
}

.jf-guide-page__related-head {
  margin-bottom: 0.75rem;
}

.jf-guide-page__related-sub {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--jf-muted, #64748b);
}

.jf-guide-page__related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.jf-guide-page__related-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid var(--jf-border, #e2e8f0);
  border-inline-start: 3px solid color-mix(in srgb, #e3000f 50%, #e2e8f0);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jf-guide-page__related-link:hover {
  border-color: color-mix(in srgb, #e3000f 40%, #e2e8f0);
  border-inline-start-color: #e3000f;
  box-shadow: 0 6px 18px color-mix(in srgb, #0f172a 6%, transparent);
}

.jf-guide-page__related-title {
  font-size: 0.92rem;
  font-weight: 900;
}

.jf-guide-page__related-blurb {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--jf-muted, #64748b);
  line-height: 1.45;
}

.jf-guide-page__related-more {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.jf-guide-page__related-more a {
  color: #e3000f;
  text-decoration: none;
}

.jf-guide-page__related-more a:hover {
  text-decoration: underline;
}

.jf-guide__empty {
  padding: 2rem 1rem;
  text-align: center;
  font-weight: 800;
}

/* —— Dahya index —— */
.jf-dahya-index {
  margin: 1.5rem 0 1rem;
}

.jf-dahya-index__head {
  margin-bottom: 0.85rem;
}

.jf-dahya-index__head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 900;
}

.jf-dahya-index__head p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jf-muted, #64748b);
  line-height: 1.55;
}

.jf-dahya-index__letters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.jf-dahya-index__letter {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  border-radius: 0.55rem;
  border: 1px solid var(--jf-border, #e2e8f0);
  background: #fff;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.jf-dahya-index__letter:hover {
  border-color: #e3000f;
  color: #e3000f;
}

.jf-dahya-index__block {
  margin-bottom: 1.25rem;
}

.jf-dahya-index__letter-title {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 900;
}

.jf-dahya-index__letter-title small {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--jf-muted, #64748b);
}

.jf-dahya-index__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .jf-dahya-index__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.jf-dahya-index__card {
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--jf-border, #e2e8f0);
  background: #fff;
}

.jf-dahya-index__name {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 900;
}

.jf-dahya-index__yt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.jf-dahya-index__yt-input {
  flex: 1 1 8rem;
  min-width: 0;
  min-height: 2.2rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.55rem;
  border: 1px solid var(--jf-border, #e2e8f0);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
}

.jf-dahya-index__btn {
  min-height: 2.2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid color-mix(in srgb, #e3000f 30%, #e2e8f0);
  background: color-mix(in srgb, #e3000f 8%, #fff);
  color: #e3000f;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.jf-dahya-index__btn--save {
  border-color: var(--jf-border, #e2e8f0);
  background: #fff;
  color: #0f172a;
}

.jf-dahya-index__player {
  margin-top: 0.55rem;
}

.jf-dahya-index__player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.65rem;
}

.jf-dahya-index__note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px dashed var(--jf-border, #e2e8f0);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--jf-muted, #64748b);
  line-height: 1.55;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Guide pages use sticky tools from single-news.css — anchor near guide content */
.jf-guide .jf-tools--inline {
  margin: 0.75rem 0 1rem;
}
