/* JQST – Journal of Quantum Science and Technology
   Orange identity, refreshed November 2026 (v2: one font, one structure on every page).
   Loaded after the bootstrap3 "united" preset. */

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

:root {
  --jq-orange: #d9530f;
  --jq-orange-deep: #b2430b;
  --jq-amber: #f59e0b;
  --jq-tint: #fdf6f0;
  --jq-tint-2: #fbe7d8;
  --jq-ink: #2b211c;
  --jq-muted: #6d5f57;
  --jq-line: #eadbd0;
  --jq-dark: #22170f;
  --jq-font: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --jq-radius: 8px;
}

/* One font everywhere */
html, body, h1, h2, h3, h4, h5, h6, p, li, td, th, a, button, input, select, textarea,
.btn, .navbar, .navbar-brand, .breadcrumb, .page-header, .media-heading, .title,
.pkp_block, .list-group-item, .panel, sup, label {
  font-family: var(--jq-font) !important;
}
#wordcloud text, .block_keyword_cloud text { font-family: var(--jq-font) !important; }

body {
  background: var(--jq-tint);
  color: var(--jq-ink);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}
.obj_article_details .abstract,
.obj_article_details .item > :last-child { text-align: justify; }
a { color: var(--jq-orange-deep); }
a:hover, a:focus { color: var(--jq-orange); }
h1, h2, h3, h4 { color: var(--jq-ink); font-weight: 700; letter-spacing: 0; }

/* Header */
#headerNavigationContainer.navbar-default {
  background: linear-gradient(110deg, var(--jq-orange-deep) 0%, var(--jq-orange) 60%, #e9701f 100%);
  border: 0; border-radius: 0; margin-bottom: 0;
  box-shadow: 0 3px 0 var(--jq-amber);
}
#headerNavigationContainer .navbar-brand {
  color: #fff !important; font-weight: 700; font-size: 22px;
  height: auto; padding-top: 16px; padding-bottom: 16px;
}
#headerNavigationContainer .navbar-nav > li > a, #navigationUser > li > a {
  color: #fff !important; font-weight: 600; font-size: 15px; border-radius: 6px;
}
#headerNavigationContainer .navbar-nav > li > a:hover,
#headerNavigationContainer .navbar-nav > .open > a,
#navigationUser > li > a:hover { background: rgba(255,255,255,.16) !important; }
#navigationUser { margin-top: 6px; }
#navigationUser > li > a { font-size: 13px; padding: 4px 12px; }
.navbar-default .navbar-toggle { border-color: rgba(255,255,255,.7); }
.navbar-default .navbar-toggle .icon-bar { background: #fff; }
.dropdown-menu { border: 0; border-top: 3px solid var(--jq-amber); border-radius: 0 0 var(--jq-radius) var(--jq-radius); box-shadow: 0 12px 28px rgba(43,33,28,.15); }
.dropdown-menu > li > a { padding: 8px 18px; color: var(--jq-ink); }
.dropdown-menu > li > a:hover { background: var(--jq-tint); color: var(--jq-orange-deep); }
.navbar-form .form-control { border: 0; border-radius: 6px 0 0 6px; }
.navbar-form .btn { background: var(--jq-dark); color: #fff; border: 0; border-radius: 0 6px 6px 0; }

/* Page structure: same box for content and every sidebar block */
.pkp_structure_content.container { padding-top: 28px; padding-bottom: 32px; }
.pkp_structure_main,
.pkp_structure_sidebar .pkp_block {
  background: #fff;
  border: 1px solid var(--jq-line);
  border-radius: var(--jq-radius);
}
.pkp_structure_main { padding: 28px 32px; }
@media (min-width: 992px) {
  .pkp_structure_content.container { display: flex !important; align-items: flex-start; gap: 24px; }
  .pkp_structure_content.container::before, .pkp_structure_content.container::after { display: none !important; }
  .pkp_structure_main.col-md-8 { flex: 1 1 auto; width: auto !important; float: none !important; margin: 0 !important; min-width: 0; }
  .pkp_structure_sidebar, .pkp_structure_sidebar.left { flex: 0 0 300px; width: 300px !important; float: none !important; margin: 0 !important; padding: 0 !important; position: static !important; }
}
@media (max-width: 991px) {
  .pkp_structure_main { width: 100% !important; float: none !important; margin-bottom: 20px; }
  .pkp_structure_sidebar { width: 100% !important; float: none !important; clear: both; padding: 0 !important; }
}
@media (max-width: 600px) {
  .pkp_structure_main { padding: 18px 16px; }
  #headerNavigationContainer .navbar-brand { font-size: 18px; }
}

/* Remove stray top gaps so content and sidebar start level */
.pkp_structure_main > .page > :first-child,
.pkp_structure_main .journal-description > :first-child,
.pkp_structure_main .page-header { margin-top: 0 !important; }
.journal-description > p:first-child:empty { display: none; }

/* Page titles and section headings (same on every page) */
.page-header h1, .page-header h2 { border: 0 !important; padding: 0 !important; margin: 0 !important; font-size: 28px; }
.page-header, .page h1, .page_index_journal h1 {
  font-size: 28px; line-height: 1.25; padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 2px solid var(--jq-ink);
}
.page h2, .current_issue > h2, .sections .section > h2, .issue-toc .section > h2 {
  font-size: 20px; text-transform: none; letter-spacing: 0; color: var(--jq-ink);
  border-bottom: 1px solid var(--jq-line); padding-bottom: 8px; margin: 26px 0 14px;
}
.page h3 { font-size: 18px; margin: 22px 0 10px; }
.breadcrumb { background: var(--jq-tint); border-radius: 6px; padding: 8px 14px; margin-bottom: 18px; font-size: 14px; }

/* Sidebar blocks: identical size and spacing */
.pkp_structure_sidebar .pkp_block {
  border-top: 3px solid var(--jq-orange);
  padding: 18px 20px;
  margin: 0 0 20px;
  overflow: hidden;
}
.pkp_structure_sidebar .pkp_block .title {
  font-size: 16px; font-weight: 700; color: var(--jq-ink); text-transform: none; letter-spacing: 0;
  margin: 0 0 12px; padding: 0 0 8px; background: none; border: 0; border-bottom: 1px solid var(--jq-line);
}
.pkp_structure_sidebar .pkp_block .content p { margin: 0 0 10px; }
.pkp_structure_sidebar .pkp_block img { max-width: 100%; height: auto; }
.pkp_structure_sidebar .pkp_block ul { margin: 0; padding: 0; list-style: none; }
.pkp_structure_sidebar .pkp_block ul li { border-bottom: 1px solid var(--jq-line); padding: 8px 0; }
.pkp_structure_sidebar .pkp_block ul li:last-child { border-bottom: 0; }

/* ISSN, visitors and logos: centred, even spacing */
#customblock-issn .content, #customblock-visitors .content, #customblock-find-us-at .content { text-align: center; }
#customblock-issn .content p:first-child { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
#customblock-issn .content img { display: block; margin: 0 auto 12px; }
#customblock-issn .content img[width="199"] { width: 180px; }
#customblock-issn .content img[width="186"] { width: 150px; }
#customblock-find-us-at .content p { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
#customblock-find-us-at .content img { display: block; height: 52px !important; width: auto !important; max-width: 100%; object-fit: contain; }
.block_keyword_cloud .content, #wordcloud { max-height: 240px; overflow: hidden; }

/* Homepage text */
.journal-description { font-size: 16px; }

/* Issue table of contents: plain list with dividers */
.issue-toc .article-summary, .media-list .article-summary, .current_issue .article-summary {
  border: 0; border-bottom: 1px solid var(--jq-line); border-radius: 0;
  background: none; padding: 16px 0; margin: 0;
}
.issue-toc .article-summary:last-child { border-bottom: 0; }
.article-summary .media-heading { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; }
.article-summary .media-heading a { color: var(--jq-ink); }
.article-summary .media-heading a:hover { color: var(--jq-orange-deep); }
.article-summary .meta, .article-summary .authors, .article-summary .pages { color: var(--jq-muted); font-size: 15px; }
.article-summary .btn-group, .article-summary .galleys_links { display: inline-flex !important; flex-wrap: wrap; gap: 8px; margin: 10px 8px 0 0; vertical-align: top; }

/* Buttons: one style */
.btn-primary, .galley-link.btn, .read-more.btn {
  background: var(--jq-orange); border: 1px solid var(--jq-orange); color: #fff;
  border-radius: 6px !important; font-weight: 600; font-size: 14px; padding: 6px 14px; margin: 0;
}
.btn-primary:hover, .galley-link.btn:hover { background: var(--jq-orange-deep); border-color: var(--jq-orange-deep); }
.btn-group > .btn { float: none; }
.btn-default { border-radius: 6px; }
.btn sup { top: -.3em; font-size: 11px; }

/* Article page */
.article-details .page-header { font-size: 28px; }
.article-details .row { display: flex; flex-wrap: wrap; }
.article-details .article-sidebar { padding-right: 20px; }
.article-sidebar .download .galley-link { display: block; width: 100%; text-align: center; margin-bottom: 10px; padding: 9px 14px; }
.article-sidebar .list-group { border-radius: var(--jq-radius); overflow: hidden; }
.article-sidebar .list-group-item { border-color: var(--jq-line); padding: 12px 14px; font-size: 15px; }
.article-sidebar .list-group-item .value { display: block; margin-top: 4px; color: var(--jq-muted); word-break: break-word; }
.article-main .authors { margin-bottom: 18px; }
.article-main .author { margin-bottom: 10px; }
.article-main .author strong { font-size: 17px; }
.article-author-affilitation { color: var(--jq-muted); }
.article-main .article-summary#summary { border: 0; background: none; padding: 0; margin: 0 0 18px; }
.article-main .article-summary#summary h2 { font-size: 20px; margin-top: 0; }
.article-more-details .panel { border-color: var(--jq-line); border-radius: var(--jq-radius); }
.article-more-details .panel-heading { background: var(--jq-tint); border-color: var(--jq-line); font-weight: 700; }
@media (max-width: 991px) {
  .article-details .article-sidebar, .article-details .col-md-8 { width: 100%; padding-right: 15px; }
}

/* Editorial team grid */
.jq-ed-head { font-size: 20px !important; border-bottom: 1px solid var(--jq-line); padding-bottom: 8px; margin: 26px 0 14px !important; }
.jq-ed-head:first-child { margin-top: 0 !important; }
.jq-ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.jq-ed-card { border: 1px solid var(--jq-line); border-left: 3px solid var(--jq-orange); border-radius: var(--jq-radius); padding: 12px 14px; background: #fff; }
.jq-ed-card p { margin: 0 0 3px; }
.jq-ed-name { font-weight: 700; font-size: 16px; color: var(--jq-ink); }
.jq-ed-line { font-size: 14.5px; color: var(--jq-muted); line-height: 1.45; }
.jq-ed-link { margin-top: 6px !important; font-size: 14px; }
@media (max-width: 700px) { .jq-ed-grid { grid-template-columns: 1fr; } }

/* Tables inside pages */
.page table, .myTable { width: 100%; border-collapse: collapse; margin: 12px 0 18px; }
.page table th, .page table td, .myTable th, .myTable td { border: 1px solid var(--jq-line); padding: 8px 12px; }
.page table th { background: var(--jq-tint); }

/* Footer */
.pkp_structure_footer_wrapper { background: var(--jq-dark); color: #eadfd7; border-top: 3px solid var(--jq-orange); }
.pkp_structure_footer { max-width: 1170px; margin: 0 auto; padding: 26px 15px; }
.pkp_footer_content a { color: #ffb47e; }
.pkp_footer_content a:hover { color: #fff; }
.pkp_footer_content .jq-foot-links { list-style: none; padding: 0; margin: 10px 0 0; }
.pkp_footer_content .jq-foot-links li { display: inline-block; margin: 0 14px 6px 0; }
.pkp_brand_footer { max-width: 1170px; margin: 0 auto; padding: 0 15px 20px; }
.pkp_brand_footer img { max-width: 110px; height: auto; filter: invert(1); opacity: .45; }

/* Section headings inside issue listings */
.issue-toc .page-header, .sections .page-header, .section .page-header, .current_issue .page-header {
  border-bottom: 1px solid var(--jq-line) !important; padding-bottom: 8px; margin: 22px 0 6px !important;
}
.issue-toc .page-header h2, .sections .page-header h2, .issue-toc h2 small, .sections h2 small, .page-header h2 small {
  font-size: 20px !important; font-weight: 700; color: var(--jq-ink) !important; text-transform: none; letter-spacing: 0;
}

/* Homepage: no gap above the description */
.page_index_journal .journal-description { margin-top: 0 !important; }

/* JQST seal next to the journal name in the header */
#headerNavigationContainer .navbar-brand { display: inline-flex; align-items: center; gap: 12px; }
#headerNavigationContainer .navbar-brand::before {
  content: ""; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  background: #fff url("https://jqst.org/public/site/images/editor/jqst-logo-80d18388ce01ec88f2d6a11fe8f3419a.png") center / 46px 46px no-repeat;
  box-shadow: 0 0 0 2px rgba(255,255,255,.55);
}
@media (max-width: 600px) {
  #headerNavigationContainer .navbar-brand::before { width: 40px; height: 40px; background-size: 35px 35px; }
}

/* Subject areas block */
#customblock-subject-areas ul li a { color: var(--jq-ink); }
#customblock-subject-areas ul li a:hover { color: var(--jq-orange-deep); }

/* Forms: full-width fields (register, login, search) */
.pkp_structure_main .form-control { width: 100%; max-width: 480px; border-color: var(--jq-line); border-radius: 6px; }
.pkp_structure_main select.form-control { max-width: 480px; }
.pkp_structure_main .btn-default, .page_search .btn, .page_login .btn-default, .page_register .btn-default {
  background: #fff; color: var(--jq-orange-deep); border: 1px solid var(--jq-orange); font-weight: 600;
}
.pkp_structure_main .btn-default:hover { background: var(--jq-tint); color: var(--jq-orange-deep); }
.page_search .search_input .btn, .page_search button[type=submit] { background: var(--jq-orange); color: #fff; }

/* Issue title added by script */
.jq-issue-title { margin-top: 0 !important; }

/* Register / login fields full width */
.page_register input[type=text], .page_register input[type=email], .page_register input[type=password], .page_register select,
.page_login input[type=text], .page_login input[type=password], .page_lost_password input[type=email] {
  width: 100% !important; max-width: 480px; padding: 7px 10px; border: 1px solid var(--jq-line); border-radius: 6px;
}

/* Covers: sensible size */
.issue-toc .heading .thumbnail img, .issue-toc .cover img { max-width: 230px; height: auto; }
.article-details .cover-image img, .article-sidebar img.img-responsive { max-width: 230px; height: auto; display: block; margin: 0 auto 12px; }

/* Tables on phones scroll instead of overflowing */
@media (max-width: 600px) {
  .page table, .myTable { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .issue-toc .heading .thumbnail img, .article-sidebar img.img-responsive { max-width: 170px; }
}

/* Register form: labels wrap inputs, so labels must be full width */
.pkp_form .form-group label, .page_register .form-group label, .page_login .form-group label { display: block; width: 100%; max-width: 480px; }

/* ===== v3 (2 Nov 2026, OM review) ===== */

/* Header: brand + search on one line, menu on its own clean row */
#headerNavigationContainer > .container-fluid { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
#headerNavigationContainer .navbar-brand { line-height: 1.2; white-space: nowrap; font-size: 22px; padding: 14px 0; margin: 0 !important; }
@media (min-width: 768px) {
  #headerNavigationContainer > .container-fluid:nth-of-type(2) { display: flex; flex-wrap: wrap; align-items: center; }
  #headerNavigationContainer > .container-fluid:nth-of-type(2)::before,
  #headerNavigationContainer > .container-fluid:nth-of-type(2)::after { display: none; }
  #headerNavigationContainer .navbar-header { float: none; flex: 1 1 auto; display: flex; align-items: center; }
  #headerNavigationContainer #nav-menu { display: contents !important; }
  #headerNavigationContainer .pull-md-right { order: 2; float: none !important; margin-left: auto; }
  #headerNavigationContainer .navbar-form { margin: 0; padding: 0; border: 0; box-shadow: none; display: flex; }
  #headerNavigationContainer .navbar-form .form-group { margin: 0; }
  #headerNavigationContainer .navbar-form .form-control { width: 240px; height: 36px; }
  #headerNavigationContainer .navbar-form .btn { height: 36px; }
  #headerNavigationContainer #main-navigation {
    order: 3; flex: 0 0 100%; float: none; display: flex; flex-wrap: wrap; align-items: center; margin: 6px 0 0;
    border-top: 1px solid rgba(255,255,255,.28);
  }
  #headerNavigationContainer #main-navigation > li { float: none; }
  #headerNavigationContainer #main-navigation > li > a { padding: 12px 14px; line-height: 20px; border-radius: 0; }
  #navigationUser { margin: 6px 0 0; }
}
@media (max-width: 767px) {
  #headerNavigationContainer .navbar-brand { white-space: normal; font-size: 17px; padding: 10px 0; }
  #headerNavigationContainer .navbar-header { display: flex; align-items: center; justify-content: space-between; }
  #headerNavigationContainer .navbar-toggle { order: 2; margin: 8px 0; }
}

/* Facts strip under the header */
.jq-facts { background: #fff; border-bottom: 1px solid var(--jq-line); }
.jq-facts-inner { max-width: 1170px; margin: 0 auto; padding: 0 15px; display: grid; grid-template-columns: repeat(6, 1fr); }
.jq-fact { padding: 12px 14px; border-right: 1px solid var(--jq-line); }
.jq-fact:first-child { padding-left: 0; }
.jq-fact:last-child { border-right: 0; }
.jq-fact-l { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--jq-muted); }
.jq-fact-v { display: block; font-weight: 700; font-size: 15px; color: var(--jq-ink); }
@media (max-width: 900px) { .jq-facts-inner { grid-template-columns: repeat(3, 1fr); } .jq-fact:nth-child(3) { border-right: 0; } .jq-fact:nth-child(4) { padding-left: 0; } }
@media (max-width: 480px) { .jq-facts-inner { grid-template-columns: repeat(2, 1fr); } .jq-fact { padding: 10px 8px; } .jq-fact:nth-child(odd) { padding-left: 0; } .jq-fact:nth-child(even) { border-right: 0; } }

/* Sidebar cards: lists flush left, no stray lines */
.pkp_structure_sidebar .pkp_block .content ul, .pkp_structure_sidebar .pkp_block .content ol { margin: 0; padding: 0; }
.pkp_structure_sidebar .pkp_block .content ol { padding-left: 18px; list-style: decimal; }
.pkp_structure_sidebar .pkp_block .content ol li { border: 0; padding: 3px 0; }
.pkp_structure_sidebar .pkp_block .content ul li:first-child { border-top: 0; }
.pkp_structure_sidebar .pkp_block .content ul li { padding: 7px 0; }
#customblock-publish-with-jqst { background: var(--jq-tint-2); border-color: var(--jq-tint-2); }
.jq-cta, .jq-cta-outline { display: block; text-align: center; border-radius: 6px; padding: 9px 12px; font-weight: 700; text-decoration: none !important; }
.jq-cta { background: var(--jq-orange); color: #fff !important; }
.jq-cta:hover { background: var(--jq-orange-deep); }
.jq-cta-outline { background: #fff; color: var(--jq-orange-deep) !important; border: 1px solid var(--jq-orange); }
#customblock-publish-with-jqst .content p:last-child { margin-bottom: 0; }

/* Footer: no platform logo */
.pkp_brand_footer { display: none !important; }

/* Views counter + PDF button: same height, one line */
.article-summary .cmp_button_wire, .article-summary .btn-group { vertical-align: middle; margin: 10px 8px 0 0 !important; }
.article-summary .cmp_button_wire {
  display: inline-flex !important; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  background: #fff !important; color: var(--jq-muted) !important; border: 1px solid var(--jq-line) !important;
  border-radius: 6px !important; font-weight: 600; font-size: 14px; cursor: default; box-shadow: none;
}
.article-summary .cmp_button_wire svg { width: 15px; height: 15px; }
.article-summary .btn-group { display: inline-flex !important; gap: 6px; }
.galley-link.btn { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 14px !important; line-height: 1; }
.galley-link.btn sup { position: static; top: 0; font-size: 12px; font-weight: 600; vertical-align: baseline; }
.article-sidebar .download .galley-link.btn { display: flex; justify-content: center; height: 40px; }

/* Covers removed from view: clean issue cards instead */
.issue-summary .media-left, .issue-toc .heading .thumbnail, .article-details .cover-image { display: none !important; }
.issue-toc .heading .issue-details { width: 100%; }
.page_issue_archive .issues.media-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.page_issue_archive .issue-summary { margin: 0; border: 1px solid var(--jq-line); border-left: 4px solid var(--jq-orange); border-radius: 8px; padding: 14px 16px; background: #fff; }
.page_issue_archive .issue-summary .media-heading { margin: 0; font-size: 18px; }
.page_issue_archive .issue-summary .media-heading .title { color: var(--jq-ink); font-weight: 700; }
.page_issue_archive .issue-summary .media-heading .title:hover { color: var(--jq-orange-deep); }
.page_issue_archive .issue-summary .series { font-size: 14px; color: var(--jq-muted); margin: 4px 0 0; }
.page_issue_archive .issue-summary .description:empty { display: none; }
@media (max-width: 600px) { .page_issue_archive .issues.media-list { grid-template-columns: 1fr; } }

/* Journal details on the homepage: label / value table */
.jq-details-head { font-size: 18px !important; margin: 24px 0 10px !important; border-bottom: 1px solid var(--jq-line); padding-bottom: 6px; }
.jq-attention { background: var(--jq-tint); border-left: 3px solid var(--jq-amber); padding: 10px 14px; border-radius: 0 6px 6px 0; }
table.jq-details { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
table.jq-details th, table.jq-details td { border: 0 !important; border-bottom: 1px solid var(--jq-line) !important; padding: 7px 10px; vertical-align: top; text-align: left; }
table.jq-details th { width: 34%; background: none !important; color: var(--jq-muted); font-weight: 600; }
@media (max-width: 600px) { table.jq-details { display: table !important; } table.jq-details th { width: 42%; } }

/* Hidden galleys (certificates, letters) stay hidden */
.jq-hidden, .galley-link.jq-hidden { display: none !important; }
/* Small fixes */
.read-more .glyphicon { display: none; }
.page_issue_archive .issue-summary .media-heading { border: 0 !important; padding: 0 !important; }

/* Contact page: phone and email aligned with names */
.page_contact .contact .phone, .page_contact .contact .email, .page_contact .contact .name { display: block; margin: 0 0 2px; padding: 0; }
.page_contact .contact .phone .label { display: none; }

/* ===== v4 front page (2 Nov 2026) ===== */
/* Title band */
.jq-hero { background: linear-gradient(180deg, var(--jq-tint-2) 0%, var(--jq-tint) 100%); border-bottom: 1px solid var(--jq-line); }
.jq-hero-inner { max-width: 1170px; margin: 0 auto; padding: 26px 15px 14px; display: grid; grid-template-columns: 110px 1fr auto; gap: 22px; align-items: center; }
.jq-hero-seal { width: 110px; height: 110px; border-radius: 50%; background: #fff; padding: 6px; box-shadow: 0 0 0 1px var(--jq-line); }
.jq-hero-k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--jq-orange-deep); font-weight: 700; }
.jq-hero-title { font-size: 32px; line-height: 1.15; font-weight: 700; color: var(--jq-ink); margin: 4px 0 6px; }
.jq-hero-tag { margin: 0 0 10px; color: var(--jq-muted); font-size: 16px; }
.jq-badges span { display: inline-block; font-size: 13px; padding: 3px 10px; margin: 0 6px 6px 0; border: 1px solid var(--jq-line); background: #fff; border-radius: 4px; }
.jq-badges span:first-child { background: #e8f5e9; border-color: #cfe8d1; color: #1e6b2b; }
.jq-hero-actions { display: flex; flex-direction: column; gap: 8px; min-width: 210px; }
.jq-hero-search { max-width: 1170px; margin: 0 auto; padding: 0 15px 22px; display: flex; }
.jq-hero-search input { flex: 1; height: 42px; border: 1px solid var(--jq-line); border-right: 0; border-radius: 6px 0 0 6px; padding: 0 14px; font-size: 15px; }
.jq-hero-search button { height: 42px; padding: 0 20px; border: 0; border-radius: 0 6px 6px 0; background: var(--jq-orange); color: #fff; font-weight: 700; }
@media (max-width: 900px) {
  .jq-hero-inner { grid-template-columns: 72px 1fr; }
  .jq-hero-seal { width: 72px; height: 72px; }
  .jq-hero-title { font-size: 24px; }
  .jq-hero-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .jq-hero-actions a { flex: 1 1 160px; }
}

/* Homepage sections */
.page_index_journal .jq-lead { font-size: 17px; line-height: 1.6; }
.jq-more { font-size: 15px; margin: 6px 0 18px; }
.jq-sec { font-size: 20px !important; margin: 26px 0 12px !important; border-bottom: 1px solid var(--jq-line); padding-bottom: 8px; }
.jq-cfp { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--jq-tint); border: 1px solid var(--jq-line); border-left: 4px solid var(--jq-amber); border-radius: 8px; padding: 12px 16px; }
.jq-cfp-k { font-weight: 700; color: var(--jq-orange-deep); margin-right: 6px; }
.jq-cta-inline { background: var(--jq-orange); color: #fff !important; padding: 8px 16px; border-radius: 6px; font-weight: 700; white-space: nowrap; text-decoration: none !important; }
.jq-tiles { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.jq-tile { border: 1px solid var(--jq-line); border-top: 3px solid var(--jq-orange); border-radius: 8px; padding: 12px 14px; background: #fff; }
.jq-tile strong { display: block; font-size: 18px; color: var(--jq-ink); }
.jq-tile span { display: block; font-size: 14px; color: var(--jq-muted); line-height: 1.4; margin-top: 2px; }
.jq-steps { list-style: none; counter-reset: s; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.jq-steps li { counter-increment: s; flex: 1 1 140px; background: #fff; border: 1px solid var(--jq-line); border-radius: 8px; padding: 10px 12px; font-weight: 600; position: relative; }
.jq-steps li::before { content: counter(s); display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; background: var(--jq-orange); color: #fff; font-size: 13px; margin-right: 8px; }
.jq-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.jq-tag { display: inline-block; padding: 5px 12px; border: 1px solid var(--jq-line); border-radius: 4px; background: #fff; color: var(--jq-ink) !important; font-size: 14px; text-decoration: none !important; }
.jq-tag:hover { border-color: var(--jq-orange); color: var(--jq-orange-deep) !important; }
@media (max-width: 700px) { .jq-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Current issue on the homepage */
.page_index_journal .current_issue { margin-top: 28px; }
.page_index_journal .current_issue > h2 { font-size: 20px; }
.page_index_journal .current_issue .read-more { margin-top: 14px; }

/* After the current issue: Editor-in-Chief, most read, trust */
.jq-eic { margin-top: 26px; border: 1px solid var(--jq-line); border-left: 4px solid var(--jq-orange); border-radius: 8px; padding: 16px 18px; background: #fff; }
.jq-eic-k { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--jq-orange-deep); font-weight: 700; }
.jq-eic strong { display: block; font-size: 18px; margin-top: 2px; }
.jq-eic-a { display: block; color: var(--jq-muted); }
.jq-eic p { margin: 8px 0; }
.jq-mostread { padding-left: 20px; margin: 0; }
.jq-mostread li { padding: 6px 0; border-bottom: 1px solid var(--jq-line); }
.jq-mostread li a { color: var(--jq-ink); font-weight: 600; }
.jq-mostread li a:hover { color: var(--jq-orange-deep); }
.jq-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jq-trust span { font-size: 13px; padding: 6px 10px; border-radius: 4px; background: var(--jq-tint); border: 1px solid var(--jq-line); }

/* Announcements on the homepage */
.page_index_journal .cmp_announcements { margin: 24px 0; }
.page_index_journal .cmp_announcements .obj_announcement_summary, .page_index_journal .cmp_announcements .media { border-bottom: 1px solid var(--jq-line); padding: 10px 0; margin: 0; }
.page_index_journal .cmp_announcements h3, .page_index_journal .cmp_announcements h2 { font-size: 17px; margin: 0 0 4px; }

/* Footer: three columns + visitors */
.jq-foot { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) 220px; gap: 24px; }
.jq-foot h4 { color: #fff; font-size: 15px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.jq-foot ul { list-style: none; padding: 0; margin: 0; }
.jq-foot li { padding: 3px 0; }
.jq-foot-visitors img { max-width: 100%; height: auto; border-radius: 4px; }
.jq-foot-line { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; }
@media (max-width: 800px) { .jq-foot { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Phones: facts strip as one sliding row */
@media (max-width: 600px) {
  .jq-facts-inner { display: flex !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding: 0 15px; }
  .jq-fact { flex: 0 0 auto; padding: 10px 14px !important; border-right: 1px solid var(--jq-line) !important; scroll-snap-align: start; }
  .jq-fact:first-child { padding-left: 0 !important; }
}

/* Homepage only: avoid duplicates of the title band */
.pkp_page_index #customblock-publish-with-jqst { display: none; }
@media (min-width: 768px) { .pkp_page_index #headerNavigationContainer .pull-md-right { display: none; } }
/* Announcements: no broken icon, light heading rule */
.cmp_announcements .glyphicon, .obj_announcement_summary .glyphicon { display: none; }
.page_index_journal .cmp_announcements .page-header, .page_index_journal .cmp_announcements > h2 { border-bottom: 1px solid var(--jq-line) !important; font-size: 20px; }

/* Trust strip: even grid, no single item left on its own line */
.jq-trust { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.jq-trust span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; }
@media (max-width: 700px) { .jq-trust { grid-template-columns: repeat(2, minmax(0,1fr)); } }
/* Find us at: logos on one even row */
#customblock-find-us-at .content { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
#customblock-find-us-at .content p { margin: 0 !important; display: contents; }
#customblock-find-us-at .content img { height: 40px !important; width: auto !important; max-width: 46%; }

/* Submit Your Paper page */
.jq-sub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 20px; }
.jq-btn-outline { display: inline-block; padding: 8px 16px; border: 1px solid var(--jq-orange); border-radius: 6px; color: var(--jq-orange-deep) !important; font-weight: 700; background: #fff; text-decoration: none !important; }
.jq-btn-outline:hover { background: var(--jq-tint); }

/* Submissions page: checklist intro same size as other text */
.page_submissions .lead, .page_submissions .submission_checklist > p, .page_submissions .description { font-size: 16px !important; line-height: 1.6; }

/* Contact page: emails and phones first, postal address last and small (home address, post only) */
.page_contact .contact_section { display: flex; flex-direction: column; }
.page_contact .contact_section .address { order: 9; margin-top: 18px; padding-top: 12px; border-top: 1px solid #eadfd6; font-size: 14px; color: #6b5a50; }

/* ===== review round (OM, 2 Nov evening) ===== */
/* Logo only once: no seal in the header; name as text */
#headerNavigationContainer .navbar-brand::before { display: none !important; content: none !important; }
#headerNavigationContainer .navbar-brand { gap: 0; }
/* no seal in the sidebar ISSN box (seal stays only in the homepage title band) */
#customblock-issn img[src*="jqst-logo"] { display: none !important; }
#customblock-issn .content img { height: 36px; width: auto !important; margin: 4px auto 0; }

/* Title band: quantum-style pattern (orbits + dots) in orange tones */
.jq-hero {
  position: relative; overflow: hidden;
  background-color: #fff3e8;
  background-image:
    radial-gradient(rgba(214,92,18,0.16) 1.4px, transparent 1.6px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='260' viewBox='0 0 520 260'%3E%3Cg fill='none' stroke='%23e0782f' stroke-opacity='0.22' stroke-width='1.2'%3E%3Cellipse cx='430' cy='130' rx='150' ry='48' transform='rotate(-20 430 130)'/%3E%3Cellipse cx='430' cy='130' rx='150' ry='48' transform='rotate(40 430 130)'/%3E%3Cellipse cx='430' cy='130' rx='150' ry='48' transform='rotate(100 430 130)'/%3E%3C/g%3E%3Ccircle cx='430' cy='130' r='9' fill='%23e0782f' fill-opacity='0.25'/%3E%3Ccircle cx='296' cy='92' r='4' fill='%23e0782f' fill-opacity='0.35'/%3E%3Ccircle cx='520' cy='210' r='4' fill='%23e0782f' fill-opacity='0.35'/%3E%3C/svg%3E"),
    linear-gradient(120deg, #fff8f1 0%, #ffe9d6 100%);
  background-size: 18px 18px, 520px 260px, 100% 100%;
  background-position: 0 0, right -40px center, 0 0;
  background-repeat: repeat, no-repeat, no-repeat;
}
.jq-hero-seal { background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 4px 14px rgba(150,60,10,0.12), 0 0 0 1px var(--jq-line); }

/* Find us at: small logos, one height, tidy row */
#customblock-find-us-at .content p { gap: 10px 14px; justify-content: flex-start; }
#customblock-find-us-at .content img { height: 32px !important; width: auto !important; max-width: 120px; }

/* Sidebar submit buttons: same width and left edge as the text */
#customblock-publish-with-jqst .content { padding-left: 0 !important; padding-right: 0 !important; }
#customblock-publish-with-jqst .content p { margin: 0 0 10px; }
.jq-cta, .jq-cta-outline { width: 100%; box-sizing: border-box; margin: 0 0 8px; }

/* Inner pages: same dotted quantum pattern as a band behind the top of the white page box */
body:not(.pkp_page_index) .pkp_structure_content { position: relative; isolation: isolate; padding-top: 30px; }
body:not(.pkp_page_index) .pkp_structure_content::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 230px;
  background-color: #fff3e8;
  background-image:
    radial-gradient(rgba(214,92,18,0.16) 1.4px, transparent 1.6px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='260' viewBox='0 0 520 260'%3E%3Cg fill='none' stroke='%23e0782f' stroke-opacity='0.2' stroke-width='1.2'%3E%3Cellipse cx='430' cy='130' rx='150' ry='48' transform='rotate(-20 430 130)'/%3E%3Cellipse cx='430' cy='130' rx='150' ry='48' transform='rotate(40 430 130)'/%3E%3Cellipse cx='430' cy='130' rx='150' ry='48' transform='rotate(100 430 130)'/%3E%3C/g%3E%3Ccircle cx='430' cy='130' r='9' fill='%23e0782f' fill-opacity='0.22'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #ffe9d6 0%, #fff3e8 70%, rgba(255,243,232,0) 100%);
  background-size: 18px 18px, 520px 260px, 100% 100%;
  background-position: 0 0, right -60px top -20px, 0 0;
  background-repeat: repeat, no-repeat, no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
body:not(.pkp_page_index) .pkp_structure_main, body:not(.pkp_page_index) .pkp_structure_sidebar .pkp_block { box-shadow: 0 6px 22px rgba(150,60,10,0.08); }
@media (max-width: 767px) { body:not(.pkp_page_index) .pkp_structure_content { padding-top: 18px; } body:not(.pkp_page_index) .pkp_structure_content::before { height: 160px; } }

/* Archives: title above the cards, even gaps */
.page_issue_archive .jq-archive-title { margin: 4px 0 16px; }
.page_issue_archive .issues_archive, .page_issue_archive .issue-summary { margin-top: 0; }

/* Contact page: Principal and Support contacts as two cards, post-only address below */
.page_contact .contact_section { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px; }
.page_contact .contact_section .contact { margin: 0 !important; padding: 16px 18px; border: 1px solid var(--jq-line); border-left: 4px solid var(--jq-orange); border-radius: 8px; background: #fff; }
.page_contact .contact_section .contact h3 { margin: 0 0 8px; font-size: 17px; }
.page_contact .contact_section .address { grid-column: 1 / -1; order: 9; margin-top: 4px !important; }
@media (max-width: 767px) { .page_contact .contact_section { grid-template-columns: 1fr; } }

/* OM correction: small seal next to the journal name in the header on every page */
#headerNavigationContainer .navbar-brand { display: inline-flex !important; align-items: center; gap: 12px; }
#headerNavigationContainer .navbar-brand::before {
  display: block !important; content: "" !important; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: #fff url("https://jqst.org/public/site/images/editor/jqst-logo-80d18388ce01ec88f2d6a11fe8f3419a.png") center / 39px 39px no-repeat;
  box-shadow: 0 0 0 2px rgba(255,255,255,.55);
}
@media (max-width: 600px) { #headerNavigationContainer .navbar-brand::before { width: 34px; height: 34px; background-size: 30px 30px; } }

/* Page check fixes: long links in references wrap; wide tables scroll inside their box on phones */
.obj_article_details a, .article-details a, .item.references, .references, .article-details .references, .csl-entry { overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 767px) {
  .pkp_structure_main table:not(.sj-table) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
}

/* facts strip: side-scroll stays inside the strip */
.jq-facts { max-width: 100vw; overflow: hidden; }
@media (max-width: 767px) { .jq-facts-inner { overflow-x: auto; } }

/* safety net: no sideways page scroll on phones */
html, body { overflow-x: hidden; max-width: 100%; }

.page_contact .contact_section::before, .page_contact .contact_section::after { display: none !important; content: none !important; }

/* Sidebar: Find us at as an even 2x2 grid; ISSN box centred */
.jq-logo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.jq-logo-cell { display: flex; align-items: center; justify-content: center; height: 56px; border: 1px solid var(--jq-line); border-radius: 8px; background: #fff; padding: 6px; }
.jq-logo-cell a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
#customblock-find-us-at .jq-logo-cell img { height: 38px !important; max-height: 38px; width: auto !important; max-width: 100% !important; object-fit: contain; margin: 0 !important; display: block; }
#customblock-find-us-at .content { display: block !important; }

/* One type scale on all content pages */
.pkp_structure_main .page p, .pkp_structure_main .page li, .pkp_structure_main .page td { font-size: 16px; line-height: 1.6; }
.pkp_structure_main .page h2 { font-size: 22px !important; font-weight: 700; }
.pkp_structure_main .page h3 { font-size: 18.5px !important; font-weight: 600; }
.pkp_structure_main .page h4, .pkp_structure_main .page h5, .pkp_structure_main .page h6 { font-size: 17px !important; font-weight: 600; }
.pkp_structure_main .page > ol > li > strong:first-child, .pkp_structure_main .page > ol > li::marker { font-size: 18.5px; font-weight: 700; }

/* Dotted quantum pattern behind the white content box on every page */
body, .pkp_structure_page {
  background-color: #fff6ee !important;
  background-image: radial-gradient(rgba(214,92,18,0.13) 1.4px, transparent 1.6px) !important;
  background-size: 18px 18px !important;
}

/* Contrast fixes from the page check */
.breadcrumb > .active, .cmp_breadcrumbs .active { color: #5a4636 !important; }
.obj_galley_link sup, .galley-link sup, a.obj_galley_link sup, .btn sup { color: inherit !important; opacity: 1 !important; }
.page_submissions .cmp_notification, .page_submissions .alert, .page_submissions .alert-info { color: #1f3b57 !important; background: #e9f2fb !important; border-color: #c9dcef !important; }

.cmp_notification, .search_results .cmp_notification, .page_search .cmp_notification { color: #1f3b57 !important; background: #fff !important; }

/* dotted pattern a little stronger so it reads on every page */
body, .pkp_structure_page { background-image: radial-gradient(rgba(214,92,18,0.22) 1.5px, transparent 1.7px) !important; }
