/* ============================================================
   مجلس الجمعة — redesign v2 «جريدة الجمعة والدفتر»
   A warm Friday archive, not a cafe ad.
   Paper + ink + clay. Thmanyah Sans for text, Camel as brand voice.
   ============================================================ */

@font-face {
  font-family: "The Year of The Camel";
  src: url("../The Year of The Camel/TheYearofTheCamel-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "The Year of The Camel";
  src: url("../The Year of The Camel/TheYearofTheCamel-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "The Year of The Camel";
  src: url("../The Year of The Camel/TheYearofTheCamel-Bold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #17130f;
  --paper: #f7f0e4;
  --warm-white: #fffaf1;
  --clay: #b4482f;
  --olive: #5c6842;
  --blue: #2f5f72;
  --gold: #c79a45;
  --muted: #8a7a66;
  --line: #e2d7c3;
  --rule: #c9bba1;
  --camel: "The Year of The Camel", ui-sans-serif, system-ui, sans-serif;
  --sans: "The Year of The Camel", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

[data-language-only][hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.paper {
  width: min(1360px, calc(100% - 88px));
  margin: 0 auto;
  padding-block: 18px 56px;
}

.muted {
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* الشعار الصغير فوق العناوين */
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clay);
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--camel);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.35;
}

/* ---------- سطر التاريخ + الترويسة ---------- */

.dateline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  font-size: 0.76rem;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

.dateline span:first-child {
  text-align: start;
}

.dateline span:nth-child(2) {
  color: var(--clay);
  font-weight: 500;
  text-align: center;
}

.dateline span:last-child {
  text-align: end;
}

.masthead {
  text-align: center;
  padding-block: 34px 22px;
}

.masthead-mark {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto 18px;
}

.wordmark {
  width: min(430px, 82%);
  height: auto;
  display: inline-block;
}

.wordmark-text {
  display: inline-block;
  font-family: var(--camel), Georgia, serif;
  font-size: clamp(2.7rem, 7vw, 4.9rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.masthead-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  border-top: 1px solid var(--rule);
  border-bottom: 3px double var(--rule);
  padding-block: 10px;
  position: relative;
}

.site-nav {
  display: flex;
  gap: 26px;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a.active {
  color: var(--clay);
  font-weight: 700;
}

.language-switch {
  position: absolute;
  inset-inline-end: 0;
  display: flex;
  gap: 2px;
}

.language-switch button {
  border: 0;
  background: transparent;
  padding: 2px 8px;
  font-size: 0.8rem;
  color: var(--muted);
  border-radius: 3px;
}

.language-switch button.active {
  color: var(--clay);
  font-weight: 700;
}

/* ---------- الموضوع الرئيسي ---------- */

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 44px;
  padding-block: 44px 40px;
  align-items: start;
}

.lead-title {
  font-family: var(--camel);
  font-size: clamp(2.6rem, 6.5vw, 4rem);
  font-weight: 400;
  line-height: 1.25;
  margin-top: 2px;
}

.lead-standfirst {
  color: var(--muted);
  max-width: 30em;
  margin-top: 12px;
  font-size: 0.98rem;
}

.mood-block {
  margin-top: 26px;
}

.mood-prompt {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.mood-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-buttons button {
  border: 1px solid var(--rule);
  background: var(--warm-white);
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.mood-buttons button:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.mood-buttons button.active {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--warm-white);
}

.pick-entry {
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}

.pick-name {
  font-family: var(--camel);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.2;
}

.pick-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 14px;
}

.pick-score-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.pick-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clay);
}

.pick-score-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.map-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clay);
  border-bottom: 1px solid var(--clay);
  padding-bottom: 1px;
}

.map-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.stamp-button {
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 4px;
  padding: 6px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.stamp-button:hover {
  background: var(--ink);
  color: var(--warm-white);
}

/* الصورة الجانبية مع قصاصة */
.lead-photo {
  position: relative;
}

.lead-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 8px;
  background: var(--warm-white);
}

.photo-slip {
  position: absolute;
  inset-inline-start: 18px;
  bottom: 18px;
  background: var(--warm-white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 8px 14px;
  box-shadow: 0 8px 22px rgba(23, 19, 15, 0.14);
  line-height: 1.5;
}

.photo-slip span {
  display: block;
  font-size: 0.72rem;
  color: var(--clay);
  font-weight: 700;
}

.photo-slip strong {
  font-family: var(--camel);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---------- مقاهٍ أخرى ---------- */

.alts {
  border-top: 1px solid var(--rule);
  padding-block: 26px 34px;
}

.rule-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  margin-bottom: 14px;
}

.rule-heading .muted {
  font-size: 0.85rem;
}

.recommendation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.recommendation-card {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 18px;
}

.recommendation-card strong {
  font-family: var(--camel);
  font-weight: 500;
  font-size: 1.15rem;
  flex: 1;
}

.mini-badge {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clay);
  white-space: nowrap;
}

.map-button {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.15s ease;
}

.map-button:hover {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

/* ---------- طريقة الاختيار ---------- */

.ritual-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-block: 1px solid var(--rule);
}

.ritual-strip article {
  padding: 18px 20px;
  border-inline-start: 1px solid var(--line);
  line-height: 1.55;
}

.ritual-strip article:first-child {
  border-inline-start: 0;
}

.ritual-strip span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}

.ritual-strip strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 2px;
}

.ritual-strip p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- آخر جمعة: أحدث مجلس وآخر تقييم ---------- */

.this-friday {
  border-top: 1px solid var(--rule);
  padding-block: 30px 38px;
}

.this-friday-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 40px;
  align-items: stretch;
}

.tf-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clay);
}

.tf-article {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
  align-items: center;
  transition: border-color 0.15s ease;
}

.tf-article:hover {
  border-color: var(--clay);
}

.tf-article img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.tf-article-brand {
  aspect-ratio: 4 / 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}

.tf-article-brand img {
  width: 32px;
  height: 32px;
  aspect-ratio: auto;
  border: 0;
  object-fit: contain;
}

.tf-article-brand strong {
  font-family: var(--camel), Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.tf-article-copy h3 {
  font-family: var(--camel);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 4px;
}

.tf-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tf-read {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clay);
  border-bottom: 1px solid var(--clay);
  padding-bottom: 1px;
}

.tf-cafe {
  border-inline-start: 3px solid var(--clay);
  padding-inline-start: 20px;
  padding-block: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  align-self: center;
}

.tf-cafe h3 {
  font-family: var(--camel);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.25;
}

.tf-cafe-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.85rem;
}

.tf-score {
  direction: ltr;
  unicode-bidi: isolate;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clay);
}

.tf-score::after {
  content: "/10";
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.tf-note {
  font-size: 0.85rem;
  color: var(--olive);
}

.tf-note::before,
.tf-note::after {
  content: "*";
}

.tf-cafe .map-link {
  align-self: flex-start;
  margin-top: 6px;
}

/* ---------- الأرشيف ---------- */

.archive-head {
  border-top: 3px double var(--rule);
  padding-block: 36px 30px;
}

.archive-desc {
  max-width: 40em;
  margin-top: 8px;
  font-size: 0.95rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0;
  margin-top: 30px;
  border-block: 1px solid var(--rule);
}

.stat {
  padding: 16px 20px;
  border-inline-start: 1px solid var(--line);
}

.stat:first-child {
  border-inline-start: 0;
}

.stat strong {
  display: block;
  font-family: var(--camel);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.15;
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- أبرز الأرشيف ---------- */

.highlights {
  padding-block: 30px 40px;
}

.archive-best-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.archive-best-card {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--clay);
  border-radius: 4px;
  padding: 16px 18px;
  line-height: 1.6;
}

.archive-best-card > span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clay);
}

.archive-best-card div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.archive-best-card strong {
  font-family: var(--camel);
  font-size: 1.2rem;
  font-weight: 500;
}

.archive-best-card em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  font-size: 0.9rem;
}

.archive-best-card small {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- الفلاتر ---------- */

.controls {
  border-top: 1px solid var(--rule);
  padding-block: 26px 4px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px 30px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field > span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.field strong {
  color: var(--clay);
  font-weight: 700;
}

.field input[type="search"],
.field select {
  border: 1px solid var(--line);
  background: var(--warm-white);
  padding: 8px 12px;
  border-radius: 4px;
  outline: none;
  font-size: 0.92rem;
  transition: border-color 0.15s ease;
}

.field input[type="search"]:focus,
.field select:focus {
  border-color: var(--clay);
}

.field input[type="search"]::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.field input[type="range"] {
  accent-color: var(--clay);
  padding-block: 12px 6px;
}

.year-buttons {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 6px 26px;
}

.year-buttons button {
  border: 1px solid var(--line);
  background: var(--warm-white);
  border-radius: 4px;
  padding: 4px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.year-buttons button:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.year-buttons button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--warm-white);
}

/* ---------- الدفتر: سجل التقييمات ---------- */

.notebook {
  border-top: 1px solid var(--rule);
  padding-block: 34px 44px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0 44px;
  background:
    linear-gradient(var(--rule), var(--rule)) top / 100% 1px no-repeat;
}

.rating-card {
  border-bottom: 1px dotted var(--rule);
}

.rating-card-content {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block: 12px;
}

.rating-card-content > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}

.rating-card .date {
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 6.8em;
}

.rating-card h3 {
  font-family: var(--camel);
  font-size: 1.1rem;
  font-weight: 500;
}

/* نجمتا الملاحظة كما في الدفتر */
.rating-card .card-note {
  font-size: 0.8rem;
  color: var(--olive);
}

.rating-card .card-note::before,
.rating-card .card-note::after {
  content: "*";
  color: var(--olive);
}

.score-chip {
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}

.score-chip::after {
  content: "/10";
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.cafe-link {
  transition: color 0.15s ease;
}

.cafe-link:hover {
  color: var(--clay);
}

.toggle-cards {
  margin-top: 26px;
}

.empty-state {
  color: var(--muted);
  font-size: 0.9rem;
  padding-block: 14px;
}

/* ---------- الاتجاه ---------- */

.trend {
  border-top: 1px solid var(--rule);
  padding-block: 34px 42px;
}

.year-chart {
  display: grid;
  gap: 13px;
  margin-top: 8px;
}

.year-row {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  align-items: center;
  gap: 14px;
}

.year-label {
  font-weight: 700;
  font-size: 0.9rem;
}

.bar-track {
  display: block;
  height: 5px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  background: var(--clay);
  border-radius: 999px;
}

.metric {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- قاعة التميز + قيمة العودة ---------- */

.twin-lists {
  border-top: 1px solid var(--rule);
  padding-block: 34px 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px 52px;
}

.twin-lists .section-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leaderboard li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block: 11px;
  border-bottom: 1px dotted var(--rule);
}

.leaderboard .rank {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 1.5em;
  text-align: center;
}

.leaderboard li > div {
  flex: 1;
  min-width: 0;
}

.leaderboard strong {
  display: block;
  font-family: var(--camel);
  font-weight: 500;
  font-size: 1.05rem;
}

.leaderboard li > div > span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.repeat-list {
  display: grid;
}

.repeat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 12px;
  padding-block: 11px;
  border-bottom: 1px dotted var(--rule);
}

.repeat-row strong {
  font-family: var(--camel);
  font-weight: 500;
  font-size: 1.05rem;
}

.repeat-row > span:not(.mini-badge) {
  grid-column: 1;
  font-size: 0.78rem;
  color: var(--muted);
}

.repeat-row .mini-badge {
  grid-row: 1;
  grid-column: 2;
  align-self: baseline;
}

/* ---------- التذييل ---------- */

.site-footer {
  border-top: 3px double var(--rule);
  margin-top: 20px;
  padding-top: 26px;
  text-align: center;
}

.footer-mark {
  height: 30px;
  width: auto;
}

.footer-tagline {
  display: block;
  margin: 10px auto 0;
  width: min(180px, 50%);
  height: auto;
  opacity: 0.6;
}

.footer-tagline-text {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin-top: 14px;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--clay);
}

/* ---------- صفحة المجالس ---------- */

.majlis-lead {
  padding-block: 44px 40px;
}

.majlis-intro .section-title {
  font-size: clamp(2rem, 5vw, 2.9rem);
}

.majlis-intro p {
  color: var(--muted);
  max-width: 30em;
  margin-top: 10px;
  font-size: 0.95rem;
}

.latest-issue {
  border-top: 1px solid var(--rule);
  padding-block: 34px 40px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 38px;
  align-items: start;
}

.latest-issue-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 8px;
  background: var(--warm-white);
}

.latest-issue-copy .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clay);
  margin-bottom: 4px;
}

.latest-issue-copy h2 {
  font-family: var(--camel);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.3;
}

.latest-issue-copy h2 a:hover {
  color: var(--clay);
}

.latest-issue-copy > p:last-child {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.majlis-archive {
  border-top: 3px double var(--rule);
  padding-block: 34px 0;
}

.majlis-archive .kicker {
  margin-bottom: 2px;
}

.majlis-archive-title {
  font-family: var(--camel);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.majlis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 34px;
}

.majlis-story {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.majlis-story-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 7px;
  background: var(--warm-white);
}

.majlis-story .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clay);
}

.majlis-story h3 {
  font-family: var(--camel);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 2px;
}

.majlis-story h3 a:hover {
  color: var(--clay);
}

.majlis-story-copy > p:last-child {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- صفحة العدد / المقال ---------- */

.issue-article {
  max-width: 980px;
  margin-inline: auto;
  padding-block: 40px 20px;
}

.issue-opening {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 44px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--rule);
}

.issue-header h1 {
  font-family: var(--camel);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.25;
  margin-top: 2px;
}

.issue-dek {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 8px;
}

.issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clay);
}

.issue-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 8px;
  background: var(--warm-white);
}

.issue-body {
  max-width: 42em;
  padding-block: 34px 8px;
  font-size: 1.02rem;
  line-height: 1.95;
}

.issue-body > p {
  white-space: pre-line;
  margin-bottom: 18px;
}

.issue-section {
  margin-block: 26px;
}

.issue-section h2 {
  font-family: var(--camel);
  font-size: 1.45rem;
  font-weight: 500;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  margin-bottom: 10px;
}

.issue-section p {
  white-space: pre-line;
}

.issue-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-block: 28px;
}

.issue-gallery figure {
  margin: 0;
}

.issue-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 5px;
  background: var(--warm-white);
}

.issue-gallery figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}

.issue-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0;
  border-block: 1px solid var(--rule);
  margin-block: 30px;
}

.issue-facts article {
  padding: 14px 18px;
  border-inline-start: 1px solid var(--line);
  line-height: 1.6;
}

.issue-facts article:first-child {
  border-inline-start: 0;
}

.issue-facts span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clay);
}

.issue-facts strong {
  font-weight: 500;
  font-size: 0.95rem;
}

.issue-note {
  border-inline-start: 3px solid var(--clay);
  padding-inline-start: 20px;
  margin-block: 30px;
}

.issue-note blockquote {
  margin: 4px 0 0;
  font-family: var(--camel);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
}

/* عناصر المقال المولّد من article.js */
.issue-article .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clay);
  margin-bottom: 4px;
}

/* ---------- سياسة الخصوصية ---------- */

.privacy-opening {
  max-width: 46em;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--rule);
}

.privacy-summary {
  max-width: 46em;
}

.privacy-body {
  max-width: 46em;
}

.privacy-list {
  margin: 14px 0 0;
  padding-inline-start: 22px;
}

.privacy-list li {
  margin-bottom: 12px;
}

.privacy-contact {
  margin-block: 34px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-inline-start: 4px solid var(--clay);
  background: var(--warm-white);
}

.privacy-contact h2 {
  font-family: var(--camel);
  font-size: 1.65rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.privacy-email {
  display: inline-block;
  margin-block: 8px;
  color: var(--clay);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- الشاشات الواسعة ---------- */

@media (min-width: 1100px) {
  body {
    font-size: 17px;
  }

  .wordmark {
    width: min(480px, 82%);
  }

  .lead-story {
    gap: 64px;
    padding-block: 52px 48px;
  }

  .cards {
    gap: 0 56px;
  }

  .twin-lists {
    gap: 40px 72px;
  }

  .this-friday-grid {
    gap: 24px 64px;
  }
}

/* ---------- الجوال ---------- */

@media (max-width: 760px) {
  .paper {
    width: min(960px, calc(100% - 32px));
  }

  .dateline {
    grid-template-columns: 1fr 1fr;
  }

  .dateline span:nth-child(2) {
    display: none;
  }

  .masthead {
    padding-block: 26px 18px;
  }

  .masthead-nav {
    flex-wrap: wrap;
    gap: 10px 22px;
    justify-content: flex-start;
  }

  .language-switch {
    position: static;
    margin-inline-start: auto;
  }

  .lead-story {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 34px 32px;
  }

  .this-friday-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .tf-article {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .controls {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(odd) {
    border-inline-start: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .ritual-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .ritual-strip article:nth-child(odd) {
    border-inline-start: 0;
  }

  .ritual-strip article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .year-row {
    grid-template-columns: 44px 1fr auto;
  }

  .year-row .metric:last-child {
    display: none;
  }

  .rating-card .date {
    min-width: 0;
    width: 100%;
  }

  .latest-issue {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .issue-opening {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .issue-article {
    padding-block: 26px 12px;
  }

  .issue-body {
    font-size: 0.98rem;
    line-height: 1.85;
    padding-block: 26px 6px;
  }

  .issue-meta {
    gap: 4px 14px;
  }

  .issue-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .issue-facts article:nth-child(odd) {
    border-inline-start: 0;
  }

  .issue-facts article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .privacy-summary {
    grid-template-columns: 1fr;
  }

  .privacy-summary article {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .privacy-summary article:first-child {
    border-top: 0;
  }
}

/* ---------- من دفتر المجلس: المحتوى التحريري ---------- */

.editorial-hub {
  border-top: 1px solid var(--rule);
  padding-block: 30px 38px;
}

.editorial-score {
  text-align: center;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 8px 18px;
  background: var(--warm-white);
}

.editorial-score span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clay);
}

.editorial-score strong {
  font-family: var(--camel);
  font-size: 1.6rem;
  font-weight: 500;
  direction: ltr;
}

.editorial-lead {
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.8;
  margin-top: 14px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin-top: 22px;
  border-block: 1px solid var(--rule);
}

.editorial-card {
  padding: 18px 20px;
  border-inline-start: 1px solid var(--line);
  line-height: 1.6;
}

.editorial-card:first-child {
  border-inline-start: 0;
}

.editorial-card span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}

.editorial-card p {
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ---------- تحسينات الوصول واللمس ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
  border-radius: 2px;
}

.year-buttons button,
.mood-buttons button {
  min-height: 40px;
}

.tf-article-copy h3,
.tf-cafe h3,
.pick-name,
.card h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .editorial-grid {
    grid-template-columns: 1fr 1fr;
  }

  .editorial-card:nth-child(odd) {
    border-inline-start: 0;
  }

  .editorial-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .cards,
  .twin-lists {
    grid-template-columns: minmax(0, 1fr);
  }
}
