/* ============================================================
   JOURNAL OF ORANGE TECHNOLOGY (JOT)
   Modern Academic Editorial Design
   OJS 3.5.0.4 | Default Theme

   Design direction:
   Academic editorial × Artificial Informatics
   Floating journal canvas over a subtle digital-network background.

   Brand palette:
   Midnight Navy  #10243E
   Deep Navy      #0D1829
   Blue           #1A3A5C
   Orange         #E98A2B
   Light Gray     #F5F7FA
   White          #FFFFFF

   Notes:
   - Retains the existing JOT banner, navigation, footer notice,
     article-card structure, and custom .hover table styling.
   - Styles existing OJS sidebar blocks; it does not create content.
   - Dropdowns remain unclipped by the floating page container.
   ============================================================ */


/* ============================================================
   01. DESIGN TOKENS & BASE
   ============================================================ */

:root {
    --jot-navy: #10243E;
    --jot-deep-navy: #0D1829;
    --jot-blue: #1A3A5C;
    --jot-link: #1A5276;
    --jot-orange: #E98A2B;
    --jot-text: #344256;
    --jot-muted: #64748B;
    --jot-border: #E2E8F0;
    --jot-border-strong: #C7D2DF;
    --jot-surface: #FFFFFF;
    --jot-surface-soft: #F7F9FC;
    --jot-page-bg: #E9EEF5;
}

html {
    min-height: 100%;
    background: var(--jot-page-bg);
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    color: var(--jot-text);
    background-color: var(--jot-page-bg) !important;

    /* Subtle digital-network / data-grid motif */
    background-image:
        radial-gradient(ellipse at 12% 16%,
            rgba(233, 138, 43, 0.12), transparent 30%),
        radial-gradient(ellipse at 88% 76%,
            rgba(26, 58, 92, 0.12), transparent 34%),
        radial-gradient(circle,
            rgba(26, 58, 92, 0.22) 1.25px, transparent 1.8px),
        radial-gradient(circle,
            rgba(233, 138, 43, 0.24) 1.35px, transparent 1.9px),
        linear-gradient(rgba(26, 58, 92, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 58, 92, 0.035) 1px, transparent 1px);

    background-size:
        auto,
        auto,
        76px 76px,
        152px 152px,
        38px 38px,
        38px 38px;

    background-position:
        center,
        center,
        0 0,
        38px 38px,
        center,
        center;

    background-attachment: fixed;
    background-repeat: repeat;
}

* {
    box-sizing: border-box;
}

a {
    transition: color 0.2s ease, background-color 0.2s ease,
                border-color 0.2s ease;
}


/* ============================================================
   02. GENERAL TABLE & HOVER
   Existing custom table class retained
   ============================================================ */

.hover {
    width: 100%;
    border-collapse: collapse;
}

.hover th {
    height: 30px;
    background: #FFF8DC;
    color: #191970;
}

.hover td {
    height: 30px;
    padding: 3px 6px 3px;
    vertical-align: middle;
    border-bottom: 1px solid #FFFFFF;
    text-align: center;
}

.hover td a {
    display: block;
    width: 100%;
}

.hover tr {
    background: #FFF8DC;
    color: #000000;
}

.hover tr:hover {
    background-color: #FFF8DC;
}

.hover tr a {
    color: #000000;
}

.hover a:hover {
    color: navy;
}


/* ============================================================
   03. CENTERED FLOATING JOURNAL CANVAS
   ============================================================ */

.pkp_structure_page {
    position: relative;
    z-index: 1;
    width: calc(100% - 48px) !important;
    max-width: 1380px !important;
    margin: 24px auto !important;

    background: var(--jot-surface) !important;
    border: 1px solid rgba(199, 210, 223, 0.9) !important;
    border-radius: 9px !important;

    box-shadow:
        0 12px 36px rgba(16, 36, 62, 0.09),
        0 2px 8px rgba(16, 36, 62, 0.04) !important;

    /* Do not clip OJS navigation dropdowns */
    overflow: visible !important;
}

.pkp_structure_content {
    background: var(--jot-surface) !important;
}

.pkp_structure_main {
    padding-top: 28px;
    padding-bottom: 36px;
    color: var(--jot-text);
    font-size: 15px;
    line-height: 1.75;
}

.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_main h4 {
    color: var(--jot-navy);
    line-height: 1.35;
}

.pkp_structure_main a {
    color: var(--jot-link);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.pkp_structure_main a:hover {
    color: var(--jot-orange);
}

.pkp_brand_footer {
    display: none;
}


/* ============================================================
   04. ARTICLE LIST CARDS
   ============================================================ */

.obj_article_summary {
    position: relative;
    margin: 0 0 22px !important;
    padding: 20px 21px 19px !important;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(16, 36, 62, 0.012) 0,
            rgba(16, 36, 62, 0.012) 1px,
            transparent 1px,
            transparent 5px
        ),
        #FFFFFF !important;

    border: 1px solid var(--jot-border-strong) !important;
    border-left: 3px solid var(--jot-blue) !important;
    border-radius: 5px 5px 13px 5px !important;

    box-shadow:
        0 3px 9px rgba(16, 36, 62, 0.075),
        0 1px 2px rgba(16, 36, 62, 0.035) !important;

    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease,
        background-color 0.22s ease !important;
}

.obj_article_summary .title {
    margin: 0 0 8px !important;
    color: var(--jot-link) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
}

.obj_article_summary .title a {
    color: var(--jot-link) !important;
    text-decoration: none !important;
}

.obj_article_summary .title a:hover {
    color: var(--jot-orange) !important;
}

.obj_article_summary .authors {
    margin-bottom: 10px !important;
    color: #46566B !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

.obj_article_summary .pages {
    color: var(--jot-muted) !important;
    font-size: 12px !important;
}

.obj_article_summary .galleys_links {
    margin-top: 11px !important;
}

.obj_article_summary .galleys_links a {
    display: inline-block;
    padding: 6px 12px !important;

    color: var(--jot-blue) !important;
    background: #FFFFFF !important;
    border: 1px solid var(--jot-blue) !important;
    border-radius: 4px !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;

    transition: all 0.2s ease !important;
}

.obj_article_summary .galleys_links a:hover {
    color: #FFFFFF !important;
    background: var(--jot-navy) !important;
    border-color: var(--jot-navy) !important;
}

.obj_article_summary:hover {
    background-color: #F9FBFD !important;
    border-color: var(--jot-orange) !important;
    border-left-color: var(--jot-orange) !important;

    box-shadow:
        0 7px 18px rgba(16, 36, 62, 0.12),
        0 2px 6px rgba(233, 138, 43, 0.10) !important;

    transform: translateY(-2px);
}


/* ============================================================
   05. ARTICLE DETAIL PAGE
   ============================================================ */

.obj_article_details .page_title {
    margin-top: 0;
    color: var(--jot-navy);
    font-weight: 700;
    line-height: 1.35;
}

.obj_article_details .abstract {
    color: var(--jot-text);
    line-height: 1.85;
    text-align: justify;
}

.obj_article_details .item.references {
    color: var(--jot-text);
    line-height: 1.75;
    text-align: justify;
    overflow-wrap: anywhere;
}

.obj_article_details .item {
    margin-bottom: 19px;
}

/* Keep the article's reading column clean and readable */
.obj_article_details .main_entry {
    min-width: 0;
}


/* ============================================================
   06. FULL-WIDTH BANNER HEADER
   Existing JOT banner image behavior retained
   ============================================================ */

.pkp_structure_head {
    background: var(--jot-deep-navy) !important;
    border-bottom: 0 !important;
}

.pkp_head_wrapper {
    width: 100% !important;
    max-width: none !important;
    padding-top: 0 !important;
}

.has_site_logo .pkp_head_wrapper {
    padding-top: 0 !important;
}

.pkp_site_name_wrapper {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_site_name {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
    white-space: normal !important;
    font-size: 0 !important;
    text-align: center !important;
}

.pkp_site_name .is_img {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_site_name .is_img img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ============================================================
   07. PRIMARY NAVIGATION
   ============================================================ */

.pkp_site_nav_menu {
    position: relative !important;
    z-index: 20;
    padding: 0 20px !important;
    background: var(--jot-blue) !important;
}

.pkp_navigation_primary_row {
    max-width: none !important;
}

.pkp_navigation_primary > li > a {
    color: #FFFFFF !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: var(--jot-orange) !important;
    border-color: var(--jot-orange) !important;
}

/* Dropdown panel */
.pkp_navigation_primary ul {
    z-index: 30;
}

.pkp_navigation_primary ul ul {
    background: #FFFFFF !important;
    border: 1px solid #E3E9F0 !important;
    border-radius: 4px;
    box-shadow: 0 8px 22px rgba(16, 36, 62, 0.14) !important;
}

.pkp_navigation_primary ul ul a {
    color: var(--jot-blue) !important;
    border-left: 2px solid transparent !important;
    text-decoration: none !important;
}

.pkp_navigation_primary ul ul a:hover,
.pkp_navigation_primary ul ul a:focus {
    color: var(--jot-navy) !important;
    background: #F5F7FA !important;
    border-left-color: var(--jot-orange) !important;
}


/* ============================================================
   08. USER NAVIGATION — LOGIN / REGISTER
   ============================================================ */

.pkp_navigation_user_wrapper {
    position: static !important;
    float: right !important;
    margin-right: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    transform: none !important;
}

.pkp_navigation_user.pkp_navigation_user {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.pkp_navigation_user > li {
    display: inline-block !important;
}

.pkp_navigation_user > li > a {
    padding: 8px 12px !important;
    color: #FFFFFF !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
    color: var(--jot-orange) !important;
}


/* ============================================================
   09. SEARCH NAVIGATION
   ============================================================ */

.pkp_navigation_search_wrapper {
    float: right !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.pkp_navigation_search_wrapper a {
    padding: 8px 12px !important;
    color: #FFFFFF !important;
}

.pkp_navigation_search_wrapper a:hover,
.pkp_navigation_search_wrapper a:focus {
    color: var(--jot-orange) !important;
    border-color: var(--jot-orange) !important;
}


/* ============================================================
   10. MOBILE NAVIGATION
   ============================================================ */

.pkp_site_nav_toggle {
    z-index: 40;
}


/* ============================================================
   11. SIDEBAR — GENERAL BLOCKS
   Styles existing OJS sidebar content only
   ============================================================ */

.pkp_structure_sidebar {
    padding-top: 28px;
    padding-bottom: 30px;
    color: #526174;
    font-size: 13px;
    line-height: 1.7;
}

.pkp_structure_sidebar .pkp_block {
    margin-bottom: 18px;
    padding: 17px 18px;

    background: #FFFFFF;
    border: 1px solid #E4EAF1;
    border-radius: 5px;

    box-shadow: 0 2px 8px rgba(16, 36, 62, 0.04);
}

.pkp_structure_sidebar .pkp_block .title {
    position: relative;
    display: block;
    margin: 0 0 12px !important;
    padding: 0 0 10px;

    color: var(--jot-navy) !important;
    border-bottom: 1px solid #E9EDF2;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5;
}

.pkp_structure_sidebar .pkp_block .title::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--jot-orange);
    content: "";
}

.pkp_structure_sidebar .pkp_block .content {
    color: #526174;
    font-size: 13px;
    line-height: 1.7;
}

.pkp_structure_sidebar .pkp_block .content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pkp_structure_sidebar .pkp_block .content li {
    padding: 7px 0;
    border-bottom: 1px solid #F0F2F5;
    line-height: 1.55;
}

.pkp_structure_sidebar .pkp_block .content li:last-child {
    border-bottom: 0;
}

.pkp_structure_sidebar .pkp_block .content a {
    color: #344B65;
    text-decoration: none;
}

.pkp_structure_sidebar .pkp_block .content a:hover,
.pkp_structure_sidebar .pkp_block .content a:focus {
    color: var(--jot-orange) !important;
}


/* ============================================================
   12. SIDEBAR — BROWSE JOURNAL
   ============================================================ */

.pkp_structure_sidebar .block_browse {
    font-size: 13px;
}

.pkp_structure_sidebar .block_browse .has_submenu {
    margin-top: 12px;
    color: var(--jot-navy);
    font-size: 13px;
    font-weight: 700;
}

.pkp_structure_sidebar .block_browse .has_submenu ul {
    margin-top: 6px;
    padding-top: 5px;
    font-weight: 400;
}

.pkp_structure_sidebar .block_browse .is_sub {
    margin-left: 12px;
}

.pkp_structure_sidebar .block_browse .current a {
    padding-left: 8px;
    color: var(--jot-navy);
    border-left: 3px solid var(--jot-orange);
}


/* ============================================================
   13. SIDEBAR — SEARCH FIELDS
   ============================================================ */

.pkp_structure_sidebar input[type="text"],
.pkp_structure_sidebar input[type="search"],
.pkp_structure_sidebar input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    padding: 8px 10px;

    color: var(--jot-text);
    background: #FFFFFF;
    border: 1px solid #DCE3EB;
    border-radius: 4px;

    font-size: 13px;
}

.pkp_structure_sidebar input:focus {
    border-color: var(--jot-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.09);
}


/* ============================================================
   14. SIDEBAR — MAKE A SUBMISSION
   ============================================================ */

.pkp_structure_sidebar .block_make_submission a {
    display: block;
    padding: 11px 14px;

    color: #FFFFFF !important;
    background: var(--jot-navy);
    border: 1px solid var(--jot-navy);
    border-radius: 4px;

    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;

    transition: background 0.2s ease, border-color 0.2s ease;
}

.pkp_structure_sidebar .block_make_submission a:hover,
.pkp_structure_sidebar .block_make_submission a:focus {
    color: #FFFFFF !important;
    background: var(--jot-orange);
    border-color: var(--jot-orange);
}


/* ============================================================
   15. SIDEBAR — INFORMATION / LANGUAGE / CUSTOM BLOCKS
   ============================================================ */

.pkp_structure_sidebar .block_information a,
.pkp_structure_sidebar .block_language_toggle a {
    font-size: 13px;
}

.pkp_structure_sidebar .pkp_block.block_custom {
    background: #FFFFFF;
}

.pkp_structure_sidebar .block_custom p {
    margin: 7px 0;
    line-height: 1.7;
}

.pkp_structure_sidebar .block_custom ul {
    padding-left: 0;
}


/* ============================================================
   16. FOOTER & INDEPENDENCE NOTICE
   ============================================================ */

.pkp_structure_footer_wrapper {
    background: #F7F9FC !important;
    border-top: 1px solid #E3E9F0 !important;
}

.pkp_structure_footer_wrapper::after {
    display: block;
    margin-top: 0;
    padding: 14px 20px;

    color: #64748B;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;

    content: "Notice: Orange Technology is an independent academic initiative with no affiliation to any telecommunications company, commercial technology firm, or similarly-named business entity. Read full statement at orangetechnology.org/disclaimer";

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    line-height: 1.65;
    text-align: center;
}


/* ============================================================
   17. TABLET RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
    .pkp_structure_sidebar {
        margin-top: 24px;
    }

    .pkp_structure_sidebar .pkp_block {
        margin-bottom: 14px;
        padding: 16px;
    }
}


/* ============================================================
   18. MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 767px) {
    body {
        background-color: #F1F4F8 !important;
        background-image:
            radial-gradient(circle at 10% 10%,
                rgba(233, 138, 43, 0.08), transparent 36%),
            linear-gradient(rgba(26, 58, 92, 0.028) 1px, transparent 1px),
            linear-gradient(90deg, rgba(26, 58, 92, 0.028) 1px, transparent 1px);
        background-size: auto, 32px 32px, 32px 32px;
        background-attachment: scroll;
    }

    .pkp_structure_page {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .pkp_structure_main {
        padding-top: 18px;
        padding-bottom: 24px;
        font-size: 14px;
    }

    .pkp_structure_sidebar {
        padding-top: 15px;
        padding-bottom: 20px;
    }

    .obj_article_summary {
        margin-bottom: 16px !important;
        padding: 15px !important;
    }

    .obj_article_summary .title {
        font-size: 14px !important;
    }

    .pkp_structure_footer_wrapper::after {
        padding: 12px 15px;
        font-size: 10px;
    }

    .pkp_site_nav_menu {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }
}


/* ============================================================
   19. REDUCED MOTION ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .obj_article_summary:hover {
        transform: none;
    }
}
