/* HTECHJ 1.0.2. Layout for native OJS 3.3 pages and plugin content. */

/* OJS's float clearfix creates two pseudo-elements. They must never become
   grid items: otherwise the main content occupies the sidebar's column. */
.htechj-theme .pkp_structure_content::before,
.htechj-theme .pkp_structure_content::after {
  content: none;
  display: none;
}
.htechj-theme .pkp_structure_content.has_sidebar {
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-areas: "main sidebar";
  gap: 24px;
}
.htechj-theme .pkp_structure_main {
  position: relative;
  max-width: 100%;
  min-width: 0;
}
.htechj-theme .has_sidebar > .pkp_structure_main { grid-area: main; }
.htechj-theme .has_sidebar > .pkp_structure_sidebar { grid-area: sidebar; }
.htechj-theme .pkp_structure_sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
  max-width: 100%;
}
.htechj-theme .pkp_structure_sidebar > .pkp_block { margin: 0; }
.htechj-theme .pkp_structure_sidebar :is(table, iframe, embed) { max-width: 100%; }
.htechj-theme .pkp_structure_sidebar :is(td, th) { overflow-wrap: anywhere; }
.htechj-theme .pkp_structure_main > .page {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
}
.htechj-theme .pkp_structure_main > .page > h1 {
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 2px solid var(--ht-gold);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.35;
}
.htechj-theme .cmp_breadcrumbs { display: block; margin: 0 0 24px; padding: 0; }
.htechj-theme .cmp_breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; font-size: inherit; line-height: 1.65; }
.htechj-theme .cmp_breadcrumbs li { display: inline; max-width: 100%; }
.htechj-theme .cmp_breadcrumbs a { text-decoration: none; }
.htechj-theme .cmp_breadcrumbs .separator { margin-inline-start: 8px; }
.htechj-theme .pkp_structure_main :is(.page_about,.page_submissions,.page_contact,.page_editorial_team,.page_page) {
  font-size: 14px;
  line-height: 1.8;
}
.htechj-theme .pkp_structure_main :is(.page_about,.page_submissions,.page_contact,.page_editorial_team,.page_page) p { line-height: 1.8; }
.htechj-theme .pkp_structure_main :is(.page_about,.page_submissions,.page_contact,.page_editorial_team,.page_page) :is(table,iframe,video) { max-width: 100%; }
.htechj-theme .pkp_structure_main .page_page table {
  width: 100% !important;
  table-layout: fixed;
}
.htechj-theme .pkp_structure_main .page_page :is(td,th) { overflow-wrap: anywhere; }
.htechj-theme .page_contact .contact_section { margin: 24px 0 0; }
.htechj-theme .page_contact .contact_section > div { min-width: 0; overflow-wrap: anywhere; }
.htechj-theme .page_announcements .cmp_announcements { margin: 0; padding: 0; border: 0; }
.htechj-theme .page_announcements .cmp_announcements > li { margin: 0 0 18px; padding: 18px; border: 1px solid var(--ht-line); border-radius: 7px; }

/* Archives use the native list of published issues and native pagination.
   Current and issue/view use the native table of contents of one issue. */
.htechj-theme .page_issue_archive .issues_archive {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}
.htechj-theme .page_issue_archive .issues_archive > li {
  margin: 0;
  padding: 20px;
  min-width: 0;
  border: 1px solid var(--ht-line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f4f8ff 0, #fff 60%);
}
.htechj-theme .obj_issue_summary { display: flow-root; min-width: 0; }
.htechj-theme .obj_issue_summary::before,
.htechj-theme .obj_issue_summary::after { display: none; content: none; }
.htechj-theme .obj_issue_summary .cover {
  float: left;
  width: 110px;
  max-width: 28%;
  margin: 0 22px 10px 0;
}
.htechj-theme .obj_issue_summary .cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 4px;
  box-shadow: 0 5px 12px #102c681c;
}
.htechj-theme .obj_issue_summary h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.4; }
.htechj-theme .obj_issue_summary .title { color: var(--ht-ink); text-decoration: none; }
.htechj-theme .obj_issue_summary .title:hover { color: var(--ht-blue); }
.htechj-theme .obj_issue_summary .series { margin: 7px 0 0; color: var(--ht-muted); font-size: 12px; }
.htechj-theme .obj_issue_summary .description { color: var(--ht-muted); font-size: 12px; line-height: 1.8; }
.htechj-theme .obj_issue_summary .description p { margin-block: 8px; line-height: 1.8; }
.htechj-theme .cmp_pagination { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.htechj-theme .cmp_pagination :is(.prev,.next) { border: 1px solid var(--ht-line); border-radius: 5px; padding: 8px 14px; text-decoration: none; }
.htechj-theme .obj_issue_toc > .heading { display: flow-root; margin: 0 0 24px; padding: 20px; background: #f3f7ff; border: 1px solid var(--ht-line); border-radius: 8px; }
.htechj-theme .obj_issue_toc > .heading::before,
.htechj-theme .obj_issue_toc > .heading::after { display: none; content: none; }
.htechj-theme .obj_issue_toc .heading > .cover { float: left; width: 150px; max-width: 30%; margin: 0 24px 14px 0; }
.htechj-theme .obj_issue_toc .heading > .cover img { display: block; width: 100%; height: auto; max-height: none; border-radius: 4px; }
.htechj-theme .obj_issue_toc .description { font-size: 14px; line-height: 1.8; }
.htechj-theme .obj_issue_toc .description p { line-height: 1.8; }
.htechj-theme .obj_issue_toc :is(.pub_id,.published) { margin: 14px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.htechj-theme .obj_issue_toc :is(.galleys,.section) { position: static; margin: 24px 0 0; padding: 0; }
.htechj-theme .obj_issue_toc :is(.galleys,.section)::before { content: none; display: none; }
.htechj-theme .obj_issue_toc :is(.galleys,.section) > :is(h2,h3,h4) {
  display: block;
  position: static;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--ht-gold);
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ht-ink);
}
.htechj-theme .obj_issue_toc .sections:not(:first-child) { margin-top: 26px; }
.htechj-theme .obj_issue_toc .articles { margin: 0; padding: 0; list-style: none; }
.htechj-theme .obj_issue_toc .articles > li { margin: 0; padding: 0; }
.htechj-theme .obj_issue_toc .ht-article { margin: 0; }

/* Keep native article semantics, metadata, citation tools and plugin hooks. */
.htechj-theme .obj_article_details { min-width: 0; max-width: 100%; }
.htechj-theme .obj_article_details > .page_title { margin: 0 0 12px; font-size: clamp(24px, 2.25vw, 34px); line-height: 1.4; font-weight: 800; letter-spacing: -.5px; }
.htechj-theme .obj_article_details > .subtitle { margin: 0 0 16px; color: var(--ht-muted); font-size: 18px; line-height: 1.6; }
.htechj-theme .obj_article_details > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  grid-template-areas: "article metadata";
  gap: 24px;
  align-items: start;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}
.htechj-theme .obj_article_details > .row::before,
.htechj-theme .obj_article_details > .row::after { content: none; display: none; }
.htechj-theme .obj_article_details > .row > .main_entry { grid-area: article; }
.htechj-theme .obj_article_details > .row > .entry_details { grid-area: metadata; }
.htechj-theme .obj_article_details :is(.main_entry,.entry_details) { float: none; width: auto; min-width: 0; max-width: 100%; margin: 0; padding: 0; border: 0; }
.htechj-theme .obj_article_details .main_entry > .item { margin: 0; padding: 20px 0; border: 0; border-bottom: 1px solid var(--ht-line); }
.htechj-theme .obj_article_details .main_entry > .item:first-child { padding-top: 0; }
.htechj-theme .obj_article_details .main_entry > .item:last-child { border-bottom: 0; }
.htechj-theme .obj_article_details .main_entry .item .label { margin: 0 0 12px; font-size: 18px; color: var(--ht-ink); }
.htechj-theme .obj_article_details .main_entry .item:is(.doi,.keywords) .label { display: block; margin: 0 0 6px; font-size: 13px; }
.htechj-theme .obj_article_details .authors li { margin: 0 0 14px; line-height: 1.65; }
.htechj-theme .obj_article_details .authors .name { color: var(--ht-ink); font-size: 14px; }
.htechj-theme .obj_article_details .authors .affiliation { display: block; color: var(--ht-muted); font-size: 12px; }
.htechj-theme .obj_article_details .authors .orcid { display: block; font-size: 11px; overflow-wrap: anywhere; }
.htechj-theme .obj_article_details .abstract { font-size: 14px; line-height: 1.9; }
.htechj-theme .obj_article_details .abstract p { margin: 0 0 15px; line-height: 1.9; }
.htechj-theme .obj_article_details .references { font-size: 12px; line-height: 1.85; }
.htechj-theme .obj_article_details .references p { margin: 0 0 16px; line-height: 1.85; overflow-wrap: anywhere; }
.htechj-theme .obj_article_details :is(.value,.doi,.pubid) { min-width: 0; overflow-wrap: anywhere; }
.htechj-theme .obj_article_details :is(canvas,iframe,video,svg) { max-width: 100%; }
.htechj-theme .obj_article_details canvas { height: auto; }
.htechj-theme .obj_article_details .entry_details { display: grid; gap: 14px; }
.htechj-theme .obj_article_details .entry_details > .item { margin: 0; padding: 16px; border: 1px solid var(--ht-line); border-radius: 7px; background: #f5f8ff; }
.htechj-theme .obj_article_details .entry_details .item .label { margin: 0 0 7px; font-size: 12px; font-weight: 800; color: var(--ht-ink); }
.htechj-theme .obj_article_details .entry_details .value { font-size: 12px; line-height: 1.8; }
.htechj-theme .obj_article_details .entry_details .cover_image { background: #fff; text-align: center; }
.htechj-theme .obj_article_details .cover_image img { display: block; width: auto; max-width: 100%; max-height: 220px; margin: 0 auto; }
.htechj-theme .obj_article_details .citation_formats_button { min-height: 42px; padding: 9px 28px 9px 10px; white-space: normal; line-height: 1.5; }
.htechj-theme .obj_article_details .citation_formats_list { max-width: 100%; }
.htechj-theme .ht-article-downloads { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 20px; padding: 16px; border: 1px solid var(--ht-line); border-left: 3px solid var(--ht-gold); border-radius: 6px; background: #f3f7ff; }
.htechj-theme .ht-article-downloads .galleys_links { align-self: auto; }
.htechj-theme .ht-article-downloads .obj_galley_link { min-height: 40px; padding: 8px 16px; font-size: 12px; }
.htechj-theme .ht-article-downloads .ht-metric { font-size: 10px; }
.htechj-theme .ht-article-downloads .ht-metric > span { position: static; width: auto; height: auto; margin: 0; padding: 0; clip: auto; overflow: visible; white-space: normal; }
.htechj-theme .ht-article-downloads .ht-metric strong { font-size: 12px; }

@media (min-width: 1001px) and (max-width: 1279px) {
  .htechj-theme .pkp_structure_content.has_sidebar { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
  .htechj-theme .obj_article_details > .row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "article" "metadata"; }
  .htechj-theme .obj_article_details .entry_details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .htechj-theme .pkp_structure_content.has_sidebar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "sidebar"; }
  .htechj-theme .pkp_structure_sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .htechj-theme .obj_article_details > .row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "article" "metadata"; gap: 24px; }
  .htechj-theme .obj_article_details .entry_details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .htechj-theme .obj_article_details .entry_details > :is(.citation,.copyright) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .htechj-theme .pkp_structure_content.has_sidebar { gap: 18px; }
  .htechj-theme .pkp_structure_main { padding: 18px 16px; }
  .htechj-theme .pkp_structure_main > .page > h1 { margin-bottom: 20px; font-size: 24px; }
  .htechj-theme .cmp_breadcrumbs { margin-bottom: 20px; font-size: 11px; line-height: 1.7; }
  .htechj-theme .pkp_structure_sidebar { grid-template-columns: minmax(0, 1fr); }
  .htechj-theme .page_issue_archive .issues_archive > li { padding: 14px; }
  .htechj-theme .obj_issue_summary .cover { width: 75px; margin-right: 14px; }
  .htechj-theme .obj_issue_summary h2 { font-size: 17px; }
  .htechj-theme .obj_issue_summary .series { font-size: 11px; }
  .htechj-theme .obj_issue_summary .description { clear: both; padding-top: 8px; font-size: 12px; }
  .htechj-theme .obj_issue_toc > .heading { padding: 14px; }
  .htechj-theme .obj_issue_toc .heading > .cover { width: 90px; margin-right: 16px; }
  .htechj-theme .obj_issue_toc .description { font-size: 13px; }
  .htechj-theme .obj_issue_toc .articles .ht-article { padding-right: 0; }
  .htechj-theme .obj_issue_toc .articles .ht-article .title { font-size: 14px; }
  .htechj-theme .obj_article_details > .page_title { font-size: 24px; letter-spacing: -.3px; }
  .htechj-theme .obj_article_details .abstract { text-align: start; }
  .htechj-theme .obj_article_details .entry_details { grid-template-columns: minmax(0, 1fr); }
  .htechj-theme .ht-article-downloads { padding: 12px; }
  .htechj-theme .ht-article-downloads .ht-article-metrics { gap: 10px; }
  .htechj-theme .ht-article-downloads .ht-metric { font-size: 9px; }
  .htechj-theme .page_contact .contact_section > :is(.primary,.support) { float: none; width: 100%; padding: 0; margin: 0 0 24px; }
}
@media print {
  .htechj-theme .pkp_structure_content.has_sidebar { display: block; }
  .htechj-theme .pkp_structure_sidebar { display: none; }
  .htechj-theme .obj_article_details > .row { display: block; }
  .htechj-theme .obj_article_details .entry_details { margin-top: 24px; }
}
