/*
 * OWS Dashboard 3.10.433.0 — compact REA homepage browse navigation.
 *
 * The old standalone rounded accordions have been replaced by one quiet
 * BROWSE group matching the approved reference: flat parent rows, Archive
 * expanded by default, compact bordered volume rows, and hidden issue rows
 * that appear only when their volume is opened.
 */

.ows_sidebar_browse {
    box-sizing: border-box;
    width: 100%;
    margin: 16px 0 14px;
    padding: 16px 0 0;
    border-top: 1px solid #edf1ef;
    background: transparent;
    color: #3d504b;
}

.ows_sidebar_browse__label {
    margin: 0 0 7px;
    padding: 0 12px;
    color: #80908c;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ows_sidebar_browse__section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.ows_sidebar_browse__row {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #3d504b;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}

.ows_sidebar_browse__row:hover,
.ows_sidebar_browse__row:focus-visible {
    background: var(--ows-mint-soft, #f6faf8);
    color: var(--ows-primary, #1a1a1a);
    outline: none;
}

.ows_sidebar_browse__icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: #5c7470;
}

.ows_sidebar_browse__row > span:not(.ows_sidebar_browse__archiveChevron) {
    min-width: 0;
}

.ows_sidebar_browse__archiveChevron,
.ows_sidebar_browse__volumeChevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-left: auto;
    color: #607570;
    transition: transform .18s ease;
}

.ows_sidebar_browse__chevronSvg {
    display: block;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Parent content is closed by default. */
.ows_sidebar_browse__content {
    display: none;
}

.ows_sidebar_browse__toggle:checked + .ows_sidebar_browse__row + .ows_sidebar_browse__content {
    display: block;
}

/* Archive is open by default. Rotate its right chevron from > to ^. */
.ows_sidebar_browse__toggle:checked + .ows_sidebar_browse__row--archive .ows_sidebar_browse__archiveChevron {
    transform: rotate(-90deg);
}

.ows_sidebar_browse__archiveContent {
    overflow: hidden;
    margin: 0 8px 2px;
    border: 1px solid #e7eeeb;
    border-radius: 5px;
    background: #ffffff;
}

.ows_sidebar_browse__volume {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #edf1ef;
}

.ows_sidebar_browse__volume:last-child {
    border-bottom: 0;
}

.ows_sidebar_browse__volumeRow {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px 8px 32px;
    background: #ffffff;
    color: #53645f;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}

.ows_sidebar_browse__volumeRow:hover,
.ows_sidebar_browse__volumeRow:focus-visible {
    background: var(--ows-mint-soft, #f6faf8);
    color: var(--ows-primary, #1a1a1a);
    outline: none;
}

.ows_sidebar_browse__volumeTitle {
    min-width: 0;
    flex: 1 1 auto;
}

.ows_sidebar_browse__volumeToggle:checked + .ows_sidebar_browse__volumeRow .ows_sidebar_browse__volumeChevron {
    transform: rotate(90deg);
}

.ows_sidebar_browse__issues {
    display: none;
    padding: 3px 0 6px;
    border-top: 1px solid #f0f3f2;
    background: #fbfcfc;
}

.ows_sidebar_browse__volumeToggle:checked + .ows_sidebar_browse__volumeRow + .ows_sidebar_browse__issues {
    display: block;
}

.ows_sidebar_browse__issue {
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding: 7px 12px 7px 34px;
    color: #556762 !important;
    font-size: 12px;
    line-height: 1.35;
    text-decoration: none !important;
}

.ows_sidebar_browse__issue:hover,
.ows_sidebar_browse__issue:focus-visible {
    background: var(--ows-mint-soft, #f6faf8);
    color: var(--ows-primary, #1a1a1a) !important;
    text-decoration: none !important;
    outline: none;
}

.ows_sidebar_browse__issueIcon {
    display: block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-top: 1px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ows_sidebar_browse__aipContent {
    margin: 0 8px 3px;
    padding: 3px 0;
    border: 1px solid #e7eeeb;
    border-radius: 5px;
    background: #ffffff;
}

.ows_sidebar_browse__empty {
    display: block;
    padding: 8px 12px 8px 34px;
    color: #7a8a86;
    font-size: 11.5px;
    line-height: 1.35;
}

/* Accepted Articles in Press without a normal published URL remain readable
 * but intentionally do not pretend to be clickable public article links. */
.ows_sidebar_browse__issue.is-unpublished {
    cursor: default;
}

/* OWS Dashboard 3.10.120.0 — Articles in Press archive list (public page). */
.ows_aip_archive_list {
    margin: 18px 0 28px;
}

.ows_aip_archive_item {
    padding: 14px 0;
    border-bottom: 1px solid #e1e5ea;
}

.ows_aip_archive_item:first-child {
    border-top: 1px solid #e1e5ea;
}

.ows_aip_archive_item__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    line-height: 1.45;
}

.ows_aip_archive_item__title a {
    color: inherit;
    text-decoration: none;
}

.ows_aip_archive_item__title a:hover,
.ows_aip_archive_item__title a:focus {
    text-decoration: underline;
}

.ows_aip_archive_item__status {
    color: #68717c;
    font-size: .9rem;
}

.ows_aip_archive_empty {
    margin: 16px 0;
    color: #68717c;
}

/*
 * OWS Dashboard 3.10.436.0 — flat archive volumes.
 * Remove the outlined card around the volume list so Volume rows use the same
 * quiet, borderless visual language as the rest of the left navigation.
 */
html body .pkp_structure_sidebar.left .ows_sidebar_browse__archiveContent {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html body .pkp_structure_sidebar.left .ows_sidebar_browse__volume {
    border-bottom: 0 !important;
}

html body .pkp_structure_sidebar.left .ows_sidebar_browse__volumeRow {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}
