/* ==========================================================================
   Glass Journal — stylesheet
   plugins/themes/glassjournal/styles/glass.css

   Loaded after the Default theme's compiled CSS, so these rules win.
   Colours and fonts come from custom properties that the plugin writes
   inline from the theme options; the values below are only fallbacks.
   ========================================================================== */

:root {
  /* Overwritten by GlassJournalThemePlugin::getCustomProperties() */
  --gj-brand-500: #0e7490;
  --gj-brand-700: #0b5a70;
  --gj-brand-900: #06343f;
  --gj-brand-300: #6aaec2;
  --gj-brand-rgb: 14, 116, 144;
  --gj-accent: #f59e0b;
  --gj-accent-ink: #865706;
  --gj-font-head: "Libre Baskerville", Georgia, serif;
  --gj-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gj-back-to-top: 1;

  /* Fixed design tokens */
  --gj-ink: #0f172a;
  --gj-ink-soft: #475569;
  --gj-ink-faint: #7c8899;
  --gj-rule: #e3e9ef;
  --gj-page-bg: #f4f7fa;
  --gj-glass: rgba(255, 255, 255, .74);
  --gj-glass-solid: #ffffff;
  --gj-glass-edge: rgba(255, 255, 255, .6);
  --gj-blur: blur(10px);

  --gj-gradient: linear-gradient(135deg, var(--gj-brand-700) 0%, var(--gj-brand-500) 60%, var(--gj-brand-300) 140%);
  --gj-gradient-soft: linear-gradient(135deg, rgba(var(--gj-brand-rgb), .09), rgba(var(--gj-brand-rgb), .04));

  --gj-radius: 14px;
  --gj-radius-sm: 10px;
  --gj-pill: 999px;
  --gj-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --gj-shadow: 0 6px 24px -8px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .05);
  --gj-shadow-lg: 0 18px 48px -16px rgba(15, 23, 42, .28);
  --gj-measure: 70ch;
}

/* ==========================================================================
   1. CANVAS & TYPE
   ========================================================================== */

body {
  font-family: var(--gj-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gj-ink);
  background-color: var(--gj-page-bg);
  background-image:
    radial-gradient(60rem 30rem at 12% -8%, rgba(var(--gj-brand-rgb), .13), transparent 60%),
    radial-gradient(48rem 26rem at 92% 4%, rgba(var(--gj-brand-rgb), .08), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pkp_structure_page { max-width: 1240px; margin: 0 auto; }

h1, h2, h3, h4, h5, h6,
.page > h1,
.obj_article_details .page_title {
  font-family: var(--gj-font-head);
  font-weight: 700;
  color: var(--gj-brand-900);
  line-height: 1.3;
  text-wrap: balance;
}

.page > h1 {
  position: relative;
  font-size: 1.85rem;
  margin: 0 0 1.5rem;
  padding-bottom: .75rem;
}
.page > h1::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 4.5rem; height: 4px;
  border-radius: var(--gj-pill);
  background: var(--gj-gradient);
}

h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }

a { color: var(--gj-brand-700); text-underline-offset: 2px; transition: color .15s ease; }
a:hover, a:focus-visible { color: var(--gj-accent-ink); }

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--gj-brand-500);
  border-radius: var(--gj-radius-sm);
  background: var(--gj-gradient-soft);
  font-family: var(--gj-font-head);
  color: var(--gj-ink-soft);
}

pre {
  background: #0b1a24; color: #dbeafe;
  border-radius: var(--gj-radius-sm);
  padding: 1rem; overflow-x: auto;
}
hr { border: 0; border-top: 1px solid var(--gj-rule); margin: 2rem 0; }

/* ==========================================================================
   2. STICKY GLASS HEADER  (set to static by the theme option)
   ========================================================================== */

.pkp_structure_head {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--gj-rule);
  box-shadow: var(--gj-shadow-sm);
}

.pkp_head_wrapper { padding-top: 1rem; padding-bottom: 0; }
.pkp_site_name_wrapper { padding-bottom: .5rem; }
.pkp_site_name .is_img img { max-height: 76px; width: auto; }

.pkp_site_name > a,
.pkp_site_name > a:link {
  font-family: var(--gj-font-head);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gj-brand-900);
  text-decoration: none;
}
.pkp_site_name > a:hover { color: var(--gj-brand-500); }

/* ==========================================================================
   3. PILL NAVIGATION
   ========================================================================== */

.pkp_navigation_primary_row { background: transparent; border-top: 1px solid var(--gj-rule); }

.pkp_navigation_primary > li > a {
  font-family: var(--gj-font-body);
  font-size: .92rem;
  font-weight: 600;
  color: var(--gj-ink-soft);
  padding: .7rem .95rem;
  margin: .35rem .15rem;
  border-radius: var(--gj-pill);
  transition: color .15s ease, background .15s ease;
}
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus-visible {
  color: var(--gj-brand-700);
  background: rgba(var(--gj-brand-rgb), .09);
}
.pkp_navigation_primary > li.current > a {
  color: #fff;
  background: var(--gj-gradient);
  box-shadow: 0 4px 14px -6px rgba(var(--gj-brand-rgb), .7);
}

.pkp_navigation_primary > li > ul {
  background: var(--gj-glass-solid);
  border: 1px solid var(--gj-rule);
  border-radius: var(--gj-radius-sm);
  box-shadow: var(--gj-shadow-lg);
  padding: .4rem;
  min-width: 16rem;
}
.pkp_navigation_primary > li > ul > li > a {
  font-size: .9rem; color: var(--gj-ink);
  padding: .55rem .8rem; border-radius: 8px;
}
.pkp_navigation_primary > li > ul > li > a:hover {
  background: var(--gj-gradient-soft); color: var(--gj-brand-700);
}

.pkp_navigation_user > li > a {
  font-size: .84rem; font-weight: 500;
  color: var(--gj-ink-faint); padding: .6rem .7rem;
}
.pkp_navigation_user > li > a:hover { color: var(--gj-brand-700); }

.pkp_navigation_user > li.register > a,
.pkp_navigation_user > li.login > a {
  color: #fff !important;
  background: var(--gj-gradient);
  border-radius: var(--gj-pill);
  padding: .45rem 1rem;
  margin-left: .35rem;
  box-shadow: 0 4px 14px -8px rgba(var(--gj-brand-rgb), .9);
}
.pkp_navigation_user > li.register > a:hover,
.pkp_navigation_user > li.login > a:hover { filter: brightness(1.08); }

/* Language toggle with flag icons (OJS language block) */
.pkp_block.block_language ul { display: flex; flex-wrap: wrap; gap: .4rem; }
.pkp_block.block_language li { margin: 0; }
.pkp_block.block_language a {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; font-weight: 600;
  padding: .3rem .7rem;
  border: 1px solid var(--gj-rule);
  border-radius: var(--gj-pill);
  background: #fff;
  text-decoration: none;
}
.pkp_block.block_language a:hover { border-color: var(--gj-brand-300); }
.pkp_block.block_language img { height: 12px; width: auto; border-radius: 2px; }

/* ==========================================================================
   4. BREADCRUMBS
   ========================================================================== */

.cmp_breadcrumbs { font-size: .84rem; color: var(--gj-ink-faint); padding: 1.1rem 0 0; }
.cmp_breadcrumbs a { color: var(--gj-ink-soft); text-decoration: none; }
.cmp_breadcrumbs a:hover { color: var(--gj-brand-700); text-decoration: underline; }
.cmp_breadcrumbs .separator { padding: 0 .4rem; opacity: .5; }

/* ==========================================================================
   5. MAIN COLUMN AS A FLOATING CARD
   ========================================================================== */

.pkp_structure_main { padding-top: 1.5rem; padding-bottom: 2rem; }

.pkp_structure_main > .page,
.pkp_structure_main > .pkp_page_index,
.pkp_structure_main > .cmp_announcements {
  background: var(--gj-glass);
  -webkit-backdrop-filter: var(--gj-blur);
  backdrop-filter: var(--gj-blur);
  border: 1px solid var(--gj-glass-edge);
  border-radius: var(--gj-radius);
  box-shadow: var(--gj-shadow);
  padding: 1.75rem 2rem;
}

.obj_article_details .main_entry > *:not(table):not(figure):not(.galleys),
.page_index_journal .journal_description,
.obj_announcement_full .description,
.page > .description { max-width: var(--gj-measure); }

/* ==========================================================================
   6. HOMEPAGE
   ========================================================================== */

.page_index_journal .homepage_image img {
  border-radius: var(--gj-radius);
  box-shadow: var(--gj-shadow);
  margin-bottom: 1.5rem;
}
.page_index_journal .journal_description { font-size: 1.02rem; color: var(--gj-ink-soft); }

.page_index_journal .current_issue_title {
  font-family: var(--gj-font-head);
  font-size: 1.3rem;
  color: var(--gj-brand-900);
  margin: 2rem 0 .25rem;
}

/* Hero (from the theme's indexJournal.tpl override) */
.gj-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 1.75rem;
}
.gj-hero__cover img {
  width: 100%; height: auto;
  border-radius: var(--gj-radius);
  box-shadow: var(--gj-shadow);
}
.gj-hero__eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gj-brand-700);
  background: rgba(var(--gj-brand-rgb), .1);
  border-radius: var(--gj-pill);
  padding: .25rem .8rem;
  margin-bottom: .75rem;
}
.gj-hero__title {
  font-size: 1.75rem;
  margin: 0 0 .6rem;
  line-height: 1.25;
}
.gj-hero__meta {
  display: flex; flex-wrap: wrap; gap: .4rem .5rem;
  margin: 1rem 0 0; padding: 0; list-style: none;
}
.gj-hero__meta li {
  font-size: .8rem; font-weight: 500;
  color: var(--gj-ink-soft);
  background: #fff;
  border: 1px solid var(--gj-rule);
  border-radius: var(--gj-pill);
  padding: .25rem .75rem;
}

/* Announcement cards */
.obj_announcement_summary {
  background: var(--gj-glass-solid);
  border: 1px solid var(--gj-rule);
  border-left: 4px solid var(--gj-accent);
  border-radius: var(--gj-radius-sm);
  box-shadow: var(--gj-shadow-sm);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
}
.obj_announcement_summary .title,
.obj_announcement_summary h2 { margin-top: 0; font-size: 1.1rem; }
.obj_announcement_summary .date {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--gj-accent-ink);
}

/* ==========================================================================
   7. ISSUE TOC
   ========================================================================== */

.obj_issue_toc .section > h2,
.obj_issue_toc .section > h3 {
  font-family: var(--gj-font-body);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gj-brand-500);
  margin: 2.25rem 0 .5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gj-rule);
}
.obj_issue_toc .cover_image img { border-radius: var(--gj-radius-sm); box-shadow: var(--gj-shadow); }

/* ==========================================================================
   8. ARTICLE CARDS
   ========================================================================== */

.obj_article_summary {
  background: var(--gj-glass-solid);
  border: 1px solid var(--gj-rule);
  border-radius: var(--gj-radius-sm);
  box-shadow: var(--gj-shadow-sm);
  padding: 1.15rem 1.35rem;
  margin-bottom: .9rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.obj_article_summary:hover {
  transform: translateY(-2px);
  border-color: var(--gj-brand-300);
  box-shadow: var(--gj-shadow);
}

.obj_article_summary > .title {
  font-family: var(--gj-font-head);
  font-size: 1.1rem; font-weight: 700; line-height: 1.4;
  margin: 0 0 .4rem;
}
.obj_article_summary > .title a { color: var(--gj-brand-900); text-decoration: none; }
.obj_article_summary > .title a:hover { color: var(--gj-brand-500); }

.obj_article_summary .subtitle {
  display: block;
  font-family: var(--gj-font-body);
  font-size: .95rem; font-weight: 400;
  color: var(--gj-ink-soft);
}
.obj_article_summary .authors { font-size: .9rem; color: var(--gj-ink-soft); margin-bottom: .4rem; }
.obj_article_summary .published,
.obj_article_summary .pages,
.obj_article_summary .doi { font-size: .8rem; color: var(--gj-ink-faint); }
.obj_article_summary .doi a { color: var(--gj-ink-faint); }

/* ==========================================================================
   9. ARTICLE LANDING PAGE
   ========================================================================== */

.obj_article_details .page_title { font-size: 1.7rem; line-height: 1.32; margin-bottom: .4rem; }
.obj_article_details .subtitle {
  font-family: var(--gj-font-head);
  font-size: 1.15rem; font-weight: 400;
  color: var(--gj-ink-soft); line-height: 1.4;
  margin-bottom: 1.1rem;
}

.obj_article_details .authors {
  font-size: .98rem;
  padding: .9rem 1.1rem;
  margin-bottom: 1.5rem;
  background: var(--gj-gradient-soft);
  border: 1px solid var(--gj-rule);
  border-radius: var(--gj-radius-sm);
}
.obj_article_details .author .affiliation,
.obj_article_details .author .orcid {
  display: block; font-size: .83rem; color: var(--gj-ink-faint);
}

.obj_article_details .abstract {
  position: relative; overflow: hidden;
  font-size: 1.01rem; line-height: 1.7;
  background: var(--gj-glass-solid);
  border: 1px solid var(--gj-rule);
  border-radius: var(--gj-radius);
  box-shadow: var(--gj-shadow-sm);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.75rem;
}
.obj_article_details .abstract::before {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: 5px; background: var(--gj-gradient);
}
.obj_article_details .abstract > h2,
.obj_article_details .abstract > h3 {
  font-family: var(--gj-font-body);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gj-brand-500);
  margin: 0 0 .65rem;
}

.obj_article_details .keywords { margin-bottom: 1.75rem; }
.obj_article_details .keywords > h3 {
  font-family: var(--gj-font-body);
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gj-ink-faint); margin-bottom: .55rem;
}
.obj_article_details .keywords .value {
  display: inline-block;
  font-size: .84rem; font-weight: 500;
  color: var(--gj-brand-700);
  background: rgba(var(--gj-brand-rgb), .09);
  border: 1px solid rgba(var(--gj-brand-rgb), .18);
  border-radius: var(--gj-pill);
  padding: .22rem .75rem;
  margin: 0 .35rem .4rem 0;
}

.obj_article_details .entry_details .item {
  background: var(--gj-glass-solid);
  border: 1px solid var(--gj-rule);
  border-radius: var(--gj-radius-sm);
  box-shadow: var(--gj-shadow-sm);
  padding: .9rem 1rem;
  margin-bottom: .85rem;
}
.obj_article_details .entry_details .label {
  font-size: .71rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--gj-ink-faint); margin-bottom: .3rem;
}
.obj_article_details .entry_details .value { font-size: .89rem; }

/* References: hanging indent + collapsible (JS adds the toggle) */
.obj_article_details .references .value p,
.obj_article_details .references li {
  font-size: .89rem; line-height: 1.6;
  color: var(--gj-ink-soft);
  padding-left: 1.5em; text-indent: -1.5em;
  margin-bottom: .85em;
}
.gj-collapse__toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  font: inherit; font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--gj-brand-700);
  background: rgba(var(--gj-brand-rgb), .08);
  border: 1px solid rgba(var(--gj-brand-rgb), .2);
  border-radius: var(--gj-pill);
  padding: .3rem .85rem;
  cursor: pointer;
}
.gj-collapse__toggle:hover { background: rgba(var(--gj-brand-rgb), .14); }
.gj-collapse__toggle::after { content: "▾"; font-size: .9em; }
.gj-collapse__toggle[aria-expanded="true"]::after { content: "▴"; }
.gj-collapse__panel[hidden] { display: none; }

/* ==========================================================================
   10. BUTTONS & GALLEY LINKS
   ========================================================================== */

.cmp_button, .cmp_button:link,
.obj_galley_link, .obj_galley_link:link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--gj-font-body);
  font-size: .88rem; font-weight: 600; line-height: 1.2;
  color: #fff !important;
  background: var(--gj-gradient);
  border: 0; border-radius: var(--gj-pill);
  padding: .6rem 1.2rem;
  margin: 0 .45rem .55rem 0;
  text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(var(--gj-brand-rgb), .85);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.cmp_button:hover, .cmp_button:focus-visible,
.obj_galley_link:hover, .obj_galley_link:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(var(--gj-brand-rgb), .9);
  text-decoration: none;
}
.cmp_button:active, .obj_galley_link:active { transform: translateY(0); }

.obj_galley_link.remote_galley, .cmp_button_wire {
  color: var(--gj-brand-700) !important;
  background: transparent;
  border: 1.5px solid var(--gj-brand-500);
  box-shadow: none;
}
.obj_galley_link.remote_galley:hover, .cmp_button_wire:hover {
  background: rgba(var(--gj-brand-rgb), .08); filter: none;
}

/* ==========================================================================
   11. SIDEBAR BLOCKS
   ========================================================================== */

.pkp_block {
  background: var(--gj-glass);
  -webkit-backdrop-filter: var(--gj-blur);
  backdrop-filter: var(--gj-blur);
  border: 1px solid var(--gj-glass-edge);
  border-radius: var(--gj-radius);
  box-shadow: var(--gj-shadow);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.25rem;
}
.pkp_block .title {
  font-family: var(--gj-font-body);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gj-brand-500);
  padding-bottom: .55rem; margin-bottom: .8rem;
  border-bottom: 2px solid var(--gj-rule);
}
.pkp_block .content, .pkp_block ul { font-size: .89rem; }
.pkp_block ul { list-style: none; margin: 0; padding: 0; }
.pkp_block li { margin-bottom: .5rem; }
.pkp_block li a { text-decoration: none; }
.pkp_block li a:hover { text-decoration: underline; }
.pkp_block img { max-width: 100%; height: auto; border-radius: var(--gj-radius-sm); }

/* ==========================================================================
   12. FORMS, TABLES, PAGINATION
   ========================================================================== */

input[type="text"], input[type="search"], input[type="email"],
input[type="password"], input[type="url"], input[type="number"],
select, textarea {
  font-family: inherit; font-size: .94rem;
  color: var(--gj-ink); background: #fff;
  border: 1px solid #cdd7e1; border-radius: var(--gj-radius-sm);
  padding: .6rem .8rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gj-brand-500);
  box-shadow: 0 0 0 4px rgba(var(--gj-brand-rgb), .15);
}
button, input[type="submit"] {
  font-family: var(--gj-font-body); font-weight: 600;
  border-radius: var(--gj-pill); cursor: pointer;
}

table {
  width: 100%; margin: 1.5rem 0;
  border-collapse: separate; border-spacing: 0;
  font-size: .91rem; background: #fff;
  border: 1px solid var(--gj-rule);
  border-radius: var(--gj-radius-sm);
  overflow: hidden;
}
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--gj-rule); vertical-align: top; }
th {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--gj-brand-700); background: var(--gj-gradient-soft);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(var(--gj-brand-rgb), .035); }

.cmp_pagination { font-size: .88rem; color: var(--gj-ink-soft); margin: 2rem 0 0; }
.cmp_pagination a {
  display: inline-block; padding: .4rem .85rem; margin-right: .35rem;
  background: #fff; border: 1px solid var(--gj-rule);
  border-radius: var(--gj-pill); text-decoration: none;
  box-shadow: var(--gj-shadow-sm);
}
.cmp_pagination a:hover { border-color: var(--gj-brand-300); color: var(--gj-brand-700); }

figure { margin: 1.75rem 0; }
figure img { max-width: 100%; height: auto; border-radius: var(--gj-radius-sm); box-shadow: var(--gj-shadow-sm); }
figcaption { font-size: .84rem; color: var(--gj-ink-faint); margin-top: .5rem; line-height: 1.5; }

/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.pkp_structure_footer_wrapper {
  margin-top: 3rem;
  color: #cbd9e3;
  background: linear-gradient(135deg, #061a26 0%, var(--gj-brand-900) 60%, var(--gj-brand-700) 130%);
  border-top: 3px solid var(--gj-brand-500);
}
.pkp_structure_footer { padding-top: 2.5rem; padding-bottom: 2rem; font-size: .9rem; }
.pkp_structure_footer a { color: var(--gj-brand-300); text-decoration: none; }
.pkp_structure_footer a:hover { color: #fff; text-decoration: underline; }
.pkp_structure_footer h1, .pkp_structure_footer h2,
.pkp_structure_footer h3, .pkp_structure_footer h4 {
  color: #fff;
  font-family: var(--gj-font-body);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .75rem;
}
.pkp_structure_footer ul { list-style: none; padding: 0; margin: 0; }
.pkp_structure_footer li { margin-bottom: .4rem; }

/* Multi-column footer: wrap columns in <div class="gj-footer-cols"> in
   Settings → Website → Appearance → Page footer */
.gj-footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem 2rem;
}

.pkp_brand_footer {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 1.75rem; padding-top: 1.25rem; opacity: .8;
}
.pkp_brand_footer img { filter: brightness(0) invert(1); opacity: .75; }

/* ==========================================================================
   14. COMPONENTS — badge strip, stats, marquee, scholar card, tabs
   (markup: either the theme's indexJournal.tpl, or paste into a
    Custom Block / the journal description — see README §4)
   ========================================================================== */

/* 14a. Indexing badge strip */
.gj-badges {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: .75rem;
  padding: 1rem 1.1rem; margin: 0 0 1.5rem;
  background: var(--gj-glass-solid);
  border: 1px solid var(--gj-rule);
  border-radius: var(--gj-radius);
  box-shadow: var(--gj-shadow-sm);
}
.gj-badges img {
  height: 34px; width: auto;
  filter: grayscale(100%); opacity: .72;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}
.gj-badges a:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.06); }

/* 14b. Stats row */
.gj-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .85rem; margin: 1.5rem 0;
}
.gj-stat {
  text-align: center; padding: 1.1rem .75rem;
  background: var(--gj-gradient-soft);
  border: 1px solid var(--gj-rule);
  border-radius: var(--gj-radius-sm);
}
.gj-stat__num {
  display: block;
  font-family: var(--gj-font-head);
  font-size: 1.45rem; font-weight: 700; line-height: 1.1;
  color: var(--gj-brand-700);
}
.gj-stat__label {
  display: block; margin-top: .35rem;
  font-size: .73rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--gj-ink-faint);
}

/* 14c. Scrolling INDEXED BY marquee (JS clones the track for a seamless loop) */
.gj-marquee {
  position: relative; overflow: hidden;
  padding: .9rem 0; margin: 1.5rem 0;
  background: var(--gj-glass-solid);
  border: 1px solid var(--gj-rule);
  border-radius: var(--gj-radius);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.gj-marquee__track {
  display: flex; align-items: center; gap: 2.5rem;
  width: max-content;
  animation: gj-scroll 30s linear infinite;
}
.gj-marquee:hover .gj-marquee__track { animation-play-state: paused; }
.gj-marquee__track img { height: 32px; width: auto; opacity: .75; }
@keyframes gj-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 14d. Scholar / metrics card */
.gj-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; }
.gj-metrics__cell {
  padding: .6rem .3rem;
  background: rgba(var(--gj-brand-rgb), .06);
  border-radius: var(--gj-radius-sm);
}
.gj-metrics__num {
  display: block;
  font-family: var(--gj-font-head);
  font-size: 1.1rem; font-weight: 700;
  color: var(--gj-brand-700);
}
.gj-metrics__label {
  display: block; font-size: .64rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--gj-ink-faint);
}

/* 14e. Tabs (Most Viewed / Most Cited) */
.gj-tabs__nav { display: flex; gap: .3rem; margin-bottom: .75rem; }
.gj-tabs__btn {
  flex: 1 1 auto;
  font: inherit; font-size: .76rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--gj-ink-faint);
  background: transparent;
  border: 1px solid var(--gj-rule);
  border-radius: var(--gj-pill);
  padding: .35rem .6rem;
  cursor: pointer;
}
.gj-tabs__btn[aria-selected="true"] {
  color: #fff; background: var(--gj-gradient); border-color: transparent;
}
.gj-tabs__panel[hidden] { display: none; }
.gj-tabs__panel ol { margin: 0; padding-left: 1.1rem; }
.gj-tabs__panel li { font-size: .85rem; margin-bottom: .5rem; }

/* 14f. Section heading pill */
.gj-pill-heading {
  display: inline-block;
  font-family: var(--gj-font-body);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--gj-gradient);
  border-radius: var(--gj-pill);
  padding: .4rem 1rem; margin: 1.75rem 0 1rem;
}

/* ==========================================================================
   15. BACK TO TOP (injected by js/main.js)
   ========================================================================== */

#gjBackToTop {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 300;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem;
  color: #fff; background: var(--gj-gradient);
  border: 0; border-radius: 50%;
  box-shadow: var(--gj-shadow-lg);
  font-size: 1rem; line-height: 1; cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(.5rem);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
#gjBackToTop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
#gjBackToTop:hover { filter: brightness(1.1); }

/* ==========================================================================
   15b. PARENT THEME OVERRIDES
   The Default theme paints the header and navigation from its own "Base
   Colour" option, and reserves a sidebar column whether or not one exists.
   These rules settle both, so Glass Journal looks the same no matter what
   the parent theme's colour is set to. !important is deliberate here: these
   are the only places where the parent's rules are more specific.
   ========================================================================== */

/* --- Full-bleed bands, centered content ---------------------------------
   The parent caps the whole page at a fixed width, which makes the masthead
   and footer look like floating boxes. Instead: let the bands span the
   viewport and cap only what's inside them, so header, content and footer
   all line up on the same column.
   ----------------------------------------------------------------------- */

.pkp_structure_page {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
}

/* ONE column width for the whole site. Change this single value to make the
   site wider or narrower — header, nav, content and footer follow together. */
:root { --gj-container: 1240px; }

/* Every band's inner wrapper gets the identical box. The `> *` selector on
   the nav row is deliberate: the parent theme's wrapper class differs
   between installs, so this matches whatever it happens to be. */
.pkp_head_wrapper,
.pkp_navigation_primary_row > *,
.pkp_structure_content,
.pkp_structure_footer {
  width: 100% !important;
  max-width: var(--gj-container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;
  float: none !important;
}

@media (max-width: 768px) {
  .pkp_head_wrapper,
  .pkp_navigation_primary_row > *,
  .pkp_structure_content,
  .pkp_structure_footer { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* Masthead band stays white and spans the viewport */
.pkp_structure_head {
  width: 100%;
  background-color: rgba(255, 255, 255, .92) !important;
  background-image: none !important;
}

/* --- Navigation bar: own it rather than fight it ------------------------
   The parent paints this row from its Base Colour option, and the element
   carrying that colour differs between installs. So instead of trying to
   strip the colour, the bar is given the brand gradient and every piece of
   text inside it is forced white. That reads correctly no matter which
   element underneath is coloured.
   ----------------------------------------------------------------------- */

.pkp_navigation_primary_row {
  width: 100%;
  background: var(--gj-gradient) !important;
  border-top: 0 !important;
}

/* Every link, label and icon in the bar */
.pkp_navigation_primary_row a,
.pkp_navigation_primary_row button,
.pkp_navigation_primary_row span,
.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a {
  color: #fff !important;
}

.pkp_navigation_primary > li > a {
  border-radius: var(--gj-pill);
  margin: .3rem .1rem;
}
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus-visible {
  background: rgba(255, 255, 255, .18) !important;
}
.pkp_navigation_primary > li.current > a {
  background: rgba(255, 255, 255, .26) !important;
  box-shadow: none;
}

/* Dropdown panels drop back to light-on-white */
.pkp_navigation_primary > li > ul { background: #fff !important; }
.pkp_navigation_primary > li > ul a,
.pkp_navigation_primary > li > ul span { color: var(--gj-ink) !important; }
.pkp_navigation_primary > li > ul a:hover { color: var(--gj-brand-700) !important; }

/* Search field inside the bar */
.pkp_navigation_primary_row input[type="search"],
.pkp_navigation_primary_row input[type="text"] {
  background: rgba(255, 255, 255, .95) !important;
  color: var(--gj-ink) !important;
  border: 0 !important;
  border-radius: var(--gj-pill) !important;
}

/* Login / Register sit on the gradient already — drop the second pill */
.pkp_navigation_user > li.register > a,
.pkp_navigation_user > li.login > a {
  background: rgba(255, 255, 255, .2) !important;
  box-shadow: none !important;
}

/* --- Layout: flex instead of the parent's fixed percentages --------------
   The parent reserves a sidebar column as a percentage width whether or not
   anything is in it, which is why the content looked narrow with a dead gap
   on the right. Flex makes the main column take whatever the sidebar
   doesn't, so it fills the full width when there are no sidebar blocks and
   still gives a proper two-column layout when there are.
   ----------------------------------------------------------------------- */

.pkp_structure_content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.pkp_structure_main {
  flex: 1 1 auto;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.pkp_structure_sidebar {
  flex: 0 0 18rem;
  width: auto !important;
  max-width: 18rem;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* An empty sidebar takes no space at all */
.pkp_structure_sidebar:empty,
.pkp_structure_sidebar:not(:has(.pkp_block)) { display: none !important; }

@media (max-width: 992px) {
  .pkp_structure_content { display: block; }
  .pkp_structure_sidebar { max-width: none; margin-top: 1.5rem; }
}

/* --- Footer band spans the viewport -------------------------------------- */
.pkp_structure_footer_wrapper { width: 100%; }

/* --- Masthead: let a wide logo + ISSN line breathe ----------------------- */
.pkp_site_name_wrapper { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* ==========================================================================
   16. ACCESSIBILITY
   ========================================================================== */

a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
.obj_galley_link:focus-visible, .cmp_button:focus-visible {
  outline: 3px solid var(--gj-accent);
  outline-offset: 2px; border-radius: 4px;
}

.pkp_navigation_skip a:focus {
  position: absolute !important;
  left: 1rem; top: 1rem; z-index: 999;
  width: auto !important; height: auto !important;
  padding: .6rem 1.1rem;
  background: var(--gj-brand-700); color: #fff;
  border-radius: var(--gj-pill);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .obj_article_summary:hover, .cmp_button:hover, .obj_galley_link:hover { transform: none; }
}

/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */

@media (max-width: 992px) {
  .pkp_site_name > a { font-size: 1.3rem; }
  .page > h1 { font-size: 1.5rem; }
  .obj_article_details .page_title { font-size: 1.4rem; }
  .gj-hero { grid-template-columns: 1fr; }
  .gj-hero__cover { max-width: 14rem; }
  .pkp_structure_main > .page { padding: 1.25rem; }
}

@media (max-width: 768px) {
  body { font-size: .96rem; background-attachment: scroll; }
  .pkp_structure_head { position: static; }
  .pkp_structure_main > .page,
  .pkp_structure_main > .pkp_page_index {
    border-radius: var(--gj-radius-sm); padding: 1.1rem;
  }
  .obj_article_details .abstract { padding: 1.1rem 1.15rem; }
  .obj_galley_link, .cmp_button { display: flex; justify-content: center; width: 100%; margin-right: 0; }
  table { display: block; overflow-x: auto; }
  .gj-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   18. PRINT
   ========================================================================== */

@media print {
  .pkp_structure_head, .pkp_structure_sidebar, .pkp_structure_footer_wrapper,
  .cmp_breadcrumbs, .obj_galley_link, .cmp_button,
  .gj-badges, .gj-marquee, .gj-tabs, #gjBackToTop { display: none !important; }

  body { background: #fff; font-size: 11pt; color: #000; }
  .pkp_structure_page, .pkp_structure_main, .pkp_structure_main > .page {
    max-width: 100%; width: 100%;
    background: none; border: 0; box-shadow: none; padding: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .obj_article_details .abstract { background: none; border: 0; box-shadow: none; padding: 0; }
  .obj_article_details .abstract::before { display: none; }
  .gj-collapse__panel[hidden] { display: block !important; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
