/* The Journal: index and article pages. Shared card styles live in styles.css. */
.journal-page main { min-height: 60vh; }
.header nav a[aria-current=page]::after { transform: scaleX(1); }

.journal-masthead {
  padding-bottom: 40px;
  background:
    radial-gradient(ellipse at 88% 20%, #c3d0c4 0%, transparent 45%),
    radial-gradient(ellipse at 10% 0%, #f0e8d9 0%, transparent 55%),
    #eae9dd;
}
.journal-masthead h1 { margin: 18px 0 26px; }
.journal-masthead .lead { max-width: 640px; color: #46544a; font-size: 1.12rem; }
.journal-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 46px; }
.journal-filters a {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  padding: 9px 16px; border: 1px solid #b7c2b6; border-radius: 999px; transition: background .3s, color .3s;
}
.journal-filters a:hover { background: #ffffff80; }
.journal-filters a[aria-current=true] { background: var(--dark); color: var(--cream); border-color: var(--dark); }

.journal-list { padding-top: 80px; }
.story.lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 7%; align-items: center; padding-bottom: 80px; border-bottom: 1px solid var(--line); }
.story.lead .story-media { aspect-ratio: 4 / 3; }
.story.lead .story-body { padding-top: 0; }
.story.lead .story-title { font-size: clamp(2.2rem, 3.6vw, 3.6rem); font-weight: 300; }
.story.lead .story-excerpt { font-size: 1.08rem !important; }
.story.lead .text-link { margin-top: 18px; }

.journal-empty { text-align: center; padding: 70px 20px 40px; max-width: 640px; margin: 0 auto; }
.journal-empty-mark { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 5rem; line-height: 1; color: #77907b44; margin: 0 0 10px; }
.journal-empty h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 18px; }
.journal-empty p { color: var(--ink-soft); }
.journal-empty .btn { margin-top: 18px; }

.preview-banner { background: #b9895a; color: #fff; text-align: center; padding: 12px 20px; font-size: .86rem; letter-spacing: .04em; }

/* Article */
.post { padding: 80px 7% 40px; }
.post-head { max-width: 860px; margin: 0 auto; text-align: center; }
.post-back { display: inline-block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 44px; }
.post-back::before { content: '←'; margin-inline-end: 10px; }
html[dir=rtl] .post-back::before { content: '→'; }
.post-head .story-meta { justify-content: center; }
.post-head h1 { font-size: clamp(2.7rem, 5.6vw, 5.2rem); margin: 22px auto 26px; max-width: 900px; }
.post-standfirst { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.7rem) !important; line-height: 1.45; color: var(--ink-soft); max-width: 700px; margin: 0 auto 34px; font-style: italic; }
.post-byline { font-size: .9rem !important; color: var(--ink-soft); display: flex; justify-content: center; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.post-byline strong { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.3rem; color: var(--dark); }
.post-role { display: block; width: 100%; font-size: .7rem !important; letter-spacing: .22em; text-transform: uppercase; color: var(--sage); font-weight: 500; margin: 4px 0 0; }

.post-hero { margin: 64px auto 0; max-width: 1240px; }
.post-hero img { width: 100%; max-height: 78vh; object-fit: cover; display: block; }

.post-body { max-width: 690px; margin: 70px auto 0; font-size: 1.12rem; line-height: 1.95; color: #38443b; }
.post-body p { font-size: 1.12rem; margin: 0 0 1.5em; }
.post-body > p:first-of-type::first-letter {
  font-family: var(--serif); float: left; font-size: 4.6em; line-height: .82; margin: .06em .12em 0 0; color: var(--dark); font-weight: 400;
}
.post-body h2 { font-size: clamp(1.9rem, 2.8vw, 2.5rem); font-weight: 400; margin: 1.8em 0 .6em; }
.post-body h3 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.post-body blockquote {
  font-style: italic; font-weight: 300; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.35; color: var(--dark);
  margin: 1.6em 0; padding-inline-start: 28px; border-inline-start: 1px solid var(--sage);
}
.post-body blockquote p { font-size: inherit; margin: 0; }
.post-body a { border-bottom: 1px solid var(--sage); }
.post-body ul, .post-body ol { padding-inline-start: 1.3em; margin: 0 0 1.5em; }
.post-body li { margin-bottom: .5em; }
.post-body img { display: block; width: 100%; height: auto; margin: 2.2em 0; }
.post-body figure { margin: 2.2em 0; }
.post-body figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }
.post-body hr { border: 0; text-align: center; margin: 2.4em 0; }
.post-body hr::after { content: '· · ·'; letter-spacing: .6em; color: var(--sage); }

.post-share { max-width: 690px; margin: 70px auto 0; padding-top: 34px; border-top: 1px solid var(--line); }
.share-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.share-links a, .share-links button {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; color: var(--ink); background: transparent;
  border: 1px solid #b7c2b6; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s;
}
.share-links a:hover, .share-links button:hover { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.share-links button[hidden] { display: none; }
.share-note { font-size: .82rem !important; color: #7d847e; margin-top: 16px !important; }

.post-author { max-width: 690px; margin: 60px auto 0; display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: start; padding: 38px; background: #ebece4; }
.post-author img { width: 120px; height: 150px; object-fit: cover; object-position: center 30%; display: block; }
.post-author .eyebrow { margin-bottom: 6px; }
.post-author-name { font-family: var(--serif); font-size: 1.9rem !important; line-height: 1.1; margin: 0 !important; }
.post-author .post-role { margin: 6px 0 14px; }
.post-author p:not(.eyebrow):not(.post-author-name):not(.post-role) { color: var(--ink-soft); font-size: .98rem; }

.post-related { background: var(--cream-light); }
.post-related .story-grid { margin-top: 30px; }

/* Arabic */
html[lang=ar] .journal-filters a, html[lang=ar] .post-back, html[lang=ar] .post-role, html[lang=ar] .share-links a, html[lang=ar] .share-links button { letter-spacing: 0; text-transform: none; font-size: .9rem; }
html[lang=ar] .post-body { font-size: 1.18rem; line-height: 2.1; }
html[lang=ar] .post-body p { font-size: 1.18rem; }
html[lang=ar] .post-body > p:first-of-type::first-letter { float: none; font-size: inherit; margin: 0; font-family: inherit; color: inherit; }
html[lang=ar] .post-standfirst, html[lang=ar] .post-byline strong, html[lang=ar] .post-author-name, html[lang=ar] .post-body blockquote, html[lang=ar] .journal-empty-mark { font-family: 'Amiri', var(--serif); font-style: normal; line-height: 1.8; }
html[lang=ar] .journal-empty-mark { font-family: var(--serif); font-style: italic; }
html[lang=ar] .story.lead .story-title { line-height: 1.5; }

@media (max-width: 860px) {
  .story.lead { grid-template-columns: 1fr; gap: 30px; padding-bottom: 60px; }
  .journal-list { padding-top: 56px; }
  .post { padding: 56px 6% 20px; }
  .post-back { margin-bottom: 30px; }
  .post-hero { margin-top: 44px; }
  .post-body { margin-top: 50px; font-size: 1.06rem; }
  .post-body p { font-size: 1.06rem; }
  .post-author { grid-template-columns: 1fr; padding: 30px 26px; gap: 22px; }
}
