/* Journal (/journal/, /journal/<slug>/, /en/...): theme archive-4 head and list with the home's journal bento
   (sections.css), and theme blog-details for the posts. Each block sits in the home's rounded panel; main.css styles the
   theme classes it has (.blog-card-2, .blog-card, .filter-btn), this file sizes them for Shfrah's type and pictures,
   adds the theme parts the home's main.css does not carry (breadcrumb, share list), dark mode and the English mirrors. */

/* no coloured text (the owner's rule): labels in the page's muted grey, links that keep their colour and take an
   underline under the pointer, marks in neutral greys */
.shf-page-journal { --shf-jr-line: rgba(30, 30, 30, .1); --shf-jr-muted: #5b5c5c; }
[data-bs-theme=dark] .shf-page-journal { --shf-jr-line: rgba(255, 255, 255, .12); --shf-jr-muted: #a9abad; }
.shf-page-journal main p { text-wrap: pretty; }

/* ======================================================= index: head (archive-4) */
.shf-jr-head { padding: 72px 0 64px; }
.shf-jr-head__title { margin-top: 8px; text-wrap: balance; }
html[dir="rtl"] .shf-jr-head__title { line-height: 1.15; }
.shf-jr-head__lead { line-height: 1.7; }
.shf-jr-rss {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 18px; border-radius: 100px;
  border: 1px solid var(--at-neutral-100); color: var(--at-neutral-900); font-size: 14px; font-weight: 600; line-height: 1.3;
  transition: border-color .3s ease, color .3s ease;
}
.shf-jr-rss:hover, .shf-jr-rss:focus-visible { border-color: var(--at-neutral-900); color: var(--at-neutral-900); }
.shf-jr-rss:focus-visible { outline: 2px solid var(--at-neutral-900); outline-offset: 3px; }
.shf-jr-rss__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.shf-jr-bento { margin-top: 64px; }

/* the home's cards in English: the arrow points up and to the right, the hover turn goes the other way */
html[dir="ltr"] .shf-post__go svg { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) {
  html[dir="ltr"] .shf-post:hover .shf-post__go { transform: rotate(45deg) scale(1.06); }
}

/* the date and the reading time: a round dot between them (a middle dot beside Arabic digits reads as a zero) */
.shf-page-journal .blog-card-2__meta, .shf-page-journal .blog-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.shf-jr-dot { flex: none; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }

/* ======================================================= index: filter + list (archive-4) */
.shf-jr-list { padding: 96px 0; }
.shf-jr-list__count { margin: 6px 0 22px; color: var(--shf-jr-muted); font-size: 15px; }
.shf-jr-filter .filter-btn { cursor: pointer; padding: 9px 18px; font-size: 15px; line-height: 1.3; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.shf-jr-filter .filter-btn:hover { border-color: var(--at-neutral-900); }
.shf-jr-filter .filter-btn[aria-pressed="true"] { background: var(--at-neutral-900); border-color: var(--at-neutral-900); color: var(--at-neutral-0); }
html[lang="en"] .shf-jr-filter .filter-btn { letter-spacing: 0; }
.shf-jr-rows { margin-top: 8px; }
@media (min-width: 1400px) { .shf-jr-rows { margin-top: 0; } }
.shf-jr-row[hidden] { display: none !important; }
.shf-jr-row.blog-card-2 { border-bottom-color: var(--shf-jr-line); padding-bottom: 28px; }
.shf-jr-row:last-child { border-bottom: 0; padding-bottom: 0; }
.shf-jr-row .blog-card-2__left { flex: 1 1 0; gap: 18px; align-items: flex-start; }
.shf-jr-row .blog-card-2__right { flex: 0 0 30%; }
.shf-jr-row .blog-card-2__category { font-size: 13px; letter-spacing: 0; padding: 7px 14px; border-radius: 100px; text-transform: none; background: transparent; border-color: var(--at-neutral-100); color: var(--at-neutral-900); }
.shf-jr-row .blog-card-2__title { font-size: clamp(19px, 1.5vw, 24px); line-height: 1.45; text-wrap: balance; }
.shf-jr-row .blog-card-2__title-link { color: var(--at-neutral-900); }
.shf-jr-row .blog-card-2__title-link:hover, .shf-jr-row .blog-card-2__title-link:focus-visible { color: var(--at-neutral-900); text-decoration: underline; text-underline-offset: 5px; }
.shf-jr-row .blog-card-2__thumb { border-radius: 18px; background: #0b0d10; }
.shf-jr-row .blog-card-2__img { border-radius: 18px; }
.shf-jr-row .blog-card-2__right { gap: 18px; }
.shf-jr-row .blog-card-2__excerpt { color: var(--shf-jr-muted); font-size: 16px; line-height: 1.75; }
.shf-jr-row .blog-card-2__meta, .shf-jr-row .blog-card-2__meta-text { color: var(--shf-jr-muted); line-height: 1.4; }
@media (max-width: 1199.98px) {
  .shf-jr-row .blog-card-2__thumb { flex-basis: 280px; width: 280px; height: 190px; }
}
@media (max-width: 991.98px) {
  .shf-jr-row.blog-card-2 { flex-direction: column; align-items: stretch; gap: 18px; }
  .shf-jr-row .blog-card-2__left, .shf-jr-row .blog-card-2__right { flex: none; }
  .shf-jr-row .blog-card-2__thumb { order: -1; flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* phones: compact rows (picture at the start, category, title, date), like the home's small journal cards */
@media (max-width: 767.98px) {
  .shf-jr-row.blog-card-2 {
    display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "img left" "img right";
    align-items: start; gap: 8px 14px; padding-bottom: 18px;
  }
  .shf-jr-row .blog-card-2__thumb { grid-area: img; order: 0; width: 112px; height: 112px; aspect-ratio: auto; border-radius: 14px; }
  .shf-jr-row .blog-card-2__img { border-radius: 14px; }
  .shf-jr-row .blog-card-2__left { grid-area: left; gap: 8px; }
  .shf-jr-row .blog-card-2__right { grid-area: right; gap: 0; }
  .shf-jr-row .blog-card-2__category { padding: 3px 10px; font-size: 12px; }
  .shf-jr-row .blog-card-2__title { font-size: 17px; line-height: 1.5; }
  .shf-jr-row .blog-card-2__excerpt { display: none; }
  .shf-jr-row .blog-card-2__meta { font-size: 12.5px; }
  .shf-jr-rows { gap: 18px !important; }
}

/* ======================================================= post: blog-details section 1 */
.shf-jp { padding: 72px 0 72px; }
.shf-jp__crumb { flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.shf-jp__crumb a { color: var(--at-neutral-900); }
.shf-jp__crumb a.neutral-500 { color: var(--shf-jr-muted); }
.shf-jp__crumb a:hover, .shf-jp__crumb a:focus-visible { color: var(--at-neutral-900); text-decoration: underline; text-underline-offset: 4px; }
.shf-jp__sep { color: var(--shf-jr-muted); }
html[dir="rtl"] .shf-jp__sep { transform: scaleX(-1); }
.shf-jp__title { margin-top: 18px; font-size: clamp(34px, 4.2vw, 62px); line-height: 1.18; text-wrap: balance; letter-spacing: 0; }
html[dir="rtl"] .shf-jp__title { font-weight: 700; line-height: 1.32; }
html[dir="ltr"] .shf-jp__title { letter-spacing: -.02em; }
.shf-jp__dek { margin: 22px 0 0; max-width: 46ch; color: var(--shf-jr-muted); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.7; }
.shf-jp__bar { border-top: 1px solid var(--shf-jr-line); margin-top: 32px; padding-top: 22px !important; }
.shf-jp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; color: var(--shf-jr-muted); font-size: 15px; }
.shf-jp__cat { padding: 6px 14px; border-radius: 100px; border: 1px solid var(--at-neutral-100); color: var(--at-neutral-900); font-size: 13px; font-weight: 600; line-height: 1.3; }
.shf-jp__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.shf-jp__share .nav-menu__item { color: var(--shf-jr-muted); font-size: 13px; letter-spacing: .02em; }
.shf-jp__share .at-social__link {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid var(--at-neutral-100); background: transparent; color: var(--at-neutral-900);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.shf-jp__share .at-social__link:hover, .shf-jp__share .at-social__link:focus-visible, .shf-jp__copy.is-done {
  background: var(--at-neutral-900); border-color: var(--at-neutral-900); color: var(--at-neutral-0);
}
.shf-jp__share .at-social__link:focus-visible { outline: 2px solid var(--at-neutral-900); outline-offset: 3px; }

.shf-jp__hero-col { padding-top: 48px; padding-bottom: 56px; }
.shf-jp__hero { overflow: hidden; border-radius: 28px; background: #0b0d10; aspect-ratio: 16 / 9; }
.shf-jp__hero-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the body: the theme's large lede, then h2 / p / quote */
.shf-jp__body { font-size: 19px; }
.shf-jp__lede { margin-bottom: 44px; color: var(--at-neutral-900); font-size: clamp(21px, 1.75vw, 26px); line-height: 1.75; }
html[dir="ltr"] .shf-jp__lede { line-height: 1.6; }
.shf-jp__body p.fz-font-lg { margin-bottom: 26px; font-size: 19px; line-height: 1.95; }
html[dir="ltr"] .shf-jp__body p.fz-font-lg { font-size: 18px; line-height: 1.75; }
.shf-jp__h2 { margin: 52px 0 18px; font-size: clamp(24px, 2vw, 30px); line-height: 1.4; font-weight: 700; letter-spacing: 0; }
html[dir="ltr"] .shf-jp__h2 { font-weight: 600; letter-spacing: -.01em; }
.shf-jp__quote {
  position: relative; margin: 48px 0; padding: 34px 36px 34px; border-radius: 24px;
  background: var(--at-neutral-50); color: var(--at-neutral-900);
}
.shf-jp__quote p { margin: 0; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.75; font-weight: 500; }
.shf-jp__qmark { display: block; margin-bottom: 18px; color: var(--at-neutral-500); }
html[dir="rtl"] .shf-jp__qmark { transform: scaleX(-1); }

.shf-jp__tags { border-top: 1px solid var(--shf-jr-line); }
.shf-jp__tags .filter-btn { padding: 9px 18px; font-size: 15px; line-height: 1.3; }
.shf-jp__tags .filter-btn:hover, .shf-jp__tags .filter-btn:focus-visible { border-color: var(--at-neutral-900); color: var(--at-neutral-900); }
.shf-jp__navrow { justify-content: space-between; }
.shf-jp__nav--older { text-align: end; }
.shf-jp__navlbl { color: var(--shf-jr-muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.shf-jp__nav h3 { line-height: 1.5; font-size: 18px; }
.shf-jp__nav a { color: var(--at-neutral-900); }
.shf-jp__nav a:hover, .shf-jp__nav a:focus-visible { color: var(--at-neutral-900); text-decoration: underline; text-underline-offset: 5px; }

/* ======================================================= post: read more (blog-details section 2) */
.shf-jp-more { padding: 72px 0 52px; }
.shf-jp-more .blog-card__thumb { overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 10; margin-bottom: 0; background: #0b0d10; }
.shf-jp-more .blog-card { display: flex; flex-direction: column; gap: 20px; }
.shf-jp-more .blog-card__img22 { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) and (pointer: fine) { .shf-jp-more .blog-card:hover .blog-card__img22 { transform: scale(1.05); } }
.shf-jp-more .blog-card__content { gap: 14px; }
.shf-jp__relcat { align-self: flex-start; padding: 5px 12px; border-radius: 100px; border: 1px solid var(--at-neutral-100); color: var(--at-neutral-900); font-size: 12px; font-weight: 600; line-height: 1.3; }
.shf-jp-more .blog-card__title { font-size: 20px; line-height: 1.5; max-height: none; }
.shf-jp-more .blog-card__title-link { color: var(--at-neutral-900); }
.shf-jp-more .blog-card__title-link:hover, .shf-jp-more .blog-card__title-link:focus-visible { color: var(--at-neutral-900); text-decoration: underline; text-underline-offset: 5px; }
.shf-jp-more .blog-card__meta, .shf-jp-more .blog-card__meta-text { color: var(--shf-jr-muted); font-size: 14px; line-height: 1.4; }

/* ======================================================= phones */
@media (max-width: 767.98px) {
  .shf-jr-head { padding: 56px 0 40px; }
  .shf-jr-bento { margin-top: 40px; }
  .shf-jr-list { padding: 56px 0; }
  .shf-jp { padding: 48px 0 40px; }
  .shf-jp__hero-col { padding-top: 32px; padding-bottom: 36px; }
  .shf-jp__hero { border-radius: 20px; aspect-ratio: 4 / 3; }
  .shf-jp__quote { padding: 26px 22px; border-radius: 20px; }
  .shf-jp__body p.fz-font-lg { font-size: 18px; }
  .shf-jp__nav--older { text-align: start; }
  .shf-jp-more { padding: 52px 0 26px; }
}
