/* ===== TSRJ Footer – Apple Light (OJS 3.5) ===== */
/* Footer wrapper */
.tsrj-footer {
  background: var(--tsrj-bg, #ffffff);
  border-top: 1px solid var(--tsrj-border, #e5e5e5);
  color: var(--tsrj-text, #333);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text","SF Pro Display",
               "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Inner layout */
.tsrj-footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 16px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto; /* brand | address | nav */
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px) {
  .tsrj-footer__inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Brand row */
.tsrj-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--tsrj-ink, #111);
  font-weight: 600;
}

.tsrj-footer__icon {
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border-radius: 8px;
  border: 1px solid var(--tsrj-border, #e5e5e5);
  background: #fff;
  color: var(--tsrj-blue, #007aff);
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Address block */
.tsrj-footer__address {
  display: grid;
  gap: 2px;
  font-style: normal;
  font-size: 14px;
  color: var(--tsrj-muted, #6b7280);
  line-height: 1.6;
}

.tsrj-footer__address span:first-child {
  color: var(--tsrj-ink, #111);
  font-weight: 600;
}

/* Links */
.tsrj-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .tsrj-footer__nav { justify-content: flex-start; }
}

.tsrj-footer__link {
  font-size: 14px;
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid #eaeaea;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
  will-change: transform;
}

.tsrj-footer__link:hover {
  color: var(--tsrj-ink, #111);
  border-bottom-color: var(--tsrj-blue, #007aff);
  transform: translateY(-1px);
}

/* Focus visibility (WCAG AA) */
.tsrj-footer a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--tsrj-ring, rgba(0,122,255,.28));
  border-radius: 6px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tsrj-footer__link { transition: none; }
}

/* Optional: soften the very top edge a bit (subtle depth) */
.tsrj-footer {
  box-shadow: 0 -8px 24px rgba(0,0,0,0.04);
}

/* Tighten OJS default footer spacing if present */
.pkp_structure_footer .pkp_footer_content { padding: 0 !important; }




/* Shadow on ALL images inside the About block (homepage only, main column) */
.pkp_page_index .pkp_structure_main .page_index_journal .homepage_about img {
  box-shadow: 0 1px 3px rgba(0,0,0,.10), 0 8px 24px rgba(0,0,0,.12) !important;
  border-radius: 0px;
  background: #fff; /* keeps edges clean for PNGs */
}

/* If you want ONLY the very first image to have a shadow, use this instead: */
.pkp_page_index .pkp_structure_main .page_index_journal .homepage_about > p:first-child img {
  box-shadow: 0 1px 3px rgba(0,0,0,.10), 0 8px 24px rgba(0,0,0,.12) !important;
  border-radius: 0px;
  background: #fff;
}




/* ====== Editorial Board – Apple-style Light ======
   Version: no role chips except Editor-in-Chief
==================================================== */

:root {
  --tsrj-blue: #007aff;
  --tsrj-ink: #111;
  --tsrj-text: #333;
  --tsrj-muted: #6b7280;
  --tsrj-border: #e5e5e5;
  --tsrj-bg: #ffffff;
  --tsrj-card: #ffffff;
  --tsrj-ring: rgba(0,122,255,.28);
  --tsrj-shadow: 0 8px 24px rgba(0,0,0,.06);
  --tsrj-shadow-lg: 0 14px 40px rgba(0,0,0,.08);
}

/* Wrapper */
.pkp_page_about .tsrj-board {
  max-width: 960px;
  margin: 12px auto 28px;
  padding: 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text","SF Pro Display",
               "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--tsrj-text);
}

/* Title */
.tsrj-board__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--tsrj-blue);
  margin: 8px 0 16px;
  text-align: left;
}

/* Section label */
.tsrj-section {
  margin: 18px 0 10px;
  padding: 6px 8px;
  color: #111; font-weight: 700; font-size: 14px; letter-spacing: .02em;
  border-left: 3px solid var(--tsrj-blue);
  background: #fafcff;
  border-radius: 8px;
}

/* Grid */
.tsrj-board__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
@media (max-width: 1024px) { .tsrj-board__grid { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 640px)  { .tsrj-board__grid { grid-template-columns: repeat(4, 1fr); } }

/* Card */
.tsrj-member {
  grid-column: span 6; /* 2-up desktop */
  background: var(--tsrj-card);
  border: 1px solid var(--tsrj-border);
  border-radius: 14px;
  box-shadow: var(--tsrj-shadow);
  padding: 14px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (max-width: 640px) {
  .tsrj-member { grid-column: span 4; grid-template-columns: 56px 1fr; }
}
.tsrj-member:hover { transform: translateY(-2px); box-shadow: var(--tsrj-shadow-lg); border-color: #dfe8ff; }

/* Avatar */
.tsrj-member__avatar {
  width: 72px; height: 72px; border-radius: 12px; background: #f3f4f6;
  display: grid; place-items: center; color: #6b7280; font-weight: 700; font-size: 18px;
  overflow: hidden; border: 1px solid var(--tsrj-border);
}
.tsrj-member__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Text */
.tsrj-member__name {
  margin: 2px 0 2px;
  font-weight: 700; color: var(--tsrj-ink); font-size: 17px; line-height: 1.25;
}
.tsrj-member__affil { margin: 2px 0; color: var(--tsrj-muted); font-size: 14px; }

/* Role chip — only used for Chief Editor */
.tsrj-chip--lead {
  display: inline-block; margin: 8px 6px 0 0; padding: 6px 10px;
  border-radius: 999px; font-weight: 600; font-size: 12px; line-height: 1;
  border: 1px solid #cfe3ff; color: #0b6ae6; background: #eef5ff;
}

/* Print */
@media print {
  .tsrj-member { box-shadow: none; border: 1px solid #ddd; transform: none; }
}






/* ================== Global ================== */
html { scroll-behavior: smooth; }

.pkp_brand_footer { display: none !important; }


/* Subtle Apple-style card for the static Overview */
.tsrj-overview {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  padding: 18px 18px 14px;
  margin-top: 8px;
}

/* Tighter top spacing so the rhythm matches your accordion */
.tsrj-overview h1 {
  margin-top: 6px;
}

/* Optional divider between Overview and the accordion */
.tsrj-divider {
  max-width: 960px;
  margin: 16px auto 8px;
  border: 0;
  border-top: 1px solid #ececec;
}


/* ================== Lightbox ================== */
.lightbox-target {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.85);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s;
  z-index: 9999;
  text-align: center;
}

.lightbox-target:target {
  opacity: 1;
  visibility: visible;
}

.lightbox-target img {
  margin: auto;
  max-height: 90%;
  max-width: 90%;
  display: block;
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  box-shadow: 0 0 12px #000;
  border-radius: 6px;
}

/* Close button (crisp × vs '?') */
.lightbox-target:target::after {
  content: "✕";
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 30px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  opacity: .95;
}

/* ================== Sidebar (Apple-style) ================== */
.sidebar-apple-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.sidebar-apple-menu ul li { margin-bottom: 10px; }

.sidebar-apple-menu ul li a {
  color: #444;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

.sidebar-apple-menu ul li a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 2px;
  background-color: #888;
  transition: width 0.3s ease;
}

.sidebar-apple-menu ul li a:hover { color: #000; }
.sidebar-apple-menu ul li a:hover::after { width: 100%; }

/* ================== Wrapper (Apple style) ================== */
.tsrj-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol";
  color: #333;
  font-size: 16px;
  line-height: 1.7;
  max-width: 960px;
  margin: 0 auto 20px;
  padding: 0 12px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
.tsrj-wrapper h1,
.tsrj-wrapper h2,
.tsrj-wrapper h3,
.tsrj-wrapper h4 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #007aff; /* Apple blue */
}

.tsrj-wrapper h1 { font-size: 28px; }
.tsrj-wrapper h2 { font-size: 24px; }
.tsrj-wrapper h3 { font-size: 20px; }
.tsrj-wrapper h4 { font-size: 18px; }

/* Paragraphs */
.tsrj-wrapper p { margin-bottom: 16px; }

/* Lists */
.tsrj-wrapper ul,
.tsrj-wrapper ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.tsrj-wrapper ul li,
.tsrj-wrapper ol li { margin-bottom: 8px; }

/* Links */
.tsrj-wrapper a {
  color: #007aff;
  text-decoration: none;
  border-bottom: 1px solid #cce6ff;
  transition: border-color 0.2s;
}
.tsrj-wrapper a:hover { border-bottom-color: #007aff; }

/* Blockquotes */
.tsrj-wrapper blockquote {
  border-left: 4px solid #ccc;
  padding-left: 15px;
  color: #666;
  font-style: italic;
  margin: 20px 0;
}

/* Images */
.tsrj-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Subheadings (inline emphasis) */
.tsrj-subheading {
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #222;
  font-size: 17px;
}

/* ================== Accordion (compact, Apple-style) ================== */

/* Container */
.tsrj-accordion {
  max-width: 960px;
  margin: 8px auto 24px; /* small top margin under Overview */
  padding: 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Each item controls its own spacing */
.tsrj-acc-item { margin: 0 !important; padding: 0 !important; }

/* Minimal space between items */
.tsrj-acc-item + .tsrj-acc-item { margin-top: 6px !important; }

/* Clickable heading (blue) */
.tsrj-acc-header {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  margin: 0 !important;                 /* kills stray margins */
  font-size: 18px;
  font-weight: 600;
  color: #007aff;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Arrow */
.tsrj-acc-header::after {
  content: '▾';
  font-size: 16px;
  color: #666;
  transition: transform .25s ease, color .25s ease;
  margin-left: 12px;
}

.tsrj-acc-header:hover {
  background: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.tsrj-acc-header[aria-expanded="true"] {
  background: #f2f8ff;
  border-color: #cfe3ff;
  /* merge with panel when open (no double radius) */
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.tsrj-acc-header[aria-expanded="true"]::after {
  transform: rotate(180deg);
  color: #007aff;
}

/* Keyboard focus (WCAG AA) */
.tsrj-acc-header:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,122,255,.25), 0 2px 10px rgba(0,0,0,.06);
  border-color: #cfe3ff;
}

/* Panel — fully compact when closed (no white gap) */
.tsrj-acc-content {
  /* animation model */
  overflow: hidden;
  max-height: 0;              /* closed */
  opacity: 0;
  transition: max-height 280ms ease, opacity 200ms ease;

  /* visual */
  padding: 0 20px;            /* no vertical padding while closed */
  margin: 0 !important;       /* kills stray margins */
  border: 1px solid #e5e5e5;
  border-top: none;           /* seamless with header */
  border-radius: 0 0 10px 10px;
  background: #fff;
  line-height: 1.65;
  color: #222;                /* slightly stronger contrast */
}

/* when opened by JS */
.tsrj-acc-content.is-open {
  opacity: 1;
  padding: 16px 20px;         /* vertical padding appears only when open */
  max-height: 1200px;         /* large enough for most panels */
}

/* inner spacing */
.tsrj-acc-content p { margin: 0 0 12px; }
.tsrj-acc-content ul,
.tsrj-acc-content ol { margin: 6px 0 12px; padding-left: 20px; }
.tsrj-acc-content li { margin-bottom: 5px; }

/* responsive tweak */
@media (max-width: 600px) {
  .tsrj-acc-header { font-size: 17px; padding: 12px 16px; }
  .tsrj-acc-content.is-open { padding: 14px 16px; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .tsrj-acc-content { transition: none; }
  .tsrj-backtotop { transition: none; }
  html { scroll-behavior: auto; }
}

/* ================== Back to Top (Apple-style pill) ================== */
.tsrj-backtotop {
  position: fixed;
  right: 18px; bottom: 22px;
  z-index: 9999;
  width: 44px; height: 44px;
  border: 1px solid #e5e5e5;
  border-radius: 22px;
  background: #fff;
  color: #007aff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 18px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none; /* avoid focusing when hidden */
}

.tsrj-backtotop:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  border-color: #cfe3ff;
}

.tsrj-backtotop:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.25), 0 6px 18px rgba(0,0,0,0.08);
}

/* Visible state toggled by JS */
.tsrj-backtotop.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ================== Lead + Buttons ================== */
.tsrj-lead {
  font-size: 17px;
  margin: 8px 0 18px;
  color: #333;
}

.tsrj-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 24px;
}

.tsrj-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  line-height: 1;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  border: 1px solid transparent;
  min-width: 132px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Primary (blue) */
.tsrj-btn--primary {
  background: #007aff;
  color: #ffffff !important;    /* Force white text */
  border-color: #007aff;
  box-shadow: 0 6px 18px rgba(0,122,255,0.22);
  text-decoration: none;        /* Prevent underline */
}
.tsrj-btn--primary:hover {
  background: #0a6fe8;
  color: #ffffff !important;
  border-color: #0a6fe8;
  box-shadow: 0 8px 22px rgba(0,122,255,0.28);
}

/* Secondary (neutral outline) */
.tsrj-btn--secondary {
  background: #fff;
  color: #0a0a0a;
  border-color: #e5e5e5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.tsrj-btn--secondary:hover {
  border-color: #cfe3ff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Focus ring */
.tsrj-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,122,255,.25), 0 6px 18px rgba(0,0,0,.08);
}

/* Optional steps block */
.tsrj-submission-steps h3 {
  font-size: 20px;
  margin-top: 12px;
}
.tsrj-submission-steps ol { margin: 8px 0 0 20px; }
.tsrj-submission-steps li { margin-bottom: 6px; }

/* Responsive */
@media (max-width: 560px) {
  .tsrj-cta-row { gap: 10px; }
  .tsrj-btn { flex: 1 1 100%; min-width: 0; }
}
