@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/**
 * Modern Tech Academic Theme (JOCSTEC / PadangTekno Style) - OJS 3.4
 */

:root {
    --tech-primary: #033692;
    --tech-primary-hover: #022566;
    --tech-primary-rgb: 3, 54, 146;
    --tech-accent: #00b4d8;
    --tech-gradient: linear-gradient(135deg, #033692 0%, #0d5bbd 50%, #021e54 100%);
    --tech-gradient-dark: linear-gradient(135deg, #02163b 0%, #033692 60%, #0548b8 100%);
    --tech-subtle: #eef4ff;
    --tech-bg: #f8fafc;
    --tech-card-bg: #ffffff;
    --tech-text-dark: #0f172a;
    --tech-text-muted: #64748b;
    --tech-border: #e2e8f0;
    --tech-radius: 12px;
    --tech-shadow: 0 4px 20px -2px rgba(3, 54, 146, 0.08);
}

/* Base */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--tech-text-dark);
    background-color: var(--tech-bg);
    line-height: 1.65;
}

/* Responsive images everywhere: never wider than their container */
img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--tech-text-dark);
    letter-spacing: -0.02em;
}

a {
    color: var(--tech-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--tech-accent);
}

/* 1. Top Bar */
.tech-top-bar {
    background: #02163b;
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.issn-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e2e8f0;
}

/* 2. Navbar */
.tech-navbar {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid var(--tech-subtle);
    padding: 0.75rem 0;
}

.tech-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-brand-logo {
    max-height: 48px;
    width: auto;
}

.tech-brand-initials {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tech-primary);
    display: block;
    line-height: 1.1;
}

.tech-brand-title {
    font-size: 0.85rem;
    color: var(--tech-text-muted);
    font-weight: 500;
    display: block;
}

.pkp_navigation_primary > li > a {
    font-weight: 600;
    font-size: 0.92rem;
    color: #334155 !important;
    padding: 0.5rem 0.9rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li.active > a {
    color: var(--tech-primary) !important;
    background: var(--tech-subtle);
}

/* 3. Tech Hero Section */
.tech-hero {
    background: var(--tech-gradient-dark);
    color: #ffffff;
    padding: 3.5rem 1.5rem;
    border-radius: var(--tech-radius);
    margin: 1.5rem 0 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2, 22, 59, 0.35);
}

.tech-hero-badge {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tech-hero-title {
    font-size: 2.3rem;
    color: #ffffff;
    margin: 1rem 0 0.75rem;
    font-weight: 800;
    line-height: 1.25;
}

.tech-hero-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #e2e8f0;
    max-width: 720px;
    margin-bottom: 1.75rem;
}

.btn-hero-cta-main {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
    border: none;
}

.btn-hero-cta-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.55);
}

.btn-hero-cta-outline {
    background: transparent;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.6);
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-cta-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

/* Showcase Cover Card */
.tech-showcase-card {
    background: #ffffff;
    border-radius: var(--tech-radius);
    padding: 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--tech-text-dark);
}

/* Covers: A4 portrait frame; wraparound covers show the front (right) side */
.tech-showcase-cover {
    display: block;
    width: 100%;
    aspect-ratio: 210 / 297;
    object-fit: cover;
    object-position: right center;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* 4. Metrics Bar */
.tech-metrics-bar {
    margin: 2rem 0;
}

.tech-metric-card {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--tech-shadow);
    transition: transform 0.2s ease;
}

.tech-metric-card:hover {
    transform: translateY(-3px);
    border-color: var(--tech-accent);
}

.tech-metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--tech-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tech-metric-value {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--tech-primary);
    line-height: 1.1;
}

.tech-metric-label {
    font-size: 0.85rem;
    color: var(--tech-text-muted);
    font-weight: 600;
}

/* 5. About Specs Grid */
.tech-about-card {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--tech-shadow);
}

.tech-about-spec-item {
    background: #f8fafc;
    border: 1px solid var(--tech-border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.tech-about-spec-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(3, 54, 146, 0.1);
    color: var(--tech-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.tech-about-spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--tech-text-muted);
    font-weight: 700;
    display: block;
}

.tech-about-spec-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--tech-text-dark);
}

/* 6. Indexing Logos Box */
.tech-indexing-card {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--tech-shadow);
    text-align: center;
}

.tech-indexing-custom-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tech-indexing-custom-content img {
    height: 48px;
    width: auto;
    object-fit: contain;
    padding: 4px 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tech-indexing-custom-content img:hover {
    transform: scale(1.05);
    border-color: var(--tech-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* 7. Tech Article Card */
.tech-article-card {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--tech-shadow);
}

.tech-article-card:hover {
    transform: translateY(-3px);
    border-color: var(--tech-primary);
    box-shadow: 0 8px 25px rgba(3, 54, 146, 0.12);
}

.tech-article-cover-img {
    display: block;
    width: 100%;
    max-width: 110px;
    aspect-ratio: 210 / 297;
    height: auto;
    object-fit: cover;
    object-position: right center;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.tech-article-category {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tech-article-title a {
    color: var(--tech-text-dark);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
}

.tech-article-title a:hover {
    color: var(--tech-primary);
}

.tech-article-authors {
    color: var(--tech-text-muted);
    font-size: 0.9rem;
    margin: 0.4rem 0 0.8rem;
    font-weight: 500;
}

.tech-doi-pill {
    background: #f1f5f9;
    color: var(--tech-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-tech-pdf {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.btn-tech-pdf:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}

/* Sidebar Widgets */
.tech-sidebar-block {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--tech-shadow);
}

.tech-sidebar-header {
    background: var(--tech-gradient);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    margin: -1.25rem -1.25rem 1rem -1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .tech-hero-title {
        font-size: 1.6rem;
    }
    .tech-metric-card {
        padding: 1rem;
    }
}

/* Navigation menus (primary + user) with dropdown submenus */
.pkp_navigation_primary,
.pkp_navigation_user {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pkp_navigation_primary > li,
.pkp_navigation_user > li {
    position: relative;
}

.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a {
    display: inline-block;
    text-decoration: none;
}

.pkp_navigation_user > li > a {
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
}

.pkp_navigation_primary > li:has(> ul) > a::after,
.pkp_navigation_user > li:has(> ul) > a::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    border-bottom: 0;
    vertical-align: middle;
}

.pkp_navigation_primary ul,
.pkp_navigation_user ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.pkp_navigation_user ul {
    left: auto;
    right: 0;
}

.pkp_navigation_primary > li:hover > ul,
.pkp_navigation_primary > li:focus-within > ul,
.pkp_navigation_user > li:hover > ul,
.pkp_navigation_user > li:focus-within > ul {
    display: block;
}

.pkp_navigation_primary ul a,
.pkp_navigation_user ul a {
    display: block;
    padding: 8px 16px;
    color: #334155;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
}

.pkp_navigation_primary ul a:hover,
.pkp_navigation_user ul a:hover {
    background: var(--tech-subtle);
    color: var(--tech-primary);
}

@media (max-width: 768px) {
    .pkp_navigation_primary ul,
    .pkp_navigation_user ul {
        position: static;
        box-shadow: none;
        border: 0;
        padding-left: 12px;
    }
}

/* Issue TOC heading (core issue_toc.tpl): cover as thumbnail beside description */
.obj_issue_toc img {
    max-width: 100%;
    height: auto;
}

.obj_issue_toc .heading {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    column-gap: 1.75rem;
    row-gap: 0.6rem;
    align-content: start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--tech-radius);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}

.obj_issue_toc .heading > * {
    grid-column: 2;
    margin: 0;
}

.obj_issue_toc .heading .cover {
    grid-column: 1;
    grid-row: 1 / span 20;
}

.obj_issue_toc .heading .cover img {
    display: block;
    width: 100%;
    aspect-ratio: 210 / 297;
    object-fit: cover;
    object-position: right center;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

.obj_issue_toc .heading .description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
}

.obj_issue_toc .heading .description p {
    margin: 0 0 0.6rem;
}

.obj_issue_toc .heading .pub_id,
.obj_issue_toc .heading .published {
    justify-self: start;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: var(--tech-subtle);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.82rem;
    color: #334155;
}

.obj_issue_toc .heading .pub_id .type,
.obj_issue_toc .heading .published .label {
    font-weight: 700;
    color: var(--tech-primary);
}

.obj_issue_toc .heading .pub_id a {
    color: #334155;
    word-break: break-all;
}

@media (max-width: 640px) {
    .obj_issue_toc .heading {
        grid-template-columns: 1fr;
        padding: 1.1rem;
    }

    .obj_issue_toc .heading > *,
    .obj_issue_toc .heading .cover {
        grid-column: 1;
        grid-row: auto;
    }

    .obj_issue_toc .heading .cover {
        max-width: 150px;
    }
}

/* Homepage two-column layout (content + right sidebar), as in demo.html */
.ma-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.ma-latest {
    margin-top: 2.5rem;
}

.ma-latest-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.ma-latest-issue {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tech-primary);
    text-decoration: none;
}

.ma-btn-archive {
    color: var(--tech-primary) !important;
    border-color: var(--tech-primary) !important;
}

/* Other pages: OJS sidebar beside main content */
.pkp_structure_content:has(> .pkp_structure_sidebar) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2rem;
    align-items: start;
}

.pkp_structure_main {
    min-width: 0;
}

/* OJS sidebar blocks styled like .tech-sidebar-block */
.ma-home-sidebar .pkp_block,
.pkp_structure_sidebar .pkp_block {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--tech-shadow);
    font-size: 0.9rem;
    overflow: hidden;
}

.ma-home-sidebar .pkp_block > .title,
.pkp_structure_sidebar .pkp_block > .title {
    display: block;
    background: var(--tech-gradient);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    margin: -1.25rem -1.25rem 1rem -1.25rem;
    text-transform: uppercase;
}

.ma-home-sidebar .pkp_block img,
.pkp_structure_sidebar .pkp_block img {
    max-width: 100%;
    height: auto;
}

.ma-home-sidebar .pkp_block ul,
.pkp_structure_sidebar .pkp_block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

@media (max-width: 992px) {
    .ma-home-layout,
    .pkp_structure_content:has(> .pkp_structure_sidebar) {
        grid-template-columns: 1fr;
    }
}

/* Issue archive list (core issue_summary.tpl): card with cover thumbnail */
.issues_archive,
.cmp_article_list,
.galleys_links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.galleys_links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.obj_issue_summary {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 1.25rem;
    align-content: start;
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius);
    box-shadow: var(--tech-shadow);
    padding: 1.1rem;
    margin-bottom: 1rem;
}

.obj_issue_summary > * {
    grid-column: 2;
    margin: 0;
}

.obj_issue_summary .cover {
    grid-column: 1;
    grid-row: 1 / span 3;
}

.obj_issue_summary .cover img,
.obj_issue_toc .heading .cover img {
    display: block;
    width: 100%;
    aspect-ratio: 210 / 297;
    object-fit: cover;
    object-position: right center;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.obj_issue_summary h2 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.obj_issue_summary h2 a {
    color: var(--tech-primary);
    text-decoration: none;
}

.obj_issue_summary .series {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.obj_issue_summary .description {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.obj_issue_summary .description p {
    margin: 0;
}

@media (max-width: 576px) {
    .obj_issue_summary {
        grid-template-columns: 90px minmax(0, 1fr);
        column-gap: 0.9rem;
    }
}

/* Breadcrumbs */
.cmp_breadcrumbs ol {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--tech-text-muted);
}

.cmp_breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cmp_breadcrumbs .current {
    color: var(--tech-text-dark);
    font-weight: 600;
}

/* Frontend forms (login, lost password, register) */
.page_login > h1,
.page_lost_password > h1,
.page_register > h1 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}

.page_login > p,
.page_lost_password > p,
.page_register > p {
    color: var(--tech-text-muted);
    font-size: 0.9rem;
}

.cmp_form.login,
.cmp_form.lost_password,
.cmp_form.register {
    background: #ffffff;
    border: 1px solid var(--tech-border);
    border-radius: var(--tech-radius);
    box-shadow: var(--tech-shadow);
    padding: 2rem;
    margin-top: 1rem;
}

.cmp_form.login,
.cmp_form.lost_password {
    max-width: 480px;
}

.cmp_form.register {
    max-width: 760px;
}

.cmp_form fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 1.25rem;
    min-width: 0;
}

.cmp_form fieldset fieldset {
    margin-top: 1rem;
}

.cmp_form legend:not(.pkp_screen_reader) {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tech-primary);
    padding: 0 0 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--tech-subtle);
    width: 100%;
}

.cmp_form .fields > div {
    margin-bottom: 1rem;
}

.cmp_form label {
    display: block;
}

.cmp_form .label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.cmp_form .required {
    color: #dc2626;
}

.cmp_form input[type="text"],
.cmp_form input[type="email"],
.cmp_form input[type="password"],
.cmp_form input[type="url"],
.cmp_form input[type="tel"],
.cmp_form select,
.cmp_form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    font: inherit;
    font-size: 0.95rem;
    color: var(--tech-text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cmp_form input:focus,
.cmp_form select:focus,
.cmp_form textarea:focus {
    outline: none;
    border-color: var(--tech-primary);
    box-shadow: 0 0 0 3px rgba(var(--tech-primary-rgb), 0.15);
}

.cmp_form .password a {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.83rem;
    font-weight: 600;
}

.cmp_form .checkbox label,
.cmp_form .optin label,
.cmp_form .consent label,
.cmp_form .reviewer label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
}

.cmp_form .checkbox .label,
.cmp_form .optin .label {
    display: inline;
    margin: 0;
    font-weight: 500;
}

.cmp_form input[type="checkbox"],
.cmp_form input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    flex-shrink: 0;
    accent-color: var(--tech-primary);
}

.cmp_form .buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 1.5rem;
}

.cmp_form .buttons .submit,
.cmp_form button[type="submit"] {
    background: var(--tech-gradient);
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.8rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(var(--tech-primary-rgb), 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cmp_form .buttons .submit:hover,
.cmp_form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(var(--tech-primary-rgb), 0.4);
}

.cmp_form .buttons a {
    font-weight: 600;
    font-size: 0.9rem;
}

.pkp_form_error,
.cmp_notification {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.pkp_form_error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.cmp_notification {
    background: var(--tech-subtle);
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

@media (max-width: 576px) {
    .cmp_form.login,
    .cmp_form.lost_password,
    .cmp_form.register {
        padding: 1.25rem;
    }
}

/* Responsive layout helpers (replace fixed inline grids) */
.ma-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ma-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ma-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.ma-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ma-article-meta > span {
    white-space: nowrap;
}

.tech-doi-pill {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ma-nav-toggle {
    display: none;
    background: var(--tech-subtle);
    color: var(--tech-primary);
    border: 1px solid var(--tech-border);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 768px) {
    /* Header: brand + hamburger in one row, menu collapses below */
    .ma-topbar-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .issn-badge {
        font-size: 0.72rem;
        padding: 2px 8px;
    }

    .ma-navbar-row {
        flex-wrap: nowrap !important;
    }

    .tech-brand {
        min-width: 0;
    }

    .tech-brand-logo {
        max-height: 40px;
    }

    .tech-brand-initials {
        font-size: 1.15rem;
    }

    .tech-brand-title {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ma-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .tech-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 1100;
        background: #ffffff;
        border-top: 1px solid var(--tech-border);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
        padding: 0.5rem 15px 1rem;
        max-height: 75vh;
        overflow-y: auto;
    }

    .tech-nav.is-open {
        display: block;
    }

    .tech-navbar {
        position: relative;
    }

    .tech-nav .pkp_navigation_primary {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .tech-nav .pkp_navigation_primary > li > a {
        display: block;
    }

    .tech-nav .pkp_navigation_primary ul {
        display: block;
        position: static;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 12px;
        min-width: 0;
    }

    .tech-nav .pkp_navigation_primary > li:has(> ul) > a::after {
        display: none;
    }

    /* Hero: stack text and current issue card */
    .tech-hero {
        padding: 2rem 1.1rem;
        margin-top: 1rem;
    }

    .ma-hero-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .tech-hero .tech-showcase-card {
        box-sizing: border-box;
        max-width: 300px;
        width: 100%;
        margin: 0 auto;
    }

    .tech-hero-desc {
        font-size: 0.92rem;
    }

    .ma-hero-actions > a {
        flex: 1 1 100%;
        justify-content: center;
    }

    /* Metrics: compact 2 x 2 */
    .ma-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .ma-metrics-grid .tech-metric-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 0.9rem;
    }

    .ma-metrics-grid .tech-metric-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .ma-metrics-grid .tech-metric-value {
        font-size: 1.35rem;
    }

    .tech-about-card {
        padding: 1.25rem;
    }

    .tech-article-card {
        padding: 1.1rem;
    }

    .tech-article-title a {
        font-size: 1.02rem;
    }
}
