/* ==============================================================
   Proceedings of the Lancaster University Education Conference
   OJS Default Theme — Version 8, site-wide content link colours (Nov 2026)

   Scope: homepage introduction, current-volume heading,
   issue tables of contents, individual article pages,
   custom "Browse the Proceedings" sidebar, and header masthead.

   Lancaster primary colours:
   red  #B5121B  |  dark grey #555656

   This stylesheet assumes that the Custom Block Manager content
   contains <nav class="lue-volume-links"> ... </nav>.
   No changes to OJS templates or article metadata are required.
   ============================================================== */

:root {
  --lue-red: #B5121B;
  --lue-grey: #555656;
  --lue-text: #2D3031;
  --lue-pale: #F7F7F7;
  --lue-border: #D8D9DA;
}

/* 1. Journal introduction: give the existing Journal Summary
   a clear editorial identity without changing its content. */
.pkp_page_index .homepage_about {
  margin-bottom: 2rem;
  padding: 1.65rem 1.65rem 1.5rem;
  background: var(--lue-pale);
  border-left: 4px solid var(--lue-red);
}

.pkp_page_index .homepage_about h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--lue-grey);
  line-height: 1.25;
}

.pkp_page_index .homepage_about p {
  line-height: 1.65;
}

.pkp_page_index .homepage_about a {
  color: var(--lue-red);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* 2. Give the automatically generated current-volume heading
   a restrained accent, preserving OJS's table of contents. */
.pkp_page_index .current_issue > h2 {
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--lue-red);
  color: var(--lue-grey);
}

/* 3. Sidebar navigation; scope everything to the custom block
   so other OJS sidebar blocks remain untouched. */
.pkp_block .lue-volume-links {
  padding: 1.05rem;
  background: #FFFFFF;
  border: 1px solid var(--lue-border);
  border-top: 4px solid var(--lue-red);
  border-radius: 3px;
  color: var(--lue-text);
}

.pkp_block .lue-volume-links h2 {
  display: block;
  margin: 0 0 0.55rem;
  color: var(--lue-grey);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
}

.pkp_block .lue-volume-links > p {
  margin: 0 0 0.9rem;
  font-size: 0.94rem;
  line-height: 1.5;
}

.pkp_block .lue-volume-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pkp_block .content .lue-volume-links ul li {
  margin: 0 0 0.5rem;
  padding: 0;
  line-height: 1.35;
}

.pkp_block .lue-volume-links li a {
  display: block;
  padding: 0.72rem 0.82rem;
  color: var(--lue-text);
  background: var(--lue-pale);
  border: 1px solid var(--lue-border);
  border-left: 3px solid var(--lue-red);
  border-radius: 2px;
  font-size: 0.94rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.pkp_block .lue-volume-links li a strong {
  color: var(--lue-red);
  font-weight: 700;
}

.pkp_block .lue-volume-links li a:hover {
  background: #FFFFFF;
  border-color: var(--lue-red);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.pkp_block .lue-volume-links > p:last-child {
  margin: 0.95rem 0 0;
  font-size: 0.9rem;
}

.pkp_block .lue-volume-links > p:last-child a {
  color: var(--lue-red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* 4. Visible keyboard focus, with no reliance on hover. */
.pkp_block .lue-volume-links a:focus-visible,
.pkp_page_index .homepage_about a:focus-visible {
  outline: 3px solid var(--lue-red);
  outline-offset: 3px;
}

/* 5. Tight screens: keep the summary and sidebar comfortable. */
@media (max-width: 600px) {
  .pkp_page_index .homepage_about {
    padding: 1.2rem 1rem;
  }
  .pkp_block .lue-volume-links {
    padding: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pkp_block .lue-volume-links li a {
    transition: none;
  }
}


/* 6. Header masthead (works with original logo).
   OJS Default theme normally limits a header image to 80px high
   on desktop. This wide, cropped masthead needs a little more room.
   Do not stretch it: keep its original proportions. */
@media (min-width: 992px) {
  .pkp_site_name .is_img img {
    max-height: 118px;
    max-width: 100%;
    width: auto;
    height: auto;
  }
}

/* The mobile OJS header has a fixed-height menu bar.
   Keep the image small enough not to overlap the menu toggle. */
@media (max-width: 991px) {
  .pkp_site_name .is_img img {
    max-height: 42px;
    max-width: 100%;
    width: auto;
    height: auto;
  }
}

/* Keep the logo link's keyboard focus visible. */
.pkp_site_name .is_img:focus-visible {
  outline: 3px solid var(--lue-red);
  outline-offset: 3px;
}

/* ==============================================================
   7. Issue tables of contents — new in Version 3
   A restrained, readable list; used on the homepage and issue pages.
   These selectors do not alter the individual article-detail pages.
   ============================================================== */

/* Distinguish successive papers without making them look like adverts. */
.obj_issue_toc .articles > li {
  margin: 0;
  padding: 1.25rem 0 1.35rem;
  border-bottom: 1px solid var(--lue-border);
}

.obj_issue_toc .articles > li:first-child {
  padding-top: 0.55rem;
}

.obj_issue_toc .articles > li:last-child {
  border-bottom: 0;
}

/* Give titles stronger typographic hierarchy and comfortable wrapping. */
.obj_issue_toc .obj_article_summary > .title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

.obj_issue_toc .obj_article_summary > .title a {
  color: var(--lue-text);
  text-decoration: none;
}

.obj_issue_toc .obj_article_summary > .title a:hover {
  color: var(--lue-red);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

/* Authors are secondary information but still clearly legible. */
.obj_issue_toc .obj_article_summary .meta {
  margin-top: 0.2rem;
  padding-top: 0.15rem;
  color: var(--lue-grey);
  font-size: 0.93rem;
  line-height: 1.5;
}

/* Keep downloads visibly actionable without bulky coloured buttons. */
.obj_issue_toc .obj_article_summary .galleys_links {
  margin-top: 0.65rem;
}

.obj_issue_toc .obj_article_summary .galleys_links .obj_galley_link {
  border-color: var(--lue-red);
  color: var(--lue-red);
  font-weight: 600;
  text-decoration: none;
}

.obj_issue_toc .obj_article_summary .galleys_links .obj_galley_link:hover {
  background-color: var(--lue-red);
  border-color: var(--lue-red);
  color: #fff;
}

.obj_issue_toc .obj_article_summary a:focus-visible {
  outline: 3px solid var(--lue-red);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .obj_issue_toc .articles > li {
    padding-top: 1rem;
    padding-bottom: 1.1rem;
  }
  .obj_issue_toc .obj_article_summary > .title {
    font-size: 1rem;
  }
}

/* ==============================================================
   8. Individual article pages — new in Version 5 (Nov 2026)
   Restrained typographic refinements for the OJS Default theme.
   Scoped to .page_article; does not change issue lists or homepage.
   ============================================================== */

/* Emphasise the paper title without turning long headings red. */
.page_article .obj_article_details > .page_title {
  color: var(--lue-text);
  line-height: 1.28;
  letter-spacing: -0.012em;
  margin-bottom: 1.3rem;
}

/* Give author names a little more presence, keeping affiliations secondary. */
.page_article .obj_article_details .main_entry > .authors .name {
  color: var(--lue-text);
  font-weight: 600;
}

.page_article .obj_article_details .main_entry > .authors .affiliation,
.page_article .obj_article_details .main_entry > .authors .userGroup {
  color: var(--lue-grey);
  line-height: 1.5;
}

/* DOI is essential bibliographic information: make it easy to locate. */
.page_article .obj_article_details .main_entry > .doi {
  background: var(--lue-pale);
  border-left: 3px solid var(--lue-red);
  padding: 0.75rem 1rem;
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
}

.page_article .obj_article_details .main_entry > .doi .label {
  color: var(--lue-grey);
  font-weight: 700;
}

.page_article .obj_article_details .main_entry > .doi .value {
  overflow-wrap: anywhere;
}

.page_article .obj_article_details .main_entry > .doi a {
  color: #8B161D;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* Reading experience: give abstract and references clear hierarchy. */
.page_article .obj_article_details .main_entry > .abstract {
  border-top: 1px solid var(--lue-border);
  padding-top: 1.25rem;
  line-height: 1.7;
}

.page_article .obj_article_details .main_entry > .abstract > .label,
.page_article .obj_article_details .main_entry > .references > .label {
  color: var(--lue-grey);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page_article .obj_article_details .main_entry > .abstract p {
  line-height: 1.7;
}

.page_article .obj_article_details .main_entry > .references {
  border-top: 1px solid var(--lue-border);
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.page_article .obj_article_details .main_entry > .references .value {
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.page_article .obj_article_details .main_entry > .references .value p {
  margin-bottom: 0.9rem;
}

/* Make the PDF action obvious without a large solid red button. */
.page_article .obj_article_details .entry_details > .galleys {
  padding: 1rem;
  background: var(--lue-pale);
  border: 1px solid var(--lue-border);
  border-top: 3px solid var(--lue-red);
  border-radius: 2px;
}

.page_article .obj_article_details .entry_details > .galleys .obj_galley_link {
  color: var(--lue-red);
  border-color: var(--lue-red);
  font-weight: 700;
  text-decoration: none;
}

.page_article .obj_article_details .entry_details > .galleys .obj_galley_link:hover {
  color: #fff;
  background: var(--lue-red);
  border-color: var(--lue-red);
}

/* Dates, issue and licensing remain readable but do not compete
   with the title, abstract or download action. */
.page_article .obj_article_details .entry_details > .item:not(.galleys) .label {
  color: var(--lue-grey);
  font-weight: 700;
}

.page_article .obj_article_details .entry_details > .item:not(.galleys) .value {
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Accessible focus cues for article-specific controls. */
.page_article .obj_article_details a:focus-visible {
  outline: 3px solid var(--lue-red);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .page_article .obj_article_details > .page_title {
    line-height: 1.35;
  }
  .page_article .obj_article_details .main_entry > .doi,
  .page_article .obj_article_details .entry_details > .galleys {
    padding: 0.8rem;
  }
}


/* ==============================================================
   9. Ordinary hyperlinks on individual article pages — Version 6
   Deep Lancaster red instead of the Default theme's blue.
   Includes author/ORCID, abstract, reference, issue and licence links.
   Excludes PDF/galley links, which retain their Version 5 styling.
   Does not recolour titles on issue tables of contents, navigation,
   or the homepage.
   ============================================================== */
.page_article .obj_article_details a:not(.obj_galley_link),
.page_article .obj_article_details a:not(.obj_galley_link):visited {
  color: #8B161D;
}

.page_article .obj_article_details a:not(.obj_galley_link):hover {
  color: #701017;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

/* Preserve a clear keyboard indicator, as already established in v5. */
.page_article .obj_article_details a:not(.obj_galley_link):focus-visible {
  outline: 3px solid var(--lue-red);
  outline-offset: 3px;
}

/* ==============================================================
   10. Article-page breadcrumb links — Version 7
   Breadcrumbs (Home, Archives, issue) sit outside .obj_article_details.
   Match their colour to ordinary article links without changing the
   primary navigation menu, article titles, or PDF download links.
   ============================================================== */
.page_article .cmp_breadcrumbs a,
.page_article .cmp_breadcrumbs a:visited {
  color: #8B161D;
  text-decoration: none;
}

.page_article .cmp_breadcrumbs a:hover {
  color: #701017;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.page_article .cmp_breadcrumbs a:focus-visible {
  outline: 3px solid #B5121B;
  outline-offset: 3px;
}

/* ============================================================== 
   11. Site-wide hyperlink colours — Version 8
   Applies to content links on every public page, including About,
   homepage, Archives, issue pages and individual article pages.
   The main header navigation is deliberately excluded because it
   uses a separate colour scheme for legibility.
   More specific existing rules preserve dark issue-list titles,
   neutral sidebar volume cards and the PDF button treatment.
   ============================================================== */
.pkp_structure_content a:link,
.pkp_structure_content a:visited,
.cmp_breadcrumbs a:link,
.cmp_breadcrumbs a:visited {
  color: #8B161D;
}

.pkp_structure_content a:hover,
.cmp_breadcrumbs a:hover {
  color: #701017;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.pkp_structure_content a:focus-visible,
.cmp_breadcrumbs a:focus-visible {
  outline: 3px solid var(--lue-red);
  outline-offset: 3px;
}

/* The footers are outside .pkp_structure_content in OJS. */
.pkp_footer_content a:link,
.pkp_footer_content a:visited {
  color: #8B161D;
}

.pkp_footer_content a:hover {
  color: #701017;
  text-decoration: underline;
}

.pkp_footer_content a:focus-visible {
  outline: 3px solid var(--lue-red);
  outline-offset: 3px;
}

/* Make the explicit exceptions robust, including visited links. */
.obj_issue_toc .obj_article_summary > .title a:link,
.obj_issue_toc .obj_article_summary > .title a:visited {
  color: var(--lue-text);
  text-decoration: none;
}

.obj_issue_toc .obj_article_summary > .title a:hover {
  color: var(--lue-red);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.pkp_block .lue-volume-links li a:link,
.pkp_block .lue-volume-links li a:visited {
  color: var(--lue-text);
}

.pkp_block .lue-volume-links > p:last-child a:link,
.pkp_block .lue-volume-links > p:last-child a:visited {
  color: var(--lue-red);
}

/* ==============================================================
   12. Primary-navigation dropdown links — Version 9
   Recolour entries under About (and other primary dropdowns)
   without changing the top-level header navigation, which may
   use light text against the header background.
   ============================================================== */
.pkp_navigation_primary .dropdown-menu a:link,
.pkp_navigation_primary .dropdown-menu a:visited {
  color: #8B161D;
}

.pkp_navigation_primary .dropdown-menu a:hover,
.pkp_navigation_primary .dropdown-menu a:focus {
  color: #701017;
  background-color: #F7F7F7;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.pkp_navigation_primary .dropdown-menu a:focus-visible {
  outline: 3px solid var(--lue-red);
  outline-offset: -3px;
}

/* ==============================================================
   13. Homepage View All Issues link — Version 10
   Specificity over Default theme's read_more link styling.
   ============================================================== */
.pkp_page_index .current_issue a.read_more,
.pkp_page_index .current_issue a.read_more:visited {
  color: #8B161D;
}

.pkp_page_index .current_issue a.read_more:hover,
.pkp_page_index .current_issue a.read_more:focus {
  color: #701017;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.pkp_page_index .current_issue a.read_more:focus-visible {
  outline: 3px solid #B5121B;
  outline-offset: 3px;
}

/* ==============================================================
   14. About dropdown hover/focus accent — Version 11
   The OJS Default theme applies its primary colour to the
   left-hand border of submenu links on hover and focus.
   ============================================================== */
.pkp_navigation_primary .dropdown-menu a:hover,
.pkp_navigation_primary .dropdown-menu a:focus,
.pkp_navigation_primary .dropdown-menu a:focus-visible {
  border-left-color: #B5121B;
}
