/*
 * OWS Dashboard - public "Submit Manuscript / Guide for Authors" page.
 */
.ows_sg_page {
    max-width: 980px;
    margin: 0;
}

.ows_sg_breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7f79;
    margin-bottom: 14px;
}

.ows_sg_breadcrumb a {
    color: #17615a;
    text-decoration: none;
}

.ows_sg_breadcrumb_sep {
    color: #b8c7c1;
}

.ows_sg_header {
    margin-bottom: 32px;
}

.ows_sg_title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: #0d3b36;
}

.ows_sg_description {
    margin: 0 0 20px;
    max-width: 760px;
    line-height: 1.7;
    color: #435953;
}

.ows_sg_cta_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0d3b36;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.ows_sg_cta_button:hover {
    background: #17615a;
    color: #ffffff;
}

.ows_sg_cta_arrow {
    display: inline-block;
}

/* Step-by-step timeline */
.ows_sg_steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    background: #ffffff;
    border: 1px solid #e5eeea;
    border-radius: 10px;
    padding: 28px 24px;
    margin-bottom: 28px;
}

.ows_sg_step {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 0 10px;
}

.ows_sg_step_number {
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #eaf4f0;
    color: #17615a;
    font-weight: 700;
    font-size: 13px;
}

.ows_sg_step_icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    color: #17615a;
}

.ows_sg_step_icon svg {
    width: 100%;
    height: 100%;
}

.ows_sg_step_title {
    font-weight: 700;
    color: #0d3b36;
    margin-bottom: 6px;
    font-size: 14px;
}

.ows_sg_step_description {
    font-size: 12.5px;
    color: #6b7f79;
    line-height: 1.6;
}

.ows_sg_step_connector {
    flex: 0 0 auto;
    width: 60px;
    max-width: 8%;
    height: 1px;
    margin-top: 15px;
    background-image: linear-gradient(to right, #cfe3dc 50%, transparent 0%);
    background-size: 8px 1px;
    background-repeat: repeat-x;
}

/* Two-column cards */
.ows_sg_columns {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 22px;
    align-items: start;
}

.ows_sg_card {
    background: #ffffff;
    border: 1px solid #e5eeea;
    border-radius: 10px;
    padding: 22px 24px;
}

.ows_sg_card_title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #0d3b36;
}

.ows_sg_card_subtitle {
    margin: 0 0 16px;
    font-size: 12.5px;
    color: #6b7f79;
}

/* Templates & forms */
.ows_sg_templates_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ows_sg_template_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e5eeea;
    border-radius: 6px;
    text-decoration: none;
    color: #0d3b36;
}

.ows_sg_template_item:hover {
    border-color: #17615a;
    background: #f6faf8;
}

.ows_sg_template_icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #ffffff;
    background: #6b7f79;
}

.ows_sg_template_icon svg {
    width: 16px;
    height: 16px;
}

.ows_sg_template_icon--word {
    background: #2952a3;
}

.ows_sg_template_icon--latex {
    background: #2f2f2f;
}

.ows_sg_template_icon--pdf {
    background: #b3261e;
}

.ows_sg_template_icon--shield {
    background: #17615a;
}

.ows_sg_template_icon_text {
    font-size: 10px;
    font-weight: 700;
}

.ows_sg_template_label {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ows_sg_template_download_icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #6b7f79;
}

.ows_sg_template_download_icon svg {
    width: 100%;
    height: 100%;
}

.ows_sg_empty_hint {
    color: #6b7f79;
    font-size: 13px;
}

/* Before you submit */
.ows_sg_checklist {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.ows_sg_checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #37473f;
    line-height: 1.6;
}

.ows_sg_check_icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: #17615a;
}

.ows_sg_check_icon svg {
    width: 100%;
    height: 100%;
}

.ows_sg_note {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: #f6faf8;
    border: 1px solid #e5eeea;
    border-radius: 6px;
}

.ows_sg_note_icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #17615a;
}

.ows_sg_note_icon svg {
    width: 100%;
    height: 100%;
}

.ows_sg_note p {
    margin: 0;
    font-size: 12.5px;
    color: #37473f;
    line-height: 1.6;
}

.ows_sg_note a {
    color: #17615a;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    .ows_sg_steps {
        flex-wrap: wrap;
        gap: 20px;
    }

    .ows_sg_step {
        flex: 1 1 40%;
    }

    .ows_sg_step_connector {
        display: none;
    }

    .ows_sg_columns {
        grid-template-columns: 1fr;
    }

    .ows_sg_templates_grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================\n * 3.10.1146.0 - Submission Guide public page: restrained site-theme palette\n * --------------------------------------------------------------------------\n * Keep the page mostly neutral/white and derive only intentional accents from\n * the manager-selected Site Color. This makes the page portable between OJS\n * journals without turning every surface into a colored block.\n * ========================================================================== */
.ows_sg_page {
    --ows-sg-accent: var(--ows-primary, #0d918f);
    --ows-sg-accent-strong: color-mix(in srgb, var(--ows-sg-accent) 86%, #000000 14%);
    --ows-sg-accent-soft: color-mix(in srgb, var(--ows-sg-accent) 7%, #ffffff 93%);
    --ows-sg-accent-soft-2: color-mix(in srgb, var(--ows-sg-accent) 12%, #ffffff 88%);
    --ows-sg-border: color-mix(in srgb, var(--ows-sg-accent) 18%, #dfe4e8 82%);
    --ows-sg-text: #26343d;
    --ows-sg-muted: #66757f;
}

/* Keep the typography neutral; theme color is reserved for navigation/action. */
.ows_sg_breadcrumb,
.ows_sg_description,
.ows_sg_step_description,
.ows_sg_card_subtitle,
.ows_sg_empty_hint {
    color: var(--ows-sg-muted) !important;
}

.ows_sg_title,
.ows_sg_step_title,
.ows_sg_card_title,
.ows_sg_template_item,
.ows_sg_checklist li,
.ows_sg_note p {
    color: var(--ows-sg-text) !important;
}

.ows_sg_breadcrumb a,
.ows_sg_note a {
    color: var(--ows-sg-accent) !important;
}

.ows_sg_breadcrumb a:hover,
.ows_sg_note a:hover {
    color: var(--ows-sg-accent-strong) !important;
}

/* One strong action color, directly inherited from the active site theme. */
.ows_sg_cta_button {
    background: var(--ows-sg-accent) !important;
    color: #ffffff !important;
    border-color: var(--ows-sg-accent) !important;
}

.ows_sg_cta_button:hover,
.ows_sg_cta_button:focus {
    background: var(--ows-sg-accent-strong) !important;
    color: #ffffff !important;
    border-color: var(--ows-sg-accent-strong) !important;
}

/* White cards with only a very light theme-aware border. */
.ows_sg_steps,
.ows_sg_card {
    background: #ffffff !important;
    border-color: var(--ows-sg-border) !important;
}

/* Small accents only: step chips, line icons and connector. */
.ows_sg_step_number {
    background: var(--ows-sg-accent-soft-2) !important;
    color: var(--ows-sg-accent) !important;
}

.ows_sg_step_icon,
.ows_sg_check_icon,
.ows_sg_note_icon {
    color: var(--ows-sg-accent) !important;
}

.ows_sg_step_connector {
    background-image: linear-gradient(
        to right,
        color-mix(in srgb, var(--ows-sg-accent) 24%, #ffffff 76%) 50%,
        transparent 0%
    ) !important;
}

/* Template rows remain white; theme appears only on hover and tiny icons. */
.ows_sg_template_item {
    background: #ffffff !important;
    border-color: var(--ows-sg-border) !important;
}

.ows_sg_template_item:hover,
.ows_sg_template_item:focus {
    border-color: var(--ows-sg-accent) !important;
    background: var(--ows-sg-accent-soft) !important;
}

.ows_sg_template_icon,
.ows_sg_template_icon--word,
.ows_sg_template_icon--latex,
.ows_sg_template_icon--pdf,
.ows_sg_template_icon--shield {
    background: color-mix(in srgb, var(--ows-sg-accent) 74%, #68756f 26%) !important;
    color: #ffffff !important;
}

.ows_sg_template_download_icon {
    color: color-mix(in srgb, var(--ows-sg-accent) 68%, #66757f 32%) !important;
}

/* The information note gets a faint tint, not a solid theme-colored panel. */
.ows_sg_note {
    background: var(--ows-sg-accent-soft) !important;
    border-color: var(--ows-sg-border) !important;
}

/* ========================================================================== 
 * 3.10.1151.0 - Submit Manuscript breadcrumb parity + About-style title rule
 * --------------------------------------------------------------------------
 * Match the compact breadcrumb treatment used on the other public pages and
 * add the same short Site Color underline used by About the Journal.
 * Visual-only; no submission routing or button behaviour is changed.
 * ========================================================================== */
.ows_sg_breadcrumb {
    color: #6f7780 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.ows_sg_breadcrumb a,
.ows_sg_breadcrumb a:visited {
    color: #1f2933 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.ows_sg_breadcrumb a:hover,
.ows_sg_breadcrumb a:focus {
    color: #1f2933 !important;
    text-decoration: none !important;
}

.ows_sg_breadcrumb_sep {
    color: #aeb5bc !important;
}

.ows_sg_title {
    position: relative !important;
    margin: 0 0 18px !important;
    padding-bottom: 14px !important;
}

.ows_sg_title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    background: var(--ows-sg-accent) !important;
    border-radius: 2px;
}
