/* Computational Linguistics: custom journal stylesheet
   Upload at Settings > Website > Appearance > Advanced > Journal style sheet.
   All rules are scoped to specific OJS page classes so other pages are unaffected. */

/* ---------- Announcements list ---------- */
.page_announcements .obj_announcement_summary {
  position: relative;
  margin: 0 0 16px;
  padding: 18px 22px 16px;
  border: 1px solid #dfe6ec;
  border-left: 4px solid #19496b;
  border-radius: 6px;
  background: #ffffff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.page_announcements .obj_announcement_summary:hover {
  border-left-color: #e2001a;
  box-shadow: 0 4px 14px rgba(18, 53, 79, 0.08);
}
.page_announcements .cmp_announcements > li,
.page_announcements .cmp_announcements {
  border: 0 !important;
  padding: 0 !important;
  margin: 0;
  list-style: none;
}
.page_announcements .obj_announcement_summary h2,
.page_announcements .obj_announcement_summary h3 {
  margin: 0 0 6px;
  font-size: 1.15em;
  line-height: 1.35;
}
.page_announcements .obj_announcement_summary h2 a,
.page_announcements .obj_announcement_summary h3 a {
  color: #12354f;
  text-decoration: none;
}
.page_announcements .obj_announcement_summary h2 a:hover,
.page_announcements .obj_announcement_summary h3 a:hover {
  text-decoration: underline;
}
.page_announcements .obj_announcement_summary .date {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 10px;
  border-radius: 12px;
  background: #eef3f7;
  color: #19496b;
  font-size: 0.8em;
  font-weight: bold;
  letter-spacing: 0.03em;
}
.page_announcements .obj_announcement_summary .date::before {
  display: none;
}
.page_announcements .obj_announcement_summary .summary {
  font-size: 0.95em;
  line-height: 1.6;
  color: #33414d;
}
.page_announcements .obj_announcement_summary .read_more {
  display: inline-block;
  margin-top: 6px;
  font-weight: bold;
  color: #19496b;
  text-decoration: none;
}
.page_announcements .obj_announcement_summary .read_more:hover {
  color: #e2001a;
}

/* ---------- Single announcement ---------- */
.page_announcement .obj_announcement_full .date {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  background: #eef3f7;
  color: #19496b;
  font-size: 0.85em;
  font-weight: bold;
}

/* ---------- Sidebar "Announcements" block ---------- */
.pkp_block.block_announcements .obj_announcement_summary {
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid #e3e8ed;
}
.pkp_block.block_announcements .obj_announcement_summary .date {
  font-size: 0.8em;
  color: #5a6672;
}

/* ---------- Editorial Team: name grids ---------- */
.page_editorial_team ul.cl-people {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  columns: 2 260px;
  column-gap: 28px;
}
.page_editorial_team ul.cl-people li {
  break-inside: avoid;
  margin: 0 0 9px;
  line-height: 1.35;
}
.page_editorial_team ul.cl-people li strong {
  color: #1b2a38;
}
.page_editorial_team ul.cl-people li span {
  font-size: 0.86em;
  color: #5a6672;
}
.page_editorial_team ul.cl-people li span.cl-badge {
  display: inline-block;
  padding: 0 6px;
  border-radius: 8px;
  background: #fff3d6;
  color: #a36f00;
  font-size: 0.72em;
  font-weight: bold;
  vertical-align: 1px;
}

/* ---------- Issue archive: card grid ---------- */
.page_issue_archive .issues_archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.page_issue_archive .issues_archive > li {
  margin: 0;
  padding: 0;
  border: 0;
}
.page_issue_archive .obj_issue_summary {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  padding: 18px 18px 16px;
  border: 1px solid #dfe6ec;
  border-top: 4px solid #19496b;
  border-radius: 6px;
  background: #ffffff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.page_issue_archive .obj_issue_summary:hover {
  border-top-color: #e2001a;
  box-shadow: 0 4px 14px rgba(18, 53, 79, 0.1);
}
.page_issue_archive .obj_issue_summary h2 {
  margin: 0;
  font-size: 1em;
  line-height: 1.3;
}
/* The issue title repeats the journal name, so the whole card becomes the link
   and the volume/number line is shown as the heading. */
.page_issue_archive .obj_issue_summary a.title {
  position: absolute;
  inset: 0;
  z-index: 1;
  font-size: 0;
  color: transparent;
}
.page_issue_archive .obj_issue_summary .series {
  margin: 0;
  font-size: 1.25em;
  font-weight: bold;
  color: #12354f;
}
.page_issue_archive .obj_issue_summary .description:empty {
  display: none;
}
/* An issue with no volume/number (e.g. "Past Publications") keeps its title. */
.page_issue_archive .obj_issue_summary h2:not(:has(.series)) a.title {
  position: static;
  font-size: 1.25em;
  color: #12354f;
}
.page_issue_archive .obj_issue_summary::after {
  content: "View issue \2192";
  display: block;
  margin-top: 10px;
  font-size: 0.85em;
  font-weight: bold;
  color: #19496b;
}
.page_issue_archive .obj_issue_summary .description {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  font-size: 0.82em;
  word-break: break-all;
}
.page_issue_archive .obj_issue_summary .description p {
  margin: 0;
}

/* ---------- Issue table of contents (issue pages + homepage current issue) ---------- */
.page_issue .obj_issue_toc .heading .published,
.current_issue .obj_issue_toc .heading .published {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  background: #eef3f7;
  color: #19496b;
  font-size: 0.85em;
}
.page_issue .obj_issue_toc .section,
.current_issue .obj_issue_toc .section {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}
.page_issue .obj_issue_toc .section > h2,
.page_issue .obj_issue_toc .section > h3,
.current_issue .obj_issue_toc .section > h2,
.current_issue .obj_issue_toc .section > h3 {
  position: static;
  display: block;
  margin: 0 0 12px;
  padding: 0 0 6px;
  border-bottom: 2px solid #19496b;
  background: none;
  color: #12354f;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: none;
  letter-spacing: 0;
}
.page_issue .obj_issue_toc .section > h2::before,
.page_issue .obj_issue_toc .section > h2::after,
.current_issue .obj_issue_toc .section > h2::before,
.current_issue .obj_issue_toc .section > h2::after,
.current_issue .obj_issue_toc .section > h3::before,
.current_issue .obj_issue_toc .section > h3::after {
  display: none;
}
.page_issue .obj_issue_toc .cmp_article_list > li,
.current_issue .obj_issue_toc .cmp_article_list > li {
  margin: 0 0 12px;
}
.page_issue .obj_issue_toc .obj_article_summary,
.current_issue .obj_issue_toc .obj_article_summary {
  padding: 14px 18px 12px;
  border: 1px solid #dfe6ec;
  border-left: 4px solid #19496b;
  border-radius: 6px;
  background: #ffffff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.page_issue .obj_issue_toc .obj_article_summary:hover,
.current_issue .obj_issue_toc .obj_article_summary:hover {
  border-left-color: #e2001a;
  box-shadow: 0 4px 14px rgba(18, 53, 79, 0.08);
}
.page_issue .obj_issue_toc .obj_article_summary .title,
.current_issue .obj_issue_toc .obj_article_summary .title {
  margin: 0 0 4px;
  font-size: 1.05em;
  line-height: 1.35;
}
.page_issue .obj_issue_toc .obj_article_summary .title a,
.current_issue .obj_issue_toc .obj_article_summary .title a {
  color: #12354f;
  text-decoration: none;
}
.page_issue .obj_issue_toc .obj_article_summary .title a:hover,
.current_issue .obj_issue_toc .obj_article_summary .title a:hover {
  text-decoration: underline;
}
.page_issue .obj_issue_toc .obj_article_summary .authors,
.current_issue .obj_issue_toc .obj_article_summary .authors {
  font-size: 0.9em;
  color: #5a6672;
}
.page_issue .obj_issue_toc .galleys_links,
.current_issue .obj_issue_toc .galleys_links {
  margin: 10px 0 0;
}
.page_issue .obj_issue_toc .obj_galley_link,
.current_issue .obj_issue_toc .obj_galley_link {
  padding: 3px 12px;
  border: 1px solid #c9a24a;
  border-radius: 14px;
  background: #fff8e5;
  color: #7a5600;
  font-size: 0.82em;
  font-weight: bold;
}
.page_issue .obj_issue_toc .obj_galley_link::before,
.current_issue .obj_issue_toc .obj_galley_link::before {
  display: none;
}
/* The MIT Press article link is always the last galley: show it as the primary button. */
.page_issue .obj_issue_toc .galleys_links > li:last-child .obj_galley_link,
.current_issue .obj_issue_toc .galleys_links > li:last-child .obj_galley_link {
  border-color: #19496b;
  background: #19496b;
  color: #ffffff;
}
