@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&family=Noto+Naskh+Arabic:wght@400;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* =========================================================
   ZIU Journal — T&F-inspired clean theme
   Loaded last to override legacy styles.
   ========================================================= */

.tf-theme {
  --tf-ink: #0f1a2a;
  --tf-muted: #5f6783;
  --tf-border: #e3e6ef;
  --tf-surface: #ffffff;
  --tf-bg: #ffffff;
  --tf-link: #097b7c;
  --tf-link-hover: #065a5b;
  --tf-accent: #097b7c;
  --tf-accent-2: #065a5b;
  --tf-radius: 0;
  --tf-shadow: none;
}

.tf-theme,
.tf-theme * {
  box-sizing: border-box;
}

.tf-theme {
  background: var(--tf-bg);
  color: var(--tf-ink);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

html[dir="rtl"] .tf-theme {
  font-family: "Noto Naskh Arabic", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.tf-theme a {
  color: var(--tf-link);
}

.tf-theme a:hover {
  color: var(--tf-link-hover);
}

/* Container tightening */
.tf-theme .container {
  max-width: 1120px;
}

/* Header: flatten and remove gradients */
.tf-theme .journal-header {
  background: var(--tf-surface);
  border-bottom: 1px solid var(--tf-border);
  box-shadow: none;
}

.tf-theme .journal-header-compact {
  background: #f4f5f7;
  border-bottom: 0;
  padding-top: 8px;
}

.tf-theme .journal-header-compact .journal-header-trail {
  text-align: right;
  color: var(--tf-link);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tf-theme .journal-header-compact .journal-header-trail a {
  color: var(--tf-link);
  text-decoration: none;
}

.tf-theme .journal-header-compact .head-inner {
  border: 1px solid #c8ceda;
  border-radius: 12px;
  background: #fff;
  padding: 8px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.tf-theme .journal-header-compact .nav-menu {
  flex: 1 1 auto;
}

.tf-theme .journal-header-compact .nav-menu > ul {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.tf-theme .journal-header-compact .nav-menu > ul > li > a {
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
}

.tf-theme .journal-header-compact .nav-menu > ul > li.current-menu-item > a {
  background: #eef5ff;
  color: #2e6ea7;
  border: 1px solid #b8d0eb;
}

.tf-theme .journal-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tf-theme .compact-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #1d4372;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
}

.tf-theme .compact-submit-btn:hover {
  color: #fff;
  background: #153356;
}

.tf-theme .compact-lang-switch {
  border: 1px solid #d4dae6;
  border-radius: 999px;
  padding: 6px 9px;
  color: #5d6578;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tf-theme .journal-header-compact .menu-right {
  display: none;
}

.tf-theme .header-top {
  background: var(--tf-surface);
  border-bottom: 1px solid var(--tf-border);
}

.tf-theme .top-link,
.tf-theme .lang-pill,
.tf-theme .pill {
  border-radius: 999px;
  border: 1px solid var(--tf-border);
  background: #fff;
  color: var(--tf-ink);
}

.tf-theme .pill-accent {
  border-color: rgba(9, 123, 124, 0.35);
  color: var(--tf-accent);
}

.tf-theme .head-inner .brand strong {
  font-weight: 700;
  letter-spacing: 0;
}

.tf-theme .head-inner .brand small {
  color: var(--tf-muted);
}

/* Global headings */
.tf-theme h1,
.tf-theme h2,
.tf-theme h3,
.tf-theme h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--tf-ink);
  line-height: 1.3;
}

/* Buttons (make legacy .btn look like T&F style) */
.tf-theme .btn,
.tf-theme .btn:focus {
  border-radius: 999px;
  border: 1px solid var(--tf-accent);
  background: var(--tf-accent);
  color: #fff;
  box-shadow: none;
}

.tf-theme .btn:hover {
  background: var(--tf-accent-2);
  border-color: var(--tf-accent-2);
  color: #fff;
}

/* ---------------------------------------------------------
   Formal breadcrumb image treatment
   --------------------------------------------------------- */
.tf-theme .breadcrumb {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.tf-theme .breadcrumb.breadcrumb--compact {
  height: clamp(170px, 24vw, 230px);
}

.tf-theme .breadcrumb .overlay-img {
  position: absolute;
  inset: 0;
}

.tf-theme .breadcrumb--contained-image .overlay-img--contained {
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: min(940px, calc(100% - 84px));
  transform: translateX(-50%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(8, 15, 28, 0.16);
}

.tf-theme .breadcrumb .overlay-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.05);
  transform: scale(1.02);
}

.tf-theme .breadcrumb .overlay-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(9, 123, 124, 0.26) 0%, rgba(9, 123, 124, 0.06) 45%, rgba(9, 123, 124, 0) 72%);
  z-index: 1;
}

.tf-theme .breadcrumb .overlay-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 15, 28, 0.64) 0%, rgba(8, 15, 28, 0.44) 56%, rgba(8, 15, 28, 0.34) 100%);
  z-index: 2;
}

.tf-theme .breadcrumb::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  z-index: 3;
  pointer-events: none;
}

.tf-theme .breadcrumb--contained-image::after {
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: min(940px, calc(100% - 84px));
  transform: translateX(-50%);
  border-radius: 12px;
}

.tf-theme .breadcrumb .text-bread {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 4;
  text-align: center;
  color: #fff;
  padding: 18px;
}

.tf-theme .breadcrumb h1 {
  margin: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.34);
  font-size: clamp(28px, 3.1vw, 42px);
}

/* ---------------------------------------------------------
   TOC (Issues + Articles) — overrides previous magazine look
   --------------------------------------------------------- */

.tf-theme .magazine-preparations-page {
  padding: 36px 0 70px;
  background: #fff;
}

.tf-theme .toc-page-header {
  padding: 8px 0 20px;
  border-bottom: 2px solid var(--tf-border);
  margin-bottom: 18px;
}

.tf-theme .toc-page-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tf-muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.tf-theme .toc-page-title {
  font-size: clamp(30px, 2.8vw, 42px);
  margin: 0 0 10px;
  font-weight: 800;
  line-height: 1.2;
}

.tf-theme .toc-pill {
  border-radius: 0;
  border: 1px solid var(--tf-border);
  background: #f7f9fd;
  color: var(--tf-ink);
  font-size: 14px;
  font-weight: 700;
  padding: 7px 12px;
}

.tf-theme .toc-pill i {
  color: var(--tf-accent);
}

.tf-theme .toc-link {
  color: var(--tf-link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tf-theme .toc-btn {
  border-radius: 0;
  background: #fff;
  border: 1px solid var(--tf-accent);
  color: var(--tf-accent);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 10px 14px;
  box-shadow: none;
}

.tf-theme .toc-btn-outline {
  background: #fff;
  color: var(--tf-accent);
  border-color: var(--tf-accent);
}

.tf-theme .toc-btn:hover {
  background: var(--tf-accent);
  color: #fff;
}

.tf-theme .toc-issues-list {
  gap: 0;
  border-top: 1px solid var(--tf-border);
}

.tf-theme .toc-issue {
  border: 0;
  border-bottom: 1px solid var(--tf-border);
  box-shadow: none;
  border-radius: 0;
  padding: 18px 4px;
  grid-template-columns: 132px 1fr auto;
  align-items: start;
}

.tf-theme .toc-issue-cover,
.tf-theme .toc-issue-cover-card {
  border: 1px solid #d9dfeb;
  box-shadow: none;
}

.tf-theme .toc-issue-title {
  font-size: 24px;
  margin: 8px 0 10px;
  font-weight: 700;
  line-height: 1.3;
}

.tf-theme .toc-issue-title a {
  color: #1a2f5f;
}

.tf-theme .toc-issue-title a:hover {
  color: var(--tf-link-hover);
}

.tf-theme .toc-issue-kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tf-theme .toc-issue-actions {
  gap: 12px;
}

.tf-theme .toc-issue-cta {
  padding-top: 4px;
}

.tf-theme .toc-issue-hero {
  background: #fff;
  border-bottom: 1px solid var(--tf-border);
}

.tf-theme .toc-breadcrumb a {
  color: var(--tf-link);
}

.tf-theme .toc-card {
  border: 1px solid var(--tf-border);
  box-shadow: none;
  border-radius: 0;
}

.tf-theme .toc-h2 {
  font-size: 24px;
  font-weight: 700;
}

.tf-theme .toc-section-head {
  border-bottom: 1px solid var(--tf-border);
}

.tf-theme .toc-articles {
  border: 1px solid var(--tf-border);
  border-radius: 0;
}

.tf-theme .toc-article {
  border-bottom: 1px solid var(--tf-border);
}

.tf-theme .toc-article-title {
  font-size: 18px;
  font-weight: 700;
}

.tf-theme .toc-article-authors {
  font-size: 14px;
}

.tf-theme .toc-meta-item {
  font-size: 13px;
}

/* Make old magazine cards less dominant on other pages */
.tf-theme .magazine-preparation-card,
.tf-theme .magazine-research-item,
.tf-theme .pro-block {
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 991px) {
  .tf-theme .breadcrumb.breadcrumb--compact {
    height: 180px;
  }
  .tf-theme .breadcrumb--contained-image .overlay-img--contained {
    top: 10px;
    bottom: 10px;
    width: calc(100% - 44px);
  }
  .tf-theme .breadcrumb::after {
    inset: 10px;
  }
  .tf-theme .breadcrumb--contained-image::after {
    top: 10px;
    bottom: 10px;
    width: calc(100% - 44px);
  }
  .tf-theme .toc-issue {
    grid-template-columns: 92px 1fr;
    padding: 14px 0;
  }
  .tf-theme .toc-issue-title {
    font-size: 20px;
  }
  .tf-theme .toc-btn {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .tf-theme .breadcrumb.breadcrumb--compact {
    height: 160px;
  }
  .tf-theme .breadcrumb--contained-image .overlay-img--contained {
    top: 7px;
    bottom: 7px;
    width: calc(100% - 20px);
    border-radius: 10px;
  }
  .tf-theme .breadcrumb::after {
    inset: 8px;
  }
  .tf-theme .breadcrumb--contained-image::after {
    top: 7px;
    bottom: 7px;
    width: calc(100% - 20px);
    border-radius: 10px;
  }
  .tf-theme .breadcrumb h1 {
    font-size: clamp(23px, 6vw, 30px);
  }
}

/* =========================================================
   Home (Journal home) — T&F-like hero + sections
   ========================================================= */

.tf-theme .tf-home-hero {
  padding: 34px 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--tf-border);
  position: relative;
  overflow: hidden;
}

.tf-theme .tf-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(9, 123, 124, 0.12), transparent 60%),
    radial-gradient(700px 380px at 95% 10%, rgba(6, 90, 91, 0.10), transparent 55%);
  pointer-events: none;
}

.tf-theme .tf-home-hero .container {
  position: relative;
  z-index: 1;
}

.tf-theme .tf-home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  align-items: start;
}

.tf-theme .tf-home-hero-aside {
  position: relative;
}

.tf-theme .tf-home-hero-image {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 220px;
  height: 220px;
  opacity: 0.22;
  pointer-events: none;
}

html[dir="rtl"] .tf-theme .tf-home-hero-image {
  right: auto;
  left: -22px;
}

.tf-theme .tf-home-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: saturate(0.95);
}

.tf-theme .tf-kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tf-muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.tf-theme .tf-home-title {
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 10px;
}

.tf-theme .tf-home-subtitle {
  margin: 0 0 16px;
  color: var(--tf-muted);
  font-size: 16px;
  max-width: 60ch;
}

.tf-theme .tf-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 14px 0 18px;
}

.tf-theme .tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--tf-border);
  background: #fff;
  color: var(--tf-ink);
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.tf-theme .tf-btn-primary {
  background: var(--tf-accent);
  border-color: var(--tf-accent);
  color: #fff;
}

.tf-theme .tf-btn-primary:hover {
  background: var(--tf-accent-2);
  border-color: var(--tf-accent-2);
  color: #fff;
}

.tf-theme .tf-btn-ghost {
  border-color: var(--tf-accent);
  color: var(--tf-accent-2);
}

.tf-theme .tf-btn-ghost:hover {
  border-color: var(--tf-accent-2);
  color: var(--tf-accent-2);
}

.tf-theme .tf-btn-link {
  border-color: transparent;
  background: transparent;
  color: var(--tf-link);
  padding-inline: 6px;
}

.tf-theme .tf-btn-link:hover {
  text-decoration: underline;
  color: var(--tf-link-hover);
}

.tf-theme .tf-home-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.tf-theme .tf-stat-num {
  font-weight: 900;
  color: var(--tf-accent-2);
  font-size: 22px;
  line-height: 1;
}

.tf-theme .tf-stat-label {
  color: var(--tf-muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 3px;
}

.tf-theme .tf-issue-card {
  border: 1px solid var(--tf-border);
  background: #fff;
}

.tf-theme .tf-issue-cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.tf-theme .tf-issue-body {
  padding: 14px;
}

.tf-theme .tf-issue-kicker {
  color: var(--tf-muted);
  font-size: 13px;
  font-weight: 700;
}

.tf-theme .tf-dot {
  display: inline-block;
  margin-inline: 8px;
  color: #a6adbf;
}

.tf-theme .tf-issue-title {
  margin: 8px 0 10px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.tf-theme .tf-issue-title a {
  color: var(--tf-ink);
  text-decoration: none;
}

.tf-theme .tf-issue-title a:hover {
  text-decoration: underline;
  color: var(--tf-link-hover);
}

.tf-theme .tf-issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tf-theme .tf-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--tf-border);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  color: var(--tf-ink);
}

.tf-theme .tf-pill i {
  color: var(--tf-accent);
}

.tf-theme .tf-home-section {
  padding: 26px 0 38px;
  background: #fff;
}

.tf-theme .tf-home-section-muted {
  background: #fbfcfd;
  border-top: 1px solid var(--tf-border);
  border-bottom: 1px solid var(--tf-border);
}

.tf-theme .tf-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--tf-border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.tf-theme .tf-h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.tf-theme .tf-toc {
  border: 1px solid var(--tf-border);
  background: #fff;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.tf-theme .tf-toc-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--tf-border);
  align-items: start;
  width: 100%;
  max-width: 100%;
  position: relative;
  grid-auto-flow: row;
}

/* Home page override: avoid grid issues in TOC list */
.tf-theme .tf-home-section .tf-toc-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tf-theme .tf-home-section .tf-toc-num {
  flex: 0 0 64px;
  width: 64px;
}

.tf-theme .tf-home-section .tf-toc-body {
  flex: 1 1 auto;
}

.tf-theme .tf-toc-item:last-child {
  border-bottom: 0;
}

.tf-theme .tf-toc-num {
  font-weight: 900;
  color: var(--tf-muted);
  font-size: 18px;
  line-height: 1.2;
  justify-self: start;
}

.tf-theme .tf-toc-body {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: block !important;
  white-space: normal !important;
}

.tf-theme .tf-toc-body * {
  float: none !important;
  clear: none !important;
  position: static !important;
  width: auto;
  max-width: 100%;
  white-space: normal !important;
}

.tf-theme .tf-toc-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: block !important;
  width: 100%;
  word-break: break-word;
}

.tf-theme .tf-toc-title a {
  color: var(--tf-ink);
  text-decoration: none;
  display: inline;
  white-space: normal !important;
}

.tf-theme .tf-toc-title a,
.tf-theme .tf-toc-authors {
  hyphens: auto;
}

.tf-theme .tf-toc-title a:hover {
  text-decoration: underline;
  color: var(--tf-link-hover);
}

.tf-theme .tf-toc-authors {
  color: var(--tf-muted);
  font-size: 14px;
  margin-bottom: 10px;
  display: block !important;
  overflow-wrap: anywhere;
}

.tf-theme .tf-toc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  width: 100%;
}

.tf-theme .tf-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tf-theme .tf-explore-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tf-theme .tf-explore-card {
  display: block;
  border: 1px solid var(--tf-border);
  background: #fff;
  padding: 16px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.tf-theme .tf-explore-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--tf-accent) 0%, var(--tf-accent-2) 100%);
  opacity: 0.9;
}

.tf-theme .tf-explore-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(9, 123, 124, 0.10) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(2px);
}

.tf-theme .tf-explore-card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.tf-theme .tf-explore-title {
  font-weight: 900;
  font-size: 16px;
  color: var(--tf-ink);
  margin: 0 0 6px;
  padding-left: 8px;
}

.tf-theme .tf-explore-text {
  color: var(--tf-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  padding-left: 8px;
}

.tf-theme .tf-article-card {
  border: 1px solid var(--tf-border);
  background: #fff;
  padding: 14px;
}

.tf-theme .tf-article-title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 8px;
}

.tf-theme .tf-article-title a {
  color: var(--tf-ink);
  text-decoration: none;
}

.tf-theme .tf-article-title a:hover {
  text-decoration: underline;
  color: var(--tf-link-hover);
}

.tf-theme .tf-article-meta {
  color: var(--tf-muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------------------------------------------------------
   Home dashboard (screenshot-inspired)
   --------------------------------------------------------- */
.tf-theme .journal-home-dashboard {
  padding: 18px 0 30px;
  background: #f6f7f9;
}

.tf-theme .journal-home-hero-image {
  border: 1px solid var(--tf-border);
  border-radius: 22px;
  min-height: 0;
  max-height: none;
  background: #fff;
  margin-bottom: 14px;
  overflow: hidden;
  display: block;
  padding: 0;
  height: 210px;
}

.tf-theme .journal-home-hero-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1;
  display: block;
}

.tf-theme .journal-home-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  gap: 12px;
  align-items: start;
}

.tf-theme .journal-side-col {
  display: grid;
  gap: 12px;
}

.tf-theme .journal-side-card {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 12px;
  padding: 12px;
}

.tf-theme .journal-side-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--tf-muted);
  border-bottom: 1px solid var(--tf-border);
  padding-bottom: 8px;
}

.tf-theme .journal-mini-search {
  display: grid;
  gap: 8px;
}

.tf-theme .journal-mini-search input {
  width: 100%;
  border: 1px solid var(--tf-border);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fafbfd;
}

.tf-theme .journal-mini-search button {
  border: 1px solid var(--tf-border);
  border-radius: 999px;
  background: #f1f4f9;
  color: var(--tf-accent-2);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 12px;
}

.tf-theme .journal-side-stat {
  color: var(--tf-ink);
  font-size: 14px;
  margin-bottom: 6px;
}

.tf-theme .journal-side-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--tf-link);
  font-weight: 800;
  text-decoration: none;
}

.tf-theme .journal-side-link:hover {
  text-decoration: underline;
}

.tf-theme .journal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tf-theme .journal-tags span {
  border: 1px solid var(--tf-border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #f7f9fc;
}

.tf-theme .journal-main-col {
  display: grid;
  gap: 12px;
}

.tf-theme .journal-featured-issue {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 12px;
  padding: 14px;
}

.tf-theme .journal-featured-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.tf-theme .journal-kicker {
  color: var(--tf-link);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 6px;
}

.tf-theme .journal-featured-head h2 {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.3;
}

.tf-theme .journal-pill-link {
  border: 1px solid var(--tf-border);
  border-radius: 999px;
  background: #f3f6fb;
  color: var(--tf-link);
  font-weight: 800;
  padding: 6px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.tf-theme .journal-featured-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tf-theme .journal-featured-tags span {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--tf-border);
  background: #f7f9fc;
  color: #41506c;
}

.tf-theme .journal-featured-stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.tf-theme .journal-mini-stat {
  border: 1px solid var(--tf-border);
  background: #f7f8fa;
  border-radius: 10px;
  text-align: center;
  padding: 8px 4px;
}

.tf-theme .journal-mini-stat strong {
  display: block;
  font-size: 20px;
  line-height: 1;
  color: #2f4e7a;
}

.tf-theme .journal-mini-stat span {
  display: block;
  margin-top: 4px;
  color: var(--tf-muted);
  font-size: 11px;
  font-weight: 700;
}

.tf-theme .journal-current-callout {
  margin-top: 10px;
  border: 1px solid #7ec6b8;
  background: #e8f8f3;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.tf-theme .journal-current-callout-text strong {
  display: block;
  color: #19615b;
  font-size: 16px;
}

.tf-theme .journal-current-callout-text span {
  display: block;
  margin-top: 4px;
  color: #31504d;
  font-size: 13px;
}

.tf-theme .journal-current-callout-btn {
  border-radius: 999px;
  background: #177357;
  color: #fff;
  text-decoration: none;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.tf-theme .journal-current-callout-btn:hover {
  color: #fff;
  background: #115842;
}

.tf-theme .journal-featured-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.tf-theme .journal-featured-item {
  border: 1px solid var(--tf-border);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--tf-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.tf-theme .journal-featured-item:hover {
  border-color: rgba(9, 123, 124, 0.35);
  color: var(--tf-link-hover);
}

.tf-theme .journal-issues-strip {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 12px;
  padding: 12px;
}

.tf-theme .journal-strip-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.tf-theme .journal-strip-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.tf-theme .journal-strip-head a {
  color: var(--tf-link);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.tf-theme .journal-strip-head a:hover {
  text-decoration: underline;
}

.tf-theme .journal-issues-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tf-theme .journal-issue-mini {
  border: 1px solid var(--tf-border);
  border-radius: 10px;
  padding: 9px;
  text-decoration: none;
  color: var(--tf-ink);
  background: #fcfdff;
}

.tf-theme .journal-issue-mini-num {
  color: var(--tf-muted);
  font-size: 12px;
  font-weight: 700;
}

.tf-theme .journal-issue-mini-title {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.tf-theme .journal-issue-mini-meta {
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: var(--tf-muted);
  font-size: 12px;
}

.tf-theme .journal-issues-more {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.tf-theme .journal-issues-more a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--tf-border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7b879f;
  text-decoration: none;
}

.tf-theme .journal-quick-links {
  display: grid;
  gap: 8px;
}

.tf-theme .journal-quick-links a {
  border-bottom: 1px solid var(--tf-border);
  padding-bottom: 6px;
  color: var(--tf-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.tf-theme .journal-quick-links a:last-child {
  border-bottom: 0;
}

.tf-theme .journal-quick-links a:hover {
  color: var(--tf-link-hover);
}

.tf-theme .journal-side-card-highlight {
  border-color: rgba(236, 192, 109, 0.72);
  background: #fff7e9;
}

.tf-theme .journal-side-card-highlight p {
  margin: 0;
  color: #7a5a1f;
  font-size: 14px;
  font-weight: 700;
}

.tf-theme .journal-spirit-section {
  background: #f4f5f7 !important;
  border-top: 1px solid #e1e4eb;
  border-bottom: 1px solid #e1e4eb;
  padding: 20px 0 !important;
}

.tf-theme .journal-spirit-head h3 {
  font-size: clamp(20px, 1.8vw, 28px);
  margin-bottom: 6px;
}

.tf-theme .journal-spirit-section .title.title-center.journal-spirit-head {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.tf-theme .journal-spirit-section .title.title-center.journal-spirit-head h3 {
  display: block !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.tf-theme .news-h.journal-spirit-section .title.title-center.journal-spirit-head,
.tf-theme .news-h.journal-spirit-section .title.title-center.journal-spirit-head h3 {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  inset-inline: 0 !important;
  left: auto !important;
  right: auto !important;
}

.tf-theme .news-h.journal-spirit-section .title.title-center.journal-spirit-head h3::after,
.tf-theme .news-h.journal-spirit-section .title.title-center.journal-spirit-head h3::before {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

.tf-theme .journal-spirit-section .container {
  max-width: 1120px;
}

.tf-theme .journal-about-shell,
.tf-theme .journal-blogs-grid,
.tf-theme .journal-partners-grid {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.tf-theme .journal-about-shell {
  border: 1px solid var(--tf-border);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  align-items: center;
}

.tf-theme .journal-about-content .title h3 {
  font-weight: 800;
  margin-bottom: 10px;
}

.tf-theme .journal-about-content .about-content {
  color: #4e5a70;
  font-size: 15px;
  line-height: 1.9;
}

.tf-theme .journal-spirit-section .about-img .img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--tf-border);
  box-shadow: none !important;
}

.tf-theme .journal-spirit-section .about-img .img.img-2 {
  opacity: 0.9;
}

.tf-theme .journal-spirit-section .about-img .dot {
  display: none !important;
}

.tf-theme .journal-blogs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tf-theme .journal-blog-card {
  border: 1px solid var(--tf-border);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.tf-theme .journal-blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(9, 123, 124, 0.35);
}

.tf-theme .journal-blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tf-theme .journal-blog-img {
  aspect-ratio: 16/9;
}

.tf-theme .journal-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tf-theme .journal-blog-body {
  padding: 12px;
}

.tf-theme .journal-blog-body h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 8px;
}

.tf-theme .journal-blog-body p {
  margin: 0 0 10px;
  color: var(--tf-muted);
  font-size: 14px;
}

.tf-theme .journal-blog-more {
  color: var(--tf-link);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.tf-theme .journal-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tf-theme .journal-partner-card {
  border: 1px solid var(--tf-border);
  border-radius: 12px;
  background: #fff;
  min-height: 94px;
  padding: 10px;
  display: grid;
  place-items: center;
}

.tf-theme .journal-partner-card img {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
}

.tf-theme .journal-spirit-section .btn-center,
.tf-theme .journal-spirit-section .btn-center.mt-3 {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  margin-top: 12px !important;
  text-align: center !important;
  width: 100%;
}

.tf-theme .journal-spirit-section .btn-center > .btn,
.tf-theme .journal-spirit-section .btn-center.mt-3 > .btn {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html[dir="rtl"] .tf-theme .journal-featured-item i,
html[dir="rtl"] .tf-theme .magazine-accreditation-cta i {
  transform: scaleX(-1);
}

html[dir="rtl"] .tf-theme .journal-home-dashboard,
html[dir="rtl"] .tf-theme .journal-spirit-section {
  direction: rtl;
}

html[dir="rtl"] .tf-theme .journal-header-compact .journal-header-trail {
  text-align: right;
}

html[dir="rtl"] .tf-theme .journal-header-compact .head-inner {
  direction: rtl;
}

html[dir="rtl"] .tf-theme .journal-header-compact .nav-menu > ul {
  direction: rtl;
  flex-direction: row-reverse !important;
  justify-content: center !important;
}

html[dir="rtl"] .tf-theme .journal-header-compact .nav-menu > ul > li,
html[dir="rtl"] .tf-theme .journal-header-compact .nav-menu > ul > li > a {
  direction: rtl !important;
  text-align: right !important;
}

html[dir="rtl"] .tf-theme .journal-header-compact .nav-menu > ul > li.menu-item-has-children > .sub-menu {
  right: 0 !important;
  left: auto !important;
  text-align: right !important;
}

html[dir="rtl"] .tf-theme .journal-header-actions {
  direction: rtl;
}

html[dir="rtl"] .tf-theme .journal-side-title,
html[dir="rtl"] .tf-theme .journal-strip-head h3,
html[dir="rtl"] .tf-theme .journal-strip-head a,
html[dir="rtl"] .tf-theme .journal-issue-mini,
html[dir="rtl"] .tf-theme .journal-featured-head,
html[dir="rtl"] .tf-theme .journal-featured-tags,
html[dir="rtl"] .tf-theme .journal-featured-stats,
html[dir="rtl"] .tf-theme .journal-current-callout,
html[dir="rtl"] .tf-theme .journal-quick-links a,
html[dir="rtl"] .tf-theme .journal-blog-body,
html[dir="rtl"] .tf-theme .journal-about-content .about-content {
  text-align: right;
}

html[dir="rtl"] .tf-theme .journal-home-grid {
  grid-template-columns: 240px minmax(0, 1fr) 240px;
}

html[dir="rtl"] .tf-theme .journal-current-callout {
  flex-direction: row-reverse;
}

html[dir="rtl"] .tf-theme .journal-featured-head {
  flex-direction: row-reverse;
}

/* ---------------------------------------------------------
   Accreditations page
   --------------------------------------------------------- */
.tf-theme .magazine-accreditations-page {
  padding-top: 18px;
}

.tf-theme .magazine-accreditations-header {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tf-border);
}

.tf-theme .magazine-accreditations-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 800;
  color: var(--tf-ink);
}

.tf-theme .magazine-accreditations-subtitle {
  margin: 0 auto 14px;
  max-width: 70ch;
  color: var(--tf-muted);
  font-size: 15px;
}

.tf-theme .magazine-accreditations-meta {
  display: flex;
  justify-content: center;
}

.tf-theme .magazine-accreditations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tf-theme .magazine-accreditation-card {
  border: 1px solid var(--tf-border);
  background: #fff;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tf-theme .magazine-accreditation-card:hover {
  border-color: rgba(9, 123, 124, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 26, 42, 0.08);
}

.tf-theme .magazine-accreditation-link {
  display: block;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.tf-theme .magazine-accreditation-logo {
  border: 1px solid var(--tf-border);
  background: #fff;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 10px;
  margin-bottom: 12px;
}

.tf-theme .magazine-accreditation-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.tf-theme .magazine-accreditation-name {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--tf-ink);
}

.tf-theme .magazine-accreditation-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tf-link);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tf-theme .magazine-accreditation-card:hover .magazine-accreditation-cta {
  color: var(--tf-link-hover);
}

/* ---------------------------------------------------------
   Smooth horizontal news ticker
   --------------------------------------------------------- */
.tf-theme .news-side .breakingNews.bn-smooth-ticker {
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  border: 0;
  background: transparent;
  overflow: hidden;
  position: relative;
}

.tf-theme .bn-smooth-ticker .bn-navi,
.tf-theme .bn-smooth-ticker > ul {
  display: none !important;
}

.tf-theme .bn-smooth-ticker .bn-marquee-viewport {
  width: 100%;
  overflow: hidden;
}

.tf-theme .bn-smooth-ticker .bn-marquee-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-width: max-content;
  gap: 12px;
  white-space: nowrap;
  will-change: transform;
  animation: bnTickerScroll var(--bn-duration, 28s) linear infinite;
}

.tf-theme .bn-smooth-ticker.is-rtl .bn-marquee-track {
  animation-name: bnTickerScrollRtl;
}

.tf-theme .bn-smooth-ticker:hover .bn-marquee-track {
  animation-play-state: paused;
}

.tf-theme .bn-smooth-ticker .bn-marquee-item {
  color: var(--tf-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.tf-theme .bn-smooth-ticker .bn-marquee-item:hover {
  color: var(--tf-accent-2);
  text-decoration: underline;
}

.tf-theme .bn-smooth-ticker .bn-marquee-separator {
  color: var(--tf-muted);
  opacity: 0.7;
  font-size: 14px;
  line-height: 1;
}

@keyframes bnTickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--bn-distance, 50%)));
  }
}

@keyframes bnTickerScrollRtl {
  0% {
    transform: translateX(calc(-1 * var(--bn-distance, 50%)));
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 991px) {
  .tf-theme .journal-header-compact .journal-header-trail {
    display: none;
  }
  .tf-theme .journal-header-compact .nav-menu {
    display: none;
  }
  .tf-theme .journal-header-compact .menu-right {
    display: block;
  }
  .tf-theme .compact-submit-btn,
  .tf-theme .compact-lang-switch {
    display: none;
  }
  .tf-theme .journal-home-hero-image {
    min-height: 0;
    max-height: none;
    height: 120px;
  }
  .tf-theme .journal-featured-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tf-theme .journal-current-callout {
    flex-direction: column;
    align-items: flex-start;
  }
  .tf-theme .journal-home-grid {
    grid-template-columns: 1fr;
  }
  .tf-theme .journal-issues-grid {
    grid-template-columns: 1fr;
  }
  .tf-theme .magazine-accreditations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tf-theme .journal-blogs-grid {
    grid-template-columns: 1fr;
  }
  .tf-theme .journal-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tf-theme .tf-home-hero-grid {
    grid-template-columns: 1fr;
  }
  .tf-theme .tf-articles-grid {
    grid-template-columns: 1fr;
  }
  .tf-theme .tf-toc-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .tf-theme .tf-home-section .tf-toc-item {
    display: flex;
  }
  .tf-theme .tf-home-section .tf-toc-num {
    flex-basis: 44px;
    width: 44px;
  }
  .tf-theme .tf-explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .tf-theme .magazine-accreditations-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Formal editorial refresh
   --------------------------------------------------------- */
.tf-theme .news-side {
  border-bottom: 1px solid var(--tf-border);
  background: #fbfcfd;
}

.tf-theme .news-side .container {
  max-width: 100%;
  padding-inline: 20px;
}

.tf-theme .news-side .marq {
  min-height: 36px;
  align-items: center;
  padding: 4px 0;
}

.tf-theme .bn-smooth-ticker .bn-marquee-item,
.tf-theme .bn-smooth-ticker .bn-marquee-separator {
  font-size: 13px;
  font-weight: 500;
  color: #3e4657;
}

.tf-theme .journal-header-compact {
  background: #fff;
  border-bottom: 1px solid var(--tf-border);
  padding: 6px 0;
}

.tf-theme .journal-header-compact .head-inner {
  border: 0;
  border-radius: 0;
  padding: 0;
  gap: 20px;
}

.tf-theme .journal-nav-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.tf-theme .journal-nav-logo img {
  width: auto;
  height: auto;
  max-height: 52px;
  max-width: 160px;
  object-fit: contain;
}

.tf-theme .journal-header-compact .nav-menu > ul {
  justify-content: flex-start;
  gap: 0;
}

.tf-theme .journal-header-compact .nav-menu > ul > li > a {
  border-radius: 0;
  color: #2f3542;
  font-weight: 600;
  padding: 9px 12px;
}

.tf-theme .journal-header-compact .nav-menu > ul > li.current-menu-item > a {
  background: transparent;
  border: 0;
  color: #0f1a2a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tf-theme .journal-home-hero-image {
  border-radius: 0;
  border: 1px solid var(--tf-border);
  height: 210px;
  aspect-ratio: 16 / 5;
}

.tf-theme .journal-home-hero-slider .slick-list,
.tf-theme .journal-home-hero-slider .slick-track,
.tf-theme .journal-home-hero-slider .journal-hero-slide {
  height: 100%;
}

.tf-theme .journal-home-hero-slider .slick-dots {
  bottom: 8px;
}

.tf-theme .journal-home-hero-slider .slick-prev,
.tf-theme .journal-home-hero-slider .slick-next {
  z-index: 3;
}

.tf-theme .journal-editorial-about {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 0;
  padding: 18px;
  margin: 0 0 14px;
}

.tf-theme .journal-editorial-about h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}

.tf-theme .journal-editorial-about p {
  margin: 0;
  color: #4d5567;
  line-height: 1.8;
  font-size: 15px;
}

.tf-theme .journal-windows-section {
  padding: 12px 0 42px;
  background: #f6f7f9;
}

.tf-theme .journal-window-block {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--tf-border);
  background: #fff;
}

.tf-theme .journal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--tf-border);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.tf-theme .journal-tab {
  border: 1px solid var(--tf-border);
  background: #fff;
  color: #2f3542;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
}

.tf-theme .journal-tab.is-active {
  border-color: #b8c1d2;
  background: #f8fafc;
}

.tf-theme .journal-tab-counters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.tf-theme .journal-tab-counters span {
  display: block;
  border: 1px solid var(--tf-border);
  background: #fbfcfd;
  font-size: 12px;
  font-weight: 700;
  color: #505a6f;
  padding: 7px 8px;
  text-align: center;
}

.tf-theme .journal-tab-panel {
  display: none;
}

.tf-theme .journal-tab-panel.is-active {
  display: block;
}

.tf-theme .journal-articles-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tf-theme .journal-compact-article {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--tf-border);
  height: 100%;
  align-items: start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tf-theme .journal-compact-article:hover {
  border-color: #ccd3e0;
  box-shadow: 0 4px 16px rgba(16, 28, 45, 0.06);
}

.tf-theme .journal-compact-thumb {
  width: 74px;
  height: 74px;
  overflow: hidden;
}

.tf-theme .journal-compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tf-theme .journal-compact-body h4 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.4;
}

.tf-theme .journal-compact-body h4 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tf-theme .journal-compact-meta {
  font-size: 12px;
  color: #6c7488;
}

.tf-theme .journal-window-empty {
  margin: 0;
  color: #6c7488;
}

.tf-theme .journal-blog-card {
  border-radius: 0;
}

.tf-theme .journal-blog-link {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
}

.tf-theme .journal-blog-img {
  aspect-ratio: 1 / 1;
}

.tf-theme .journal-blog-body {
  padding: 10px 12px;
}

.tf-theme .magazine-preparations-page .toc-issue {
  grid-template-columns: 96px minmax(0, 1fr) auto;
  padding: 12px 4px;
}

.tf-theme .magazine-preparations-page .toc-issue-title {
  font-size: 20px;
}

html[dir="rtl"] .tf-theme .journal-header-compact .head-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .tf-theme .journal-header-compact .nav-menu > ul {
  justify-content: flex-end !important;
}

html[dir="rtl"] .tf-theme .journal-editorial-about,
html[dir="rtl"] .tf-theme .journal-compact-body,
html[dir="rtl"] .tf-theme .journal-blog-body {
  text-align: right;
}

html[dir="rtl"] .tf-theme .journal-tab-counters span {
  direction: rtl;
}

@media (max-width: 991px) {
  .tf-theme .journal-articles-compact-grid {
    grid-template-columns: 1fr;
  }

  .tf-theme .journal-blog-link {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .tf-theme .journal-tab-counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tf-theme .journal-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .tf-theme .journal-tab {
    flex: 0 0 auto;
  }
}

@media (max-width: 575px) {
  .tf-theme .journal-nav-logo img {
    max-height: 42px;
    max-width: 120px;
  }

  .tf-theme .journal-home-hero-image {
    height: 150px;
  }
}

/* ---------------------------------------------------------
   Final bugfix pass: dropdown/hero/blog layout
   --------------------------------------------------------- */
.tf-theme .journal-header,
.tf-theme .journal-header-compact {
  position: relative;
  z-index: 1005;
  overflow: visible;
}

.tf-theme .journal-nav-container,
.tf-theme .journal-header-compact .head-inner,
.tf-theme .journal-header-compact .nav-menu,
.tf-theme .journal-header-compact .nav-menu > ul,
.tf-theme .journal-header-compact .nav-menu > ul > li {
  overflow: visible !important;
}

.tf-theme .journal-header-compact .head-inner,
.tf-theme .journal-header-compact .nav-menu > ul > li {
  position: relative;
}

.tf-theme .journal-header-compact .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline-start: 0;
  z-index: 1105;
}

.tf-theme .news-side,
.tf-theme .journal-home-dashboard {
  position: relative;
  z-index: 100;
}

.tf-theme .journal-home-hero-slider .journal-hero-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.tf-theme .journal-home-hero-slider .journal-hero-slide img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.tf-theme .journal-blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tf-theme .journal-blog-card {
  height: 100%;
}

/* Forced hero center rules */
.journal-hero-slide {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.journal-hero-slide img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.slick-track,
.slick-slide {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  transition: opacity 0.8s ease;
}

/* Forced blog grid side-by-side */
.blog-grid,
.articles-grid,
.tf-blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}

.blog-card,
.article-card {
  width: 100% !important;
}

.blog-card img,
.article-card img {
  width: 100% !important;
  aspect-ratio: 1/1 !important;
  object-fit: cover !important;
}

/* Forced masthead logo sizing */
.journal-logo {
  max-height: 60px !important;
  width: auto !important;
  object-fit: contain !important;
}

.journal-masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

/* Forced navbar z-index/dropdown visibility */
.navbar {
  position: relative;
  z-index: 1000 !important;
}

.dropdown-menu {
  position: absolute;
  z-index: 1100 !important;
}

.navbar,
.navbar .container,
.navbar .head-inner,
.navbar .nav-menu,
.navbar .nav-menu ul,
.navbar .nav-menu li {
  overflow: visible !important;
}

/* Dropdown persistent hover fix */
.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0 !important;
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
}

.navbar {
  z-index: 1000 !important;
  position: relative;
}

.dropdown-menu {
  z-index: 1100 !important;
}

.navbar,
.navbar .container,
.navbar .head-inner,
.navbar .nav-menu,
.navbar .nav-menu ul,
.navbar .nav-menu li,
.journal-header,
.journal-nav-container {
  overflow: visible !important;
}

/* Hero slider exact centering */
.journal-hero-slide {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
}

.journal-hero-slide img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.slick-slide {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.slick-track {
  display: flex !important;
}

.hero-slider {
  width: 100%;
}

.journal-hero-slide {
  max-width: 100%;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.journal-hero-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

