/* =============================================================================
   OJS public journal UI — y2026_cnnthon
   100% structure/layout clone of y2026_tcgc OJS UI.
   Only brand color tokens remapped to cnnthon.
   ========================================================================== */

body.ojs-public-page {
    --color-main: var(--cnnt-navy, #1e4f9a);
    --color-highlight: var(--cnnt-gold, #d8a522);
    --color-text: #1f1f1f;
    --red: var(--cnnt-red, #c21f25);
    --gray: #1f1f1f;
    --font-1: "Merriweather", "Noto Serif", serif;
    --font-2: "Open Sans", "Roboto Condensed", sans-serif;
    --font-3: "Open Sans", "Roboto", sans-serif;
    --font-4: "Merriweather", "IBM Plex Serif", serif;
}

body.ojs-public-page .ojs-page-head__inner:after,
body.ojs-public-page .ojs-cnnt-label::before {
    background: var(--cnnt-red, #c21f25) !important;
}
body.ojs-public-page .ojs-journal-sidebar__link.is-active {
    box-shadow: inset 3px 0 0 var(--cnnt-red, #c21f25);
}

/* Keep site chrome (brandline, site-nav, breaking-strip) visible on OJS pages. */

/* Space OJS main content away from site header */
body.ojs-public-page main.content,
body.ojs-public-page main.content.ojs-main {
    padding-top: 28px !important;
    padding-bottom: 40px !important;
}

body.ojs-public-page main.content:has(> .ojs-journal-sidebar) {
    padding-top: 28px !important;
}

/* =============================================================================
   OJS public journal UI — y2026_tcgc
   Loaded via OjsAsset on OJS views only.

   Order:
     1. Page chrome
     2. Journal shell (page head + left sidebar + main column)
     3. Component remap (ojs-cnnt-* mapped onto theme tokens)
     4. Utility shim (Tailwind classes used in views that Bootstrap 5 lacks)
     5. Responsive
   ========================================================================== */

/* =============================================================================
   1. Page chrome
   ========================================================================== */

/* Keep cnnthon site chrome (brandline, site-nav, breaking-strip) visible on OJS. */

body.ojs-public-page main.content {
    padding-top: 28px !important;
}

/* =============================================================================
   2. Journal shell
   ========================================================================== */

/* The journal nav renders as a left sidebar. Pages without it keep their own
   container, so the grid only applies when the sidebar is actually present. */
main.content:has(> .ojs-journal-sidebar) {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
    column-gap: 30px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 25px 15px 40px;
}

main.content:has(> .ojs-journal-sidebar) > .ojs-page-head {
    grid-column: 1 / -1;
}

main.content:has(> .ojs-journal-sidebar) > .ojs-journal-sidebar {
    grid-column: 1;
}

main.content:has(> .ojs-journal-sidebar) > *:not(.ojs-page-head):not(.ojs-journal-sidebar) {
    grid-column: 2;
    min-width: 0;
}

/* Inner containers are redundant once the grid owns the page width. */
main.content:has(> .ojs-journal-sidebar) > .container,
main.content:has(> .ojs-journal-sidebar) .ojs-cnnt-wrap {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

main.content:has(> .ojs-journal-sidebar) > .container {
    margin-top: 0;
}

/* Page head */

.ojs-page-head {
    margin-bottom: 20px;
}

.ojs-page-head__inner {
    position: relative;
    padding-left: 10px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 15px;
}

.ojs-page-head__inner:after {
    content: '';
    display: block;
    position: absolute;
    top: 4px;
    left: 0;
    width: 2px;
    height: 20px;
    background: #ed1c24;
}

.ojs-page-head__eyebrow {
    display: block;
    font-size: 13px;
    font-family: var(--font-1);
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-highlight);
}

.ojs-page-head__title {
    margin: 6px 0 0;
    font-size: 20px;
    font-family: var(--font-1);
    font-weight: bold;
    line-height: 1.5;
    color: var(--color-main);
}

.ojs-page-head__desc {
    margin: 10px 0 0;
    max-width: 900px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray);
}

.ojs-page-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Left sidebar */

.ojs-journal-sidebar {
    align-self: start;
    border: 1px solid #e8e8e8;
    background: #fff;
}

.ojs-journal-sidebar__brand {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #e8e8e8;
    text-align: center;
}

.ojs-journal-sidebar__brand img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 70px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.ojs-journal-sidebar__brand-text strong {
    display: block;
    font-size: 15px;
    font-family: var(--font-1);
    font-weight: bold;
    line-height: 1.4;
    color: var(--color-main);
}

.ojs-journal-sidebar__brand-text span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--gray);
}

.ojs-journal-sidebar__nav {
    display: flex;
    flex-direction: column;
}

.ojs-journal-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    font-family: var(--font-1);
    font-weight: bold;
    color: var(--color-main);
}

.ojs-journal-sidebar__link i {
    width: 16px;
    font-size: 14px;
    text-align: center;
    color: var(--gray);
}

.ojs-journal-sidebar__link:hover {
    background: #f7f7f7;
    color: var(--color-highlight);
}

.ojs-journal-sidebar__link:hover i {
    color: var(--color-highlight);
}

.ojs-journal-sidebar__link.is-active {
    background: #f7f7f7;
    color: var(--color-highlight);
    box-shadow: inset 3px 0 0 var(--cnnt-red, #c21f25);
}

.ojs-journal-sidebar__link.is-active i {
    color: var(--color-highlight);
}

.ojs-journal-sidebar__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
}

.ojs-journal-sidebar__actions .ojs-theme-btn {
    justify-content: center;
}

/* =============================================================================
   3. Component remap — ojs-cnnt-* onto theme tokens
   ========================================================================== */

.ojs-cnnt-shell {
    background: none;
}

.ojs-cnnt-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.ojs-cnnt-main {
    padding-top: 0;
    padding-bottom: 20px;
}

.ojs-cnnt-page-head {
    margin: 0;
}

/* Legacy hero — flattened to the theme page-head look */

.ojs-cnnt-hero {
    position: relative;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid #e8e8e8;
    background: none;
    color: var(--color-main);
}

/* Panels that intentionally sit on a dark background keep white text, but on
   the theme navy instead of the imported gradient. */
.hero-gradient,
.bg-\[linear-gradient\(145deg\2c \#16345a_0\%\2c \#204c80_45\%\2c \#d1a118_100\%\)\] {
    position: relative;
    overflow: hidden;
    border: 0;
    background: var(--color-main);
    color: #fff;
}

.hero-gradient h1,
.hero-gradient h2,
.hero-gradient h3,
.hero-gradient p,
.hero-gradient a,
.hero-gradient span {
    color: inherit;
}

.ojs-cnnt-hero::before {
    content: none;
}

.ojs-cnnt-hero__inner {
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}

.ojs-cnnt-hero__page {
    max-width: 900px;
}

.ojs-cnnt-hero__eyebrow,
.ojs-cnnt-hero__journal-label {
    display: inline-block;
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-family: var(--font-1);
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-highlight);
}

.ojs-cnnt-hero__eyebrow::before {
    content: none;
}

.ojs-cnnt-hero__title {
    margin-top: 6px;
    font-size: 28px;
    font-family: var(--font-1);
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: normal;
    color: var(--color-main);
}

.ojs-cnnt-hero__desc {
    margin-top: 10px;
    max-width: 900px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray);
}

.ojs-cnnt-hero .ojs-cnnt-chip,
.ojs-cnnt-hero .ojs-cnnt-chip.ojs-cnnt-chip--gold {
    border-color: #e8e8e8;
    background: #fff;
    color: var(--color-main);
}

.ojs-cnnt-hero .ojs-cnnt-btn--secondary {
    border-color: #d8d8d8;
    background: #fff;
    color: var(--color-main);
}

.ojs-cnnt-hero .ojs-cnnt-btn--secondary:hover {
    border-color: var(--color-highlight);
    background: #fff;
    color: var(--color-highlight);
}

/* Legacy top nav — superseded by the sidebar, kept harmless */

.ojs-cnnt-nav__frame {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
}

.ojs-cnnt-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ojs-cnnt-nav__brand img {
    width: auto;
    height: 52px;
    max-width: 100%;
    object-fit: contain;
}

.ojs-cnnt-nav__brand-text strong {
    display: block;
    font-size: 15px;
    font-family: var(--font-1);
    font-weight: bold;
    line-height: 1.4;
    color: var(--color-main);
}

.ojs-cnnt-nav__brand-text span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--gray);
}

.ojs-cnnt-nav__menu {
    display: flex;
    flex: 1 1 420px;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.ojs-cnnt-nav__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ojs-cnnt-nav__link,
.ojs-cnnt-nav__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 0;
    font-size: 14px;
    font-family: var(--font-1);
    font-weight: bold;
    letter-spacing: normal;
    text-transform: none;
    color: var(--color-main);
}

.ojs-cnnt-nav__link:hover,
.ojs-cnnt-nav__link.is-active {
    background: #f7f7f7;
    color: var(--color-highlight);
}

.ojs-cnnt-nav__action--primary {
    border: 1px solid var(--color-highlight);
    background: var(--color-highlight);
    color: #fff;
    box-shadow: none;
}

.ojs-cnnt-nav__action--primary:hover {
    background: var(--color-main);
    border-color: var(--color-main);
    color: #fff;
}

.ojs-cnnt-nav__action--secondary {
    border: 1px solid #d8d8d8;
    background: #fff;
    color: var(--color-main);
}

.ojs-cnnt-nav__action--secondary:hover {
    border-color: var(--color-highlight);
    color: var(--color-highlight);
}

/* Surfaces */

.ojs-cnnt-panel,
.ojs-cnnt-box,
.ojs-cnnt-stat,
.ojs-cnnt-grid-card,
.ojs-cnnt-link-card,
.ojs-cnnt-list-row__media {
    border: 1px solid #e8e8e8;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.ojs-cnnt-panel {
    overflow: hidden;
}

.ojs-cnnt-panel--soft {
    background: #fafafa;
}

.ojs-cnnt-box,
.ojs-cnnt-grid-card {
    padding: 15px;
}

.ojs-cnnt-stat {
    padding: 12px 15px;
}

.ojs-cnnt-stat strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    font-family: var(--font-1);
    font-weight: bold;
    color: var(--color-main);
}

.ojs-cnnt-empty {
    padding: 24px;
    border: 1px dashed #e0e0e0;
    border-radius: 0;
    background: #fafafa;
    text-align: center;
    font-size: 15px;
    color: var(--gray);
}

/* Typography */

.ojs-cnnt-section-title {
    font-size: 20px;
    font-family: var(--font-1);
    font-weight: bold;
    line-height: 1.35;
    color: var(--color-main);
}

.ojs-cnnt-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-family: var(--font-1);
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-highlight);
}

.ojs-cnnt-label::before {
    content: "";
    width: 18px;
    height: 2px;
    background: #ed1c24;
}

.ojs-cnnt-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
}

.ojs-cnnt-meta {
    font-size: 13px;
    color: var(--gray);
}

.ojs-cnnt-richtext,
.ojs-cnnt-richtext p,
.ojs-cnnt-richtext li {
    font-size: 16px;
    font-family: var(--font-4);
    line-height: 1.7;
    color: var(--color-text);
}

.ojs-cnnt-richtext h1,
.ojs-cnnt-richtext h2,
.ojs-cnnt-richtext h3,
.ojs-cnnt-richtext h4 {
    font-family: var(--font-1);
    font-weight: bold;
    color: var(--color-main);
}

.ojs-cnnt-citation-list li + li {
    margin-top: 12px;
}

/* Chips */

.ojs-cnnt-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    background: #fff;
    font-size: 13px;
    font-family: var(--font-1);
    font-weight: normal;
    letter-spacing: normal;
    text-transform: none;
    color: var(--color-main);
}

.ojs-cnnt-chip--gold,
.ojs-cnnt-chip--red {
    border-color: var(--color-highlight);
    background: #fff;
    color: var(--color-highlight);
}

/* Buttons — same shape as .ojs-theme-btn in theme.css */

.ojs-cnnt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 0;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 14px;
    font-family: var(--font-1);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
}

.ojs-cnnt-btn--primary {
    border-color: var(--color-highlight);
    background: var(--color-highlight);
    color: #fff;
    box-shadow: none;
}

.ojs-cnnt-btn--primary:hover {
    border-color: var(--color-main);
    background: var(--color-main);
    color: #fff;
    transform: none;
}

.ojs-cnnt-btn--secondary {
    border-color: #d8d8d8;
    background: #fff;
    color: var(--color-main);
}

.ojs-cnnt-btn--secondary:hover {
    border-color: var(--color-highlight);
    background: #fff;
    color: var(--color-highlight);
}

/* Forms */

.ojs-cnnt-form .form-group {
    margin-bottom: 0;
}

.ojs-cnnt-form .form-group + .form-group {
    margin-top: 18px;
}

.ojs-cnnt-form label,
.ojs-cnnt-form .control-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-family: var(--font-1);
    font-weight: bold;
    letter-spacing: normal;
    text-transform: none;
    color: var(--color-main);
}

.ojs-cnnt-form .form-control,
.ojs-cnnt-form select,
.ojs-cnnt-form textarea,
.ojs-cnnt-form input[type="file"],
.ojs-cnnt-form-control,
select.ojs-cnnt-form-control,
.ojs-cnnt-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    background: #fff;
    font-size: 15px;
    color: var(--color-text);
    box-shadow: none;
}

.ojs-cnnt-search-input {
    min-height: 44px;
}

.ojs-cnnt-form .form-control:focus,
.ojs-cnnt-form select:focus,
.ojs-cnnt-form textarea:focus,
.ojs-cnnt-form-control:focus,
select.ojs-cnnt-form-control:focus,
.ojs-cnnt-search-input:focus {
    border-color: var(--color-highlight);
    box-shadow: none;
    outline: none;
}

.ojs-cnnt-form .help-block {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--red);
}

.ojs-cnnt-form .hint-block {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray);
}

.ojs-cnnt-form .submission-abstract-editor .tox-tinymce {
    border-radius: 0 !important;
    border-color: #e0e0e0 !important;
    overflow: hidden;
}

.ojs-cnnt-form .submission-abstract-editor .tox .tox-edit-area__iframe,
.ojs-cnnt-form .submission-abstract-editor .tox .tox-edit-area__iframe body {
    background: #fff;
}

/* Lists and rows */

.ojs-cnnt-page-grid,
.ojs-cnnt-two-col,
.ojs-cnnt-list,
.ojs-cnnt-side-list {
    display: grid;
    gap: 20px;
}

.ojs-cnnt-list-row {
    display: grid;
    gap: 15px;
}

.ojs-cnnt-list-row__media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ojs-cnnt-list-row__title {
    margin: 0;
    font-size: 18px;
    font-family: var(--font-1);
    font-weight: bold;
    line-height: 1.4;
    color: var(--color-main);
}

.ojs-cnnt-list-row__title a {
    color: inherit;
}

.ojs-cnnt-list-row__title a:hover {
    color: var(--color-highlight);
}

.ojs-cnnt-list-row__meta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--gray);
}

.ojs-cnnt-list-row__summary {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
}

.ojs-cnnt-link-list {
    display: grid;
    gap: 8px;
}

.ojs-cnnt-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 15px;
    font-size: 15px;
    font-family: var(--font-1);
    font-weight: bold;
    color: var(--color-main);
}

.ojs-cnnt-link-card:hover {
    border-color: var(--color-highlight);
    color: var(--color-highlight);
}

.ojs-cnnt-grid-cards {
    display: grid;
    gap: 15px;
}

.ojs-cnnt-search-form {
    display: grid;
    gap: 10px;
}

/* Issue summary (legacy grid variant) */

.ojs-cnnt-issue-summary__grid {
    display: grid;
    min-height: 0;
}

.ojs-cnnt-issue-summary__cover {
    min-height: 220px;
}

.ojs-cnnt-issue-summary__cover img {
    width: 100%;
    max-width: 100%;
}

/* Pager */

.ojs-cnnt-pager .pagination,
.pagination-wrap .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding-left: 0;
    list-style: none;
}

.ojs-cnnt-pager .pagination > li > a,
.ojs-cnnt-pager .pagination > li > span,
.pagination-wrap .pagination > li > a,
.pagination-wrap .pagination > li > span {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    background: #fff;
    font-size: 14px;
    font-family: var(--font-1);
    font-weight: bold;
    color: var(--color-main);
}

.ojs-cnnt-pager .pagination > .active > a,
.ojs-cnnt-pager .pagination > .active > span,
.pagination-wrap .pagination > .active > a,
.pagination-wrap .pagination > .active > span {
    border-color: var(--color-highlight);
    background: var(--color-highlight);
    color: #fff;
}

/* Blocks whose markup carries no utility classes */

.stat-badge {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    font-size: 13px;
    font-family: var(--font-1);
    font-weight: bold;
    color: var(--color-main);
}

.partner-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #e8e8e8;
    background: #fff;
}

.partner-logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.citation-raw-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    overflow-wrap: break-word;
}

/* Citation modal */

#citation-modal.flex {
    display: flex;
}

/* CMS policy pages opened from OJS */

.cnnt-page-content img {
    max-width: 100%;
    height: auto;
}

.cnnt-page-content table {
    width: 100%;
    border-collapse: collapse;
}

.cnnt-page-view .panel {
    border: 1px solid #e8e8e8;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

/* =============================================================================
   4. Utility shim
   REMOVED for y2026_cnnthon: ThemeAsset already loads full Tailwind.
   The previous shim (.hidden/.flex/...) loaded AFTER Tailwind and broke
   responsive utilities like "hidden lg:block" (site header title + site-nav).
   ========================================================================== */

/* =============================================================================
   5. Responsive
   ========================================================================== */

@media (min-width: 576px) {
    .sm\:flex { display: flex; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-start { align-items: flex-start; }
    .sm\:items-end { align-items: flex-end; }
    .sm\:justify-between { justify-content: space-between; }
    .sm\:gap-4 { gap: 16px; }
    .sm\:p-6 { padding: 24px; }
    .sm\:px-6 { padding-left: 24px; padding-right: 24px; }
    .sm\:text-right { text-align: right; }
    .sm\:max-w-\[65\%\] { max-width: 65%; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:p-6 { padding: 24px; }
    .md\:p-7 { padding: 28px; }
    .md\:p-8 { padding: 32px; }
    .md\:p-10 { padding: 40px; }
    .md\:py-16 { padding-top: 64px; padding-bottom: 64px; }
    .md\:py-24 { padding-top: 96px; padding-bottom: 96px; }
    .md\:text-xl { font-size: 20px; }
    .md\:text-5xl { font-size: 34px; }
    .md\:text-6xl { font-size: 40px; }

    .ojs-cnnt-list-row {
        grid-template-columns: 220px minmax(0, 1fr);
        align-items: start;
    }

    .ojs-cnnt-search-form {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .ojs-cnnt-grid-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ojs-cnnt-issue-summary__grid {
        min-height: 280px;
        grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
    }

    .ojs-cnnt-issue-summary__cover {
        border-right: 1px solid #e8e8e8;
        min-height: 100%;
    }

    .ojs-cnnt-issue-summary__body {
        min-height: 100%;
    }
}

@media (min-width: 992px) {
    .lg\:px-8 { padding-left: 32px; padding-right: 32px; }
    .lg\:w-3\/4 { width: 75%; }
}

@media (min-width: 1200px) {
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .xl\:grid-cols-\[minmax\(0\2c 1fr\)_340px\] { grid-template-columns: minmax(0, 1fr) 320px; }
    .xl\:sticky { position: sticky; }
    .xl\:top-6 { top: 24px; }

    .ojs-cnnt-page-grid,
    .ojs-cnnt-two-col {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

/* Sidebar collapses above the content on tablet and below. */
@media (max-width: 991.98px) {
    main.content:has(> .ojs-journal-sidebar) {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
    }

    main.content:has(> .ojs-journal-sidebar) > .ojs-page-head {
        grid-column: 1;
        order: 1;
    }

    main.content:has(> .ojs-journal-sidebar) > .ojs-journal-sidebar {
        order: 3;
        margin-top: 25px;
    }

    main.content:has(> .ojs-journal-sidebar) > *:not(.ojs-page-head):not(.ojs-journal-sidebar) {
        grid-column: 1;
        order: 2;
    }

    .ojs-journal-sidebar__nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ojs-journal-sidebar__link {
        flex: 1 1 auto;
        border-bottom: 0;
        border-right: 1px solid #f0f0f0;
    }

    .ojs-journal-sidebar__link.is-active {
        box-shadow: inset 0 -3px 0 var(--cnnt-red, #c21f25);
    }

    .ojs-journal-sidebar__actions {
        flex-direction: row;
        flex-wrap: wrap;
        border-top: 1px solid #f0f0f0;
    }

    .ojs-cnnt-nav__frame,
    .ojs-cnnt-nav__actions {
        justify-content: flex-start;
    }

    .ojs-cnnt-nav__brand {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .ojs-page-head__title,
    .ojs-cnnt-hero__title {
        font-size: 22px;
    }
}

/* papers-type-1 */

.papers-type-1 .inner-item .inner-image {
    display: block;
    border: 1px solid #e8e8e8;
    margin-bottom: 5px;
}

.papers-type-1 .inner-item .inner-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 289/400;
    object-fit: cover;
}

.papers-type-1 .inner-item .inner-content .inner-title a {
    font-size: 16px;
    font-family: var(--font-1);
    font-weight: bold;
    color: var(--color-main);
}

.papers-type-1 .inner-item .inner-content .inner-title a:hover {
    color: var(--color-highlight);
}

/* End papers-type-1 */

/* OJS public issue / archive (tcgc theme) */

.ojs-archive-page .ojs-empty-state,
.ojs-issue-page .ojs-empty-state {
    padding: 24px 0;
    font-size: 15px;
    color: var(--gray);
}

.ojs-issue-summary__cover {
    border: 1px solid #e8e8e8;
    background: #fff;
    overflow: hidden;
}

.ojs-issue-summary__cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 289/400;
    object-fit: cover;
}

.ojs-issue-summary__label {
    font-size: 13px;
    font-family: var(--font-1);
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-highlight);
    margin-bottom: 8px;
}

.ojs-issue-summary__title {
    margin: 0 0 12px;
    font-size: 24px;
    font-family: var(--font-1);
    font-weight: bold;
    line-height: 1.35;
    color: var(--color-main);
}

.ojs-issue-summary__desc {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.7;
    color: #1f1f1f;
}

.ojs-issue-summary__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ojs-issue-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid #e8e8e8;
    font-size: 13px;
    font-family: var(--font-1);
    color: var(--color-main);
    background: #fff;
}

.ojs-issue-chip--alt {
    border-color: var(--color-highlight);
    color: var(--color-highlight);
}

.ojs-issue-summary__galleys {
    margin-bottom: 16px;
}

.ojs-issue-summary__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ojs-galleys,
.ojs-galley-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ojs-galley-button-item {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ojs-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    font-size: 14px;
    font-family: var(--font-1);
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.ojs-theme-btn i {
    font-size: 14px;
}

.ojs-theme-btn--primary {
    background: var(--color-highlight);
    border-color: var(--color-highlight);
    color: #fff;
}

.ojs-theme-btn--primary:hover {
    background: var(--color-main);
    border-color: var(--color-main);
    color: #fff;
}

.ojs-theme-btn--secondary {
    background: #fff;
    border-color: #d8d8d8;
    color: var(--color-main);
}

.ojs-theme-btn--secondary:hover {
    border-color: var(--color-highlight);
    color: var(--color-highlight);
}

.ojs-issue-filter {
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 16px 18px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
}

.ojs-issue-filter label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-family: var(--font-1);
    font-weight: bold;
    color: var(--color-main);
}

.ojs-issue-filter select {
    width: 100%;
    max-width: 360px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    font-family: var(--font-1);
    color: var(--color-main);
    background: #fff;
}

.ojs-issue-toc,
.ojs-toc {
    margin-top: 8px;
}

.ojs-toc-section {
    margin-bottom: 28px;
}

.ojs-section-title,
.ojs-issue-toc .ojs-section-title {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 20px;
    font-family: var(--font-1);
    font-weight: bold;
    color: var(--color-main);
}

.ojs-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 64px;
    height: 2px;
    background: var(--cnnt-red, #c21f25);
}

.ojs-article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ojs-article-item,
.ojs-issue-toc .ojs-article-item {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.ojs-article-item:last-child,
.ojs-issue-toc .ojs-article-item:last-child {
    border-bottom: 0;
}

.ojs-article-item__body {
    min-width: 0;
}

.ojs-article-title,
.ojs-issue-toc .ojs-article-title {
    margin: 0 0 10px;
    font-size: 17px;
    font-family: var(--font-1);
    font-weight: bold;
    line-height: 1.5;
    text-transform: uppercase;
}

.ojs-article-title a,
.ojs-issue-toc .ojs-article-title a {
    color: var(--color-main);
    text-decoration: none;
}

.ojs-article-title a:hover,
.ojs-issue-toc .ojs-article-title a:hover {
    color: var(--color-highlight);
}

.ojs-meta,
.ojs-issue-toc .ojs-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    font-size: 13px;
    color: #1f1f1f;
}

.ojs-meta i {
    color: var(--cnnt-red, #c21f25);
}

.ojs-article-item .ojs-issue-summary__desc,
.ojs-issue-summary__desc {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.7;
    color: #1f1f1f;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
}

.ojs-article-item .ojs-issue-summary__actions {
    align-items: center;
}

.ojs-article-item .ojs-issue-summary__actions .ojs-meta {
    margin: 0;
}

body.ojs-public-page .ojs-meta,
body.ojs-public-page .ojs-meta span,
body.ojs-public-page .text-cnnt-body,
body.ojs-public-page .ojs-page-head__desc,
body.ojs-public-page .ojs-cnnt-hero__desc,
body.ojs-public-page .ojs-issue-chip {
    color: #1f1f1f !important;
}

.ojs-issue-summary {
    margin-bottom: 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.ojs-issue-summary__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.ojs-journal-sidebar {
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.ojs-journal-sidebar__actions .ojs-theme-btn--primary {
    width: 100%;
    justify-content: center;
}

.ojs-empty-state {
    padding: 28px 0;
    font-size: 15px;
    color: #1f1f1f;
}

/* Archive: force 4 covers / row on desktop */
body.ojs-public-page .papers-type-1 .row > [class*="col-lg-3"] {
    flex: 0 0 25%;
    max-width: 25%;
}
@media (max-width: 991.98px) {
    body.ojs-public-page .papers-type-1 .row > [class*="col-md-4"] {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}
@media (max-width: 767.98px) {
    body.ojs-public-page .papers-type-1 .row > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* End OJS public issue / archive polish */

/* =============================================================================
   Bootstrap grid shim (cnnthon ThemeAsset has no Bootstrap)
   ========================================================================== */
body.ojs-public-page .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}
body.ojs-public-page .row > [class*="col-"] {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}
body.ojs-public-page .mb-20 { margin-bottom: 20px !important; }
body.ojs-public-page .mt-25 { margin-top: 25px; }
body.ojs-public-page .mb-25 { margin-bottom: 25px; }
@media (min-width: 768px) {
    body.ojs-public-page .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    body.ojs-public-page .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    body.ojs-public-page .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    body.ojs-public-page .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
}
@media (min-width: 992px) {
    body.ojs-public-page .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    body.ojs-public-page .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    body.ojs-public-page .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    /* Prevent bare .col-6 from overriding lg columns when both classes are present */
    body.ojs-public-page .col-lg-3.col-6,
    body.ojs-public-page .col-lg-4.col-6 {
        flex-basis: auto;
    }
    body.ojs-public-page .col-lg-3.col-6 { flex: 0 0 25%; max-width: 25%; }
}
@media (min-width: 576px) {
    body.ojs-public-page .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}
body.ojs-public-page .col-6 { flex: 0 0 50%; max-width: 50%; }
