/* ==========================================================================
   Luminous Insights — Instructions for Authors content theme
   --------------------------------------------------------------------------
   LOCAL ONLY (pages-csc preview). Intended to layer onto live later via:
     body.li-journal-home.li-instructions-authors-page + this stylesheet

   Preserves live PHP / CMS hooks from journal/instruction-for-authors.php:
     .article-content · .table-of-content · .content-details
     .section-block#intro1 · .section-block-details · .about-journal-box
     section#section-N · h3#section-N-M · #author-instructions-ref-section
     #rightsidebar .journal-sidebar .sidebar-widget ul.list

   Optional progressive hooks: .li-ifa-* (preview + future mapping)

   Type: Literata (page / section titles) · Source Sans 3 (body UI / links)
         Nunito Sans (TOC / Journal Information nav)
   Colour: LI teal / navy tokens only — no purple / cream / slate-card stacks
   Content: no heavy bordered card around the instructions body
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. TOKENS (page-local aliases; prefer global --li-* from li-tokens.css)
   -------------------------------------------------------------------------- */
body.li-instructions-authors-page {
  --li-ifa-surface: #ffffff;
  --li-ifa-page: var(--li-page-50, #FAFCFC);
  --li-ifa-border: #e6eaec;
  --li-ifa-border-brand: var(--li-teal-200, #B9D4DB);
  --li-ifa-rail-w: 15.5rem;
  --li-ifa-toc-w: 13.5rem;
  /* Match site chrome (--wrap / journal header), not a narrower inset column */
  --li-ifa-max: var(--wrap, 1440px);
  --li-ifa-scroll-pad: 6.5rem;
  --li-ifa-measure: 42.5rem;

  margin: 0;
  color: var(--li-ink-800, #1A2B30);
  background: var(--li-ifa-page);
  font-family: var(--li-font-ui);
  -webkit-font-smoothing: antialiased;
}

body.li-instructions-authors-page a {
  font-family: var(--li-font-ui);
}

body.li-instructions-authors-page :focus-visible {
  outline: 3px solid var(--li-teal-500, #378F9B);
  outline-offset: 3px;
}


/* --------------------------------------------------------------------------
   2. PREVIEW FOOTER NOTE (masthead / breadcrumb = live journal chrome)
   -------------------------------------------------------------------------- */
body.li-instructions-authors-page .li-ifa-preview-foot {
  max-width: var(--li-ifa-max);
  margin: 0 auto;
  padding: 2rem var(--gutter, 1.3rem) 3rem;
  font-family: var(--li-font-ui);
  font-size: 0.8125rem;
  color: var(--li-ink-500);
}


/* --------------------------------------------------------------------------
   3. LAYOUT — 3-column journal subpage shell (TOC | instructions | Journal Info)
   -------------------------------------------------------------------------- */
body.li-instructions-authors-page .article-content.li-ifa-page,
body.li-instructions-authors-page section.article-content {
  padding: 1.25rem 0 3.5rem;
  background: var(--li-ifa-page);
}

body.li-instructions-authors-page .li-ifa-shell {
  display: grid;
  grid-template-columns: var(--li-ifa-toc-w) minmax(0, 1fr) var(--li-ifa-rail-w);
  gap: 1.5rem 1.75rem;
  max-width: var(--li-ifa-max);
  margin: 0 auto;
  padding: 0 var(--gutter, 1.3rem);
  align-items: start;
}

/* Live Bootstrap columns: keep readable when this CSS is dropped onto production */
body.li-instructions-authors-page .article-content > .container-fluid > .row {
  max-width: var(--li-ifa-max);
  margin-left: auto;
  margin-right: auto;
}

body.li-instructions-authors-page .content-details,
body.li-instructions-authors-page .li-ifa-main {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.25rem 0 1.75rem;
  box-shadow: none;
}

body.li-instructions-authors-page .section-block-details {
  padding: 0;
}

/* Kill live Tailwind “heavy card” shell if CMS HTML is mapped as-is */
body.li-instructions-authors-page .about-journal-box .bg-white.rounded-2xl,
body.li-instructions-authors-page .about-journal-box [class*="rounded-2xl"][class*="border"],
body.li-instructions-authors-page .li-ifa-doc [class*="rounded-2xl"][class*="border-slate"] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.li-instructions-authors-page .li-ifa-doc [class*="px-3"][class*="py-5"],
body.li-instructions-authors-page .li-ifa-doc [class*="sm:px-5"] {
  padding: 0 !important;
}


/* --------------------------------------------------------------------------
   4. ON THIS PAGE (left TOC) — Nunito, matches EB / aims_and_scope rail density
   -------------------------------------------------------------------------- */
body.li-instructions-authors-page .table-of-content,
body.li-instructions-authors-page .li-ifa-toc {
  background: transparent;
  position: sticky;
  top: 1rem;
  padding-left: 1.5rem;
  box-sizing: border-box;
}

body.li-instructions-authors-page .table-of-content .sticky {
  position: sticky;
  top: 1rem;
}

body.li-instructions-authors-page .table-of-content h4,
body.li-instructions-authors-page .li-ifa-toc h4 {
  margin: 0 0 0.65rem;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid var(--li-ifa-border);
  background: transparent;
  color: var(--li-navy-700, #1A5568);
  font-family: var(--li-font-nav);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}

body.li-instructions-authors-page .table-of-content h4 i {
  margin-right: 0.35rem;
  color: var(--li-teal-600);
}

body.li-instructions-authors-page .table-of-content ul,
body.li-instructions-authors-page .li-ifa-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

body.li-instructions-authors-page .table-of-content ul li {
  margin: 0;
  padding: 0;
  border: 0;
}

body.li-instructions-authors-page .table-of-content ul li a,
body.li-instructions-authors-page .li-ifa-toc a.scrollto {
  display: block;
  padding: 0.45rem 0.65rem 0.45rem 0.75rem;
  border-left: 2px solid var(--li-ifa-border);
  color: var(--li-ink-700, #3A4A50);
  font-family: var(--li-font-nav);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

body.li-instructions-authors-page .table-of-content ul li a:hover,
body.li-instructions-authors-page .table-of-content ul li a:focus-visible,
body.li-instructions-authors-page .li-ifa-toc a.scrollto:hover {
  color: var(--li-navy-800);
  border-left-color: var(--li-teal-300);
  background: var(--li-teal-50, #F0F6F7);
  outline: none;
}

body.li-instructions-authors-page .table-of-content ul li.active a {
  color: var(--li-navy-800);
  border-left-color: var(--li-teal-600);
  background: var(--li-teal-50, #F0F6F7);
}


/* --------------------------------------------------------------------------
   5. DOCUMENT CHROME — title, kicker, lead (no card)
   -------------------------------------------------------------------------- */
body.li-instructions-authors-page .about-journal-box,
body.li-instructions-authors-page .li-ifa-doc {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  max-width: none;
}

body.li-instructions-authors-page .li-ifa-contents-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.li-instructions-authors-page .li-ifa-page-title,
body.li-instructions-authors-page .about-journal-box > h3 {
  position: relative;
  margin: 0 0 0.35rem;
  padding: 0 0 0.7rem;
  color: var(--li-navy-900, #0A2A36);
  font-family: var(--li-font-scholar, Literata, Georgia, serif);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--li-ifa-border-brand);
  background: transparent;
  scroll-margin-top: var(--li-ifa-scroll-pad);
}

body.li-instructions-authors-page .li-ifa-page-title::after,
body.li-instructions-authors-page .about-journal-box > h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3rem;
  height: 3px;
  background: var(--li-teal-600, #2A6F79);
  border-radius: 2px;
}

body.li-instructions-authors-page .li-ifa-kicker {
  margin: 0.85rem 0 0;
  color: var(--li-teal-700, #216670);
  font-family: var(--li-font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.li-instructions-authors-page .li-ifa-lead {
  margin: 1rem 0 1.75rem;
  max-width: var(--li-ifa-measure);
  color: var(--li-ink-700, #3A4A50);
  font-family: var(--li-font-ui);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}


/* --------------------------------------------------------------------------
   6. SECTIONS & SUBHEADS
   -------------------------------------------------------------------------- */
body.li-instructions-authors-page .li-ifa-section,
body.li-instructions-authors-page section[id^="section-"] {
  margin: 0 0 1.35rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--li-ifa-border);
  scroll-margin-top: var(--li-ifa-scroll-pad);
}

body.li-instructions-authors-page .li-ifa-section:first-of-type,
body.li-instructions-authors-page #section-1 {
  border-top: 0;
  padding-top: 0;
}

body.li-instructions-authors-page .li-ifa-section__title,
body.li-instructions-authors-page .li-ifa-section > h2 {
  position: relative;
  margin: 0.85rem 0 0.55rem;
  padding: 0 0 0.4rem;
  color: var(--li-navy-900, #0A2A36);
  font-family: var(--li-font-scholar, Literata, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--li-ifa-border-brand);
  background: transparent;
  scroll-margin-top: var(--li-ifa-scroll-pad);
}

body.li-instructions-authors-page .li-ifa-section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 2.25rem;
  height: 2px;
  background: var(--li-teal-600, #2A6F79);
  border-radius: 2px;
}

/* Live CMS still uses border-l-4 teal ol titles — restyle without card chrome */
body.li-instructions-authors-page .li-ifa-doc [class*="border-l-4"] {
  border-left: 3px solid var(--li-teal-600, #2A6F79) !important;
  padding-left: 0.85rem !important;
  margin: 1rem 0 0.75rem;
}

body.li-instructions-authors-page .li-ifa-doc [class*="border-l-4"] ol,
body.li-instructions-authors-page .li-ifa-doc [class*="border-l-4"] li {
  list-style: none !important;
  margin: 0;
  padding: 0;
  color: var(--li-navy-900);
  font-family: var(--li-font-scholar, Literata, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

body.li-instructions-authors-page .li-ifa-section__body,
body.li-instructions-authors-page .li-ifa-section > div {
  max-width: var(--li-ifa-measure);
}

body.li-instructions-authors-page .li-ifa-doc p,
body.li-instructions-authors-page .content-details p {
  margin: 0 0 0.55rem;
  color: var(--li-ink-700, #3A4A50);
  font-family: var(--li-font-ui);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: start;
}

body.li-instructions-authors-page .li-ifa-subhead,
body.li-instructions-authors-page .li-ifa-doc h3[id^="section-"] {
  margin: 1.05rem 0 0.4rem;
  color: var(--li-navy-800, #0F3A4A);
  font-family: var(--li-font-ui);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  scroll-margin-top: var(--li-ifa-scroll-pad);
  background: transparent;
}

body.li-instructions-authors-page .li-ifa-list,
body.li-instructions-authors-page .li-ifa-doc ul,
body.li-instructions-authors-page .li-ifa-doc ol {
  margin: 0.15rem 0 0.7rem;
  padding-left: 1.25rem;
  color: var(--li-ink-700);
  font-family: var(--li-font-ui);
  font-size: 1rem;
  line-height: 1.55;
}

body.li-instructions-authors-page .li-ifa-list li,
body.li-instructions-authors-page .li-ifa-doc ul li,
body.li-instructions-authors-page .li-ifa-doc ol li {
  margin: 0.1rem 0;
  padding-left: 0.15rem;
}

body.li-instructions-authors-page .li-ifa-ext,
body.li-instructions-authors-page .li-ifa-doc a {
  color: var(--li-teal-700, #216670);
  font-family: var(--li-font-ui);
  text-decoration: none;
}

body.li-instructions-authors-page .li-ifa-doc a:hover {
  color: var(--li-navy-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.li-instructions-authors-page .li-ifa-back {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}


/* --------------------------------------------------------------------------
   7. APA REFERENCE EXAMPLES — light panels, not nested slate cards
   -------------------------------------------------------------------------- */
body.li-instructions-authors-page .li-ifa-refs,
body.li-instructions-authors-page #author-instructions-ref-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.75rem;
  max-width: 40rem;
}

body.li-instructions-authors-page .li-ifa-ref,
body.li-instructions-authors-page #author-instructions-ref-section .ref-block {
  margin: 0;
  padding: 0.85rem 0 1rem;
  border-top: 1px solid var(--li-ifa-border);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.li-instructions-authors-page .li-ifa-ref:first-child,
body.li-instructions-authors-page #author-instructions-ref-section .ref-block:first-child {
  border-top: 0;
  padding-top: 0.15rem;
}

body.li-instructions-authors-page .li-ifa-ref__type,
body.li-instructions-authors-page #author-instructions-ref-section .ref-block > h4 {
  margin: 0 0 0.65rem;
  color: var(--li-navy-800);
  font-family: var(--li-font-ui);
  font-size: 1.05rem;
  font-weight: 700;
}

body.li-instructions-authors-page .li-ifa-ref__panel,
body.li-instructions-authors-page #author-instructions-ref-section .ref-block [class*="rounded-lg"] {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.li-instructions-authors-page .li-ifa-ref__label,
body.li-instructions-authors-page .li-ifa-ref__panel h4 {
  margin: 0 0 0.4rem;
  color: var(--li-navy-700);
  font-family: var(--li-font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.li-instructions-authors-page .li-ifa-ref__pre,
body.li-instructions-authors-page #author-instructions-ref-section pre {
  margin: 0.35rem 0 0.5rem;
  padding: 0.75rem 0.85rem;
  background: var(--li-teal-50, #F0F6F7);
  border: 1px solid var(--li-ifa-border-brand);
  border-radius: 6px;
  color: var(--li-ink-800);
  font-family: var(--li-font-ui);
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

body.li-instructions-authors-page .li-ifa-copy,
body.li-instructions-authors-page #author-instructions-ref-section .copy-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 0.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--li-teal-300, #7EB8C2);
  border-radius: 6px;
  background: #fff;
  color: var(--li-navy-800);
  font-family: var(--li-font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.li-instructions-authors-page .li-ifa-copy:hover,
body.li-instructions-authors-page #author-instructions-ref-section .copy-btn:hover {
  background: var(--li-teal-50);
  border-color: var(--li-teal-600);
  color: var(--li-teal-700);
}


/* --------------------------------------------------------------------------
   8. RIGHT RAIL — journal_rightbar.php shell (list styles = li-journal-info-list)
   -------------------------------------------------------------------------- */
body.li-instructions-authors-page #rightsidebar,
body.li-instructions-authors-page .li-ifa-rail {
  min-width: 0;
}

body.li-instructions-authors-page #rightsidebar .journal-sidebar {
  background: transparent;
  padding-top: 0 !important;
}

body.li-instructions-authors-page #rightsidebar .journal-sidebar .sidebar-widget {
  background: var(--li-ifa-surface);
  margin-bottom: 1.1rem;
  padding: 0;
}

body.li-instructions-authors-page #rightsidebar .journal-sidebar .add-banner {
  margin: 0 0 1.1rem;
}

body.li-instructions-authors-page #rightsidebar .journal-sidebar .add-banner p {
  margin: 0 0 0.6rem;
}

body.li-instructions-authors-page #rightsidebar .journal-sidebar .add-banner p:empty,
body.li-instructions-authors-page #rightsidebar .journal-sidebar .add-banner p:has(> br:only-child) {
  display: none;
}

body.li-instructions-authors-page #rightsidebar .journal-sidebar .add-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--li-ifa-border);
}

body.li-instructions-authors-page #rightsidebar #chartdiv {
  width: 100%;
  height: 0; /* map chart omitted in static local preview */
  overflow: hidden;
}

body.li-instructions-authors-page #rightsidebar .country-author-list .table {
  width: 100%;
  margin-bottom: 0.5rem;
  font-family: var(--li-font-ui);
  border-collapse: collapse;
}

body.li-instructions-authors-page #rightsidebar .country-author-list .table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--li-ifa-border);
  padding: 0.5rem 0.25rem;
  color: var(--li-ink-600);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: left;
}

body.li-instructions-authors-page #rightsidebar .country-author-list .table td,
body.li-instructions-authors-page #rightsidebar .country-author-list .table tbody th {
  padding: 0.45rem 0.25rem;
  border-top: 1px solid var(--li-ifa-border);
  color: var(--li-ink-800);
  font-weight: 500;
  text-align: left;
}

body.li-instructions-authors-page #rightsidebar .viewmore.float-right {
  text-align: right;
  margin-top: 0.25rem;
}

body.li-instructions-authors-page #rightsidebar .viewmore a {
  color: var(--li-teal-700);
  font-family: var(--li-font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}

body.li-instructions-authors-page #rightsidebar .viewmore a:hover {
  color: var(--li-navy-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Current page in Journal Information rail */
body.li-instructions-authors-page #rightsidebar .journal-sidebar .sidebar-widget ul.list li a[aria-current="page"] {
  color: var(--li-teal-700, #216670) !important;
}
body.li-instructions-authors-page #rightsidebar .journal-sidebar .sidebar-widget ul.list li a[aria-current="page"] .li-info-ico {
  color: var(--li-teal-700, #216670) !important;
}


/* --------------------------------------------------------------------------
   9. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1099.98px) {
  body.li-instructions-authors-page .li-ifa-shell {
    grid-template-columns: var(--li-ifa-toc-w) minmax(0, 1fr);
  }

  body.li-instructions-authors-page .li-ifa-rail {
    grid-column: 1 / -1;
    max-width: 22rem;
  }
}

@media (max-width: 791.98px) {
  body.li-instructions-authors-page .li-ifa-shell {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  body.li-instructions-authors-page .table-of-content,
  body.li-instructions-authors-page .li-ifa-toc {
    position: static;
    padding-left: 0;
  }

  body.li-instructions-authors-page .table-of-content .sticky {
    position: static;
  }

  body.li-instructions-authors-page .table-of-content ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  body.li-instructions-authors-page .table-of-content ul li a {
    border: 1px solid var(--li-ifa-border-brand);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    border-left-width: 1px;
    font-size: 0.75rem;
  }

  body.li-instructions-authors-page .content-details,
  body.li-instructions-authors-page .li-ifa-main {
    padding: 0.15rem 0 1.1rem;
  }

  body.li-instructions-authors-page .li-ifa-page-title,
  body.li-instructions-authors-page .about-journal-box > h3 {
    font-size: 1.375rem;
  }

  body.li-instructions-authors-page .li-ifa-section__title {
    font-size: 1.125rem;
  }

  body.li-instructions-authors-page .li-ifa-rail {
    max-width: none;
  }
}


/* ==========================================================================
   PRODUCTION BRIDGE — live Bootstrap shell + journal_rightbar inside li-ifa-shell
   ========================================================================== */
body.li-instructions-authors-page section.c-breadcrumb,
body.li-instructions-authors-page nav[aria-label="breadcrumb"],
body.li-instructions-authors-page .breadcrumb {
  display: none !important;
}

/* Prefer local 3-col grid over Bootstrap columns when shell is present */
body.li-instructions-authors-page .li-ifa-shell > [class*="col-"],
body.li-instructions-authors-page .li-ifa-shell > #rightsidebar {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.li-instructions-authors-page .li-ifa-shell > #rightsidebar {
  grid-column: 3;
}

body.li-instructions-authors-page .article-content.li-ifa-page.bg-light,
body.li-instructions-authors-page .article-content.li-ifa-page {
  background: var(--li-ifa-page, #FAFCFC) !important;
}

body.li-instructions-authors-page .li-ifa-main,
body.li-instructions-authors-page .content-details.li-ifa-main {
  background: transparent !important;
}

/* Hide residual in-body Contents nav (local uses anchor only) */
body.li-instructions-authors-page .about-journal-box nav#contents,
body.li-instructions-authors-page .li-ifa-doc nav#contents,
body.li-instructions-authors-page .li-ifa-doc nav.li-ifa-contents {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}


/* ==========================================================================
   GENERIC CMS CONTENT (JSE / JSF and similar) — match JSM visual language
   without requiring section.li-ifa-section markup in stored HTML
   ========================================================================== */

/* Left-align measure; kill Tailwind max-w centering wrappers */
body.li-instructions-authors-page .li-ifa-doc [class*="max-w-4xl"],
body.li-instructions-authors-page .li-ifa-doc [class*="max-w-3xl"],
body.li-instructions-authors-page .li-ifa-doc [class*="max-w-2xl"],
body.li-instructions-authors-page .li-ifa-main [class*="max-w-4xl"] {
  max-width: var(--li-ifa-measure) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.li-instructions-authors-page .li-ifa-doc [class*="mx-auto"] {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.li-instructions-authors-page .li-ifa-doc [class*="text-justify"],
body.li-instructions-authors-page .li-ifa-doc .text-justify {
  text-align: start !important;
}

/* Neutralize leftover Tailwind gray / slate text utilities */
body.li-instructions-authors-page .li-ifa-doc [class*="text-gray-"],
body.li-instructions-authors-page .li-ifa-doc [class*="text-slate-"] {
  color: inherit;
}

/* Space-y wrappers: keep readable vertical rhythm without card chrome */
body.li-instructions-authors-page .li-ifa-doc [class*="space-y-6"] > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0;
}

/* Generic section titles (plain h2 — JSE). Skip .li-ifa-section > h2 (JSM). */
body.li-instructions-authors-page .li-ifa-doc :not(.li-ifa-section) > h2:not(.li-ifa-page-title),
body.li-instructions-authors-page .about-journal-box :not(.li-ifa-section) > h2:not(.li-ifa-page-title) {
  position: relative;
  margin: 1.15rem 0 0.55rem;
  padding: 0.25rem 0 0.4rem;
  color: var(--li-navy-900, #0A2A36) !important;
  font-family: var(--li-font-scholar, Literata, Georgia, serif) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-transform: none !important;
  border-top: 1px solid var(--li-ifa-border);
  border-bottom: 1px solid var(--li-ifa-border-brand);
  background: transparent !important;
  scroll-margin-top: var(--li-ifa-scroll-pad);
}

body.li-instructions-authors-page .li-ifa-doc :not(.li-ifa-section) > h2:not(.li-ifa-page-title)::after,
body.li-instructions-authors-page .about-journal-box :not(.li-ifa-section) > h2:not(.li-ifa-page-title)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 2.25rem;
  height: 2px;
  background: var(--li-teal-600, #2A6F79);
  border-radius: 2px;
}

/* First real section heading: no top rule (title/kicker already separate) */
body.li-instructions-authors-page .li-ifa-doc > :not(.li-ifa-section) > h2:first-of-type,
body.li-instructions-authors-page .li-ifa-doc > h2:first-of-type,
body.li-instructions-authors-page .li-ifa-doc h2#section-1 {
  border-top: 0;
  padding-top: 0.15rem;
  margin-top: 1.1rem;
}

/* Generic subheads (plain h3 — JSE/JSF) */
body.li-instructions-authors-page .li-ifa-doc h3:not(.li-ifa-page-title),
body.li-instructions-authors-page .about-journal-box h3:not(.li-ifa-page-title),
body.li-instructions-authors-page .li-ifa-main h3:not(.li-ifa-page-title) {
  margin: 1.05rem 0 0.4rem;
  padding: 0;
  color: var(--li-navy-800, #0F3A4A) !important;
  font-family: var(--li-font-ui) !important;
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none !important;
  border: 0 !important;
  background: transparent !important;
  scroll-margin-top: var(--li-ifa-scroll-pad);
}

body.li-instructions-authors-page .li-ifa-doc h3:not(.li-ifa-page-title)::after {
  content: none !important;
  display: none !important;
}

/* Body copy + lists under generic CMS */
body.li-instructions-authors-page .li-ifa-doc p,
body.li-instructions-authors-page .li-ifa-main .about-journal-box p {
  margin: 0 0 0.55rem;
  max-width: var(--li-ifa-measure);
  color: var(--li-ink-700, #3A4A50);
  font-family: var(--li-font-ui);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: start;
}

body.li-instructions-authors-page .li-ifa-doc ul,
body.li-instructions-authors-page .li-ifa-doc ol:not([class*="list-decimal"]) {
  margin: 0.15rem 0 0.7rem;
  padding-left: 1.25rem;
  max-width: var(--li-ifa-measure);
  color: var(--li-ink-700);
  font-family: var(--li-font-ui);
  font-size: 1rem;
  line-height: 1.55;
}

body.li-instructions-authors-page .li-ifa-doc a {
  color: var(--li-teal-700, #216670);
  font-family: var(--li-font-ui);
  text-decoration: none;
}

body.li-instructions-authors-page .li-ifa-doc a:hover {
  color: var(--li-navy-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* JSF-style ol section titles inside border-l-4 (already partially styled) */
body.li-instructions-authors-page .li-ifa-doc [class*="border-l-4"] {
  border-left: 3px solid var(--li-teal-600, #2A6F79) !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  padding-left: 0.85rem !important;
  margin: 1.1rem 0 0.75rem;
  max-width: var(--li-ifa-measure);
}

body.li-instructions-authors-page .li-ifa-doc [class*="border-l-4"] ol,
body.li-instructions-authors-page .li-ifa-doc [class*="border-l-4"] li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--li-navy-900, #0A2A36) !important;
  font-family: var(--li-font-scholar, Literata, Georgia, serif) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

/* Soften Tailwind section dividers on <section id="section-N"> */
body.li-instructions-authors-page .li-ifa-doc section[id^="section-"] {
  margin: 0 0 1.35rem;
  padding-top: 0.25rem !important;
  border-top: 1px solid var(--li-ifa-border) !important;
  border-color: var(--li-ifa-border) !important;
  scroll-margin-top: var(--li-ifa-scroll-pad);
  max-width: none;
}

body.li-instructions-authors-page .li-ifa-doc section#section-1 {
  border-top: 0 !important;
  padding-top: 0 !important;
}

/* JSF plain kicker after empty spacer <p> (title + spacer + kicker) */
body.li-instructions-authors-page .li-ifa-doc > .li-ifa-page-title + p:not([class]) {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  line-height: 0 !important;
  font-size: 0 !important;
  border: 0 !important;
}

body.li-instructions-authors-page .li-ifa-doc > .li-ifa-page-title + p:not([class]) + p:not([class]) {
  margin: 0.85rem 0 1rem !important;
  color: var(--li-teal-700, #216670) !important;
  font-family: var(--li-font-ui) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  height: auto !important;
  overflow: visible !important;
}

/* Ensure section bodies share reading measure */
body.li-instructions-authors-page .li-ifa-doc section[id^="section-"] > div,
body.li-instructions-authors-page .li-ifa-doc [class*="space-y-"] {
  max-width: var(--li-ifa-measure);
}


/* Escaped-then-restored CMS copy buttons (JSF/JMR Tailwind classes) */
body.li-instructions-authors-page .li-ifa-doc button.copy-btn,
body.li-instructions-authors-page .about-journal-box button.copy-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--li-teal-300, #7EB8C2);
  border-radius: 6px;
  background: #fff;
  color: var(--li-navy-800);
  font-family: var(--li-font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.li-instructions-authors-page .li-ifa-doc button.copy-btn:hover,
body.li-instructions-authors-page .about-journal-box button.copy-btn:hover {
  background: var(--li-teal-50);
  border-color: var(--li-teal-600);
  color: var(--li-teal-700);
}


/* ==========================================================================
   JOBI-style CMS — section titles as <p><strong>, bare in-body TOC <nav>
   ========================================================================== */

/* Hide in-body Table of Contents (left "On this Page" replaces it) */
body.li-instructions-authors-page .li-ifa-doc nav:has(a[href^="#section-"]),
body.li-instructions-authors-page .about-journal-box nav:has(a[href^="#section-"]) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* Top-level section title: <section id="section-N"><p><strong>N. Title</strong></p> */
body.li-instructions-authors-page .li-ifa-doc section[id^="section-"] > p:first-of-type > strong,
body.li-instructions-authors-page .li-ifa-doc section[id^="section-"] > p:first-child strong {
  display: block;
  position: relative;
  margin: 0 0 0.5rem;
  padding: 0 0 0.4rem;
  color: var(--li-navy-900, #0A2A36);
  font-family: var(--li-font-scholar, Literata, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--li-ifa-border-brand);
  background: transparent;
}

body.li-instructions-authors-page .li-ifa-doc section[id^="section-"] > p:first-of-type > strong::after,
body.li-instructions-authors-page .li-ifa-doc section[id^="section-"] > p:first-child strong::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 2.25rem;
  height: 2px;
  background: var(--li-teal-600, #2A6F79);
  border-radius: 2px;
}

body.li-instructions-authors-page .li-ifa-doc section[id^="section-"] > p:first-of-type,
body.li-instructions-authors-page .li-ifa-doc section[id^="section-"] > p:first-child {
  margin-bottom: 0.2rem;
  max-width: var(--li-ifa-measure);
}

/* Subsection title: <div id="section-N-M"><p><strong>N.M. …</strong></p> */
body.li-instructions-authors-page .li-ifa-doc div[id^="section-"] > p:first-of-type > strong,
body.li-instructions-authors-page .li-ifa-doc div[id^="section-"] > p:first-child strong {
  display: block;
  margin: 0 0 0.25rem;
  color: var(--li-navy-800, #0F3A4A);
  font-family: var(--li-font-ui);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  border: 0;
}

body.li-instructions-authors-page .li-ifa-doc div[id^="section-"] {
  margin-top: 0.85rem;
  max-width: var(--li-ifa-measure);
  scroll-margin-top: var(--li-ifa-scroll-pad);
}

/* JOBI body copy already covered by .li-ifa-doc p; keep measure */
body.li-instructions-authors-page .li-ifa-doc section[id^="section-"] > p {
  max-width: var(--li-ifa-measure);
}


/* ==========================================================================
   DENSE ACADEMIC RHYTHM — kill leftover utilities + spacer <p>s (all journals)
   ========================================================================== */

/* Collapse empty / whitespace-only spacer paragraphs (nbsp often survives :empty) */
body.li-instructions-authors-page .li-ifa-doc p:empty,
body.li-instructions-authors-page .about-journal-box p:empty,
body.li-instructions-authors-page .li-ifa-doc p:has(> br:only-child),
body.li-instructions-authors-page .li-ifa-doc section[id^="section-"] > p:empty,
body.li-instructions-authors-page .li-ifa-doc div[id^="section-"] > p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

/* Marked at render-time when paragraph is only whitespace/nbsp */
body.li-instructions-authors-page .li-ifa-doc p.li-ifa-spacer,
body.li-instructions-authors-page .about-journal-box p.li-ifa-spacer {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Neutralize Tailwind vertical utility gaps inside CMS HTML (not buttons) */
body.li-instructions-authors-page .li-ifa-doc [class*="space-y-"] > :not([hidden]) ~ :not([hidden]),
body.li-instructions-authors-page .li-ifa-doc [class*="space-y-"] > * + * {
  margin-top: 0 !important;
}

body.li-instructions-authors-page .li-ifa-doc :is(p, div, section, h2, h3, nav, ul, ol)[class~="mt-8"],
body.li-instructions-authors-page .li-ifa-doc :is(p, div, section, h2, h3, nav, ul, ol)[class~="mt-6"],
body.li-instructions-authors-page .li-ifa-doc :is(p, div, section, h2, h3, nav, ul, ol)[class~="mt-4"],
body.li-instructions-authors-page .li-ifa-doc :is(p, div, section, h2, h3, nav, ul, ol)[class~="mb-8"],
body.li-instructions-authors-page .li-ifa-doc :is(p, div, section, h2, h3, nav, ul, ol)[class~="mb-6"],
body.li-instructions-authors-page .li-ifa-doc :is(p, div, section, h2, h3, nav, ul, ol)[class~="mb-4"],
body.li-instructions-authors-page .li-ifa-doc :is(p, div, section, h2, h3, nav, ul, ol)[class~="my-6"],
body.li-instructions-authors-page .li-ifa-doc :is(p, div, section, h2, h3, nav, ul, ol)[class~="my-4"],
body.li-instructions-authors-page .li-ifa-doc :is(p, div, section, h2, h3, nav, ul, ol)[class~="py-5"],
body.li-instructions-authors-page .li-ifa-doc :is(p, div, section, h2, h3, nav, ul, ol)[class~="py-8"],
body.li-instructions-authors-page .li-ifa-doc :is(p, div, section, h2, h3, nav, ul, ol)[class~="pt-6"],
body.li-instructions-authors-page .li-ifa-doc :is(p, div, section, h2, h3, nav, ul, ol)[class~="pt-2"] {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Restore intentional LI margins after utility reset */
body.li-instructions-authors-page .li-ifa-doc :not(.li-ifa-section) > h2:not(.li-ifa-page-title),
body.li-instructions-authors-page .li-ifa-doc .li-ifa-section > h2,
body.li-instructions-authors-page .li-ifa-doc .li-ifa-section__title {
  margin-top: 1.15rem !important;
  margin-bottom: 0.55rem !important;
}

body.li-instructions-authors-page .li-ifa-doc h3:not(.li-ifa-page-title) {
  margin-top: 1.05rem !important;
  margin-bottom: 0.4rem !important;
}

body.li-instructions-authors-page .li-ifa-doc p:not(.li-ifa-spacer):not(.li-ifa-kicker):not(.li-ifa-lead):not(.li-ifa-bullet-line) {
  margin-top: 0 !important;
  margin-bottom: 0.55rem !important;
  line-height: 1.6 !important;
}

body.li-instructions-authors-page .li-ifa-doc p.li-ifa-kicker {
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
}

body.li-instructions-authors-page .li-ifa-doc p.li-ifa-lead {
  margin-top: 0.85rem !important;
  margin-bottom: 1.15rem !important;
  line-height: 1.6 !important;
}

/* Faux bullet lines stored as separate <p>• …</p> (JOBI) */
body.li-instructions-authors-page .li-ifa-doc p.li-ifa-bullet-line {
  margin-bottom: 0.2rem !important;
  padding-left: 0.15rem;
  line-height: 1.45 !important;
}

body.li-instructions-authors-page .li-ifa-doc ul li,
body.li-instructions-authors-page .li-ifa-doc ol:not([class*="list-decimal"]) li {
  margin: 0.08rem 0 !important;
}

/* Slightly denser page title → first section */
body.li-instructions-authors-page .li-ifa-page-title {
  margin-bottom: 0.25rem !important;
  padding-bottom: 0.55rem !important;
}

body.li-instructions-authors-page .li-ifa-doc > div > section#section-1,
body.li-instructions-authors-page .li-ifa-doc > section#section-1,
body.li-instructions-authors-page .li-ifa-doc section#section-1 {
  margin-top: 0.75rem !important;
}
