/* ==========================================================================
   BRIDA Modern 2026 — child theme stylesheet (v2)
   Portal jurnal BRIDA Kabupaten Buton (jurnal.butonkab.go.id)
   Arah seni 2026: Plus Jakarta Sans (huruf Indonesia), header kaca lengket,
   gradien mesh lembut, kartu radius besar + bayangan berwarna, gerak halus,
   pil galley berikon, aksesibilitas (focus-visible, reduced-motion, contrast).
   Loads AFTER the parent stylesheet — cascade tetap milik child theme.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    /* Warna — identitas institusional: navy dalam + tosca + emas */
    --bm-bg: #f2f6fb;
    --bm-surface: #ffffff;
    --bm-surface-2: #f7fafd;
    --bm-ink: #132738;
    --bm-muted: #5b7086;
    --bm-line: #e2eaf3;
    --bm-line-soft: rgba(11, 58, 94, .08);

    --bm-navy: #0b3a5e;
    --bm-navy-deep: #06273f;
    --bm-navy-ink: #041a2c;
    --bm-navy-soft: #14618f;

    --bm-accent: #14b8a6;
    --bm-accent-deep: #0d9488;
    --bm-accent-soft: #e3f8f4;

    --bm-gold: #e3b23c;
    --bm-gold-soft: #fdf4dd;

    /* Bentuk & bayangan */
    --bm-radius: 18px;
    --bm-radius-sm: 12px;
    --bm-radius-lg: 26px;
    --bm-shadow: 0 1px 2px rgba(6, 39, 63, .04), 0 12px 30px -8px rgba(6, 39, 63, .10);
    --bm-shadow-hover: 0 2px 4px rgba(6, 39, 63, .05), 0 22px 44px -10px rgba(6, 39, 63, .18);
    --bm-shadow-accent: 0 18px 38px -12px rgba(13, 148, 136, .35);

    /* Gerak */
    --bm-ease: cubic-bezier(.2, .7, .2, 1);

    /* Tipografi */
    --bm-font: 'Plus Jakarta Sans', ui-sans-serif, -apple-system, BlinkMacSystemFont,
        'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

/* ---------- Base ------------------------------------------------------- */

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    font-family: var(--bm-font);
    background:
        radial-gradient(900px 340px at 88% -60px, rgba(20, 184, 166, .10), transparent 62%),
        radial-gradient(760px 300px at -8% 12%, rgba(11, 58, 94, .08), transparent 60%),
        var(--bm-bg);
    background-attachment: fixed;
    color: var(--bm-ink);
    line-height: 1.65;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.24;
    color: var(--bm-ink);
    text-wrap: balance;
}

a {
    color: var(--bm-navy-soft);
    text-decoration: none;
    transition: color .18s var(--bm-ease);
}

a:hover, a:focus {
    color: var(--bm-accent-deep);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: rgba(20, 184, 166, .28);
    color: var(--bm-navy-ink);
}

/*Scrollbar halus (Chromium/WebKit/Firefox modern)*/
* {
    scrollbar-width: thin;
    scrollbar-color: #b9c9d9 transparent;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b3c5d6, #c6d5e2);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

/* Anchor di balik header lengket */
:target { scroll-margin-top: 130px; }

/* ---------- Header & masthead (kaca lengket) ---------------------------- */

.pkp_structure_head {
    position: sticky;
    top: 0;
    z-index: 40;
    background:
        radial-gradient(520px 180px at 86% -40px, rgba(20, 184, 166, .35), transparent 65%),
        linear-gradient(135deg, rgba(11, 58, 94, .94) 0%, rgba(6, 39, 63, .97) 72%, rgba(4, 26, 44, .98) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 8px 26px -12px rgba(4, 26, 44, .55);
    transition: box-shadow .3s var(--bm-ease), background-color .3s var(--bm-ease);
}

.pkp_structure_head::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--bm-accent) 0%, #38c9b6 38%, var(--bm-gold) 100%);
    opacity: .95;
}

/* Bayangan saat halaman digulir (dikendalikan JS: .bm-is-scrolled) */
.pkp_structure_head.bm-is-scrolled {
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 14px 34px -14px rgba(4, 26, 44, .65);
}

.pkp_structure_head .pkp_container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem 1.5rem;
    padding-top: 1.05rem;
    padding-bottom: .35rem;
    max-width: 1180px;
}

.pkp_site_name {
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
}

.pkp_site_name a {
    color: #fff;
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: -.025em;
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    line-height: 1.2;
    transition: color .18s var(--bm-ease, ease);
}

.pkp_site_name a:hover {
    color: #d9fff7;
}

.pkp_site_name img {
    border-radius: var(--bm-radius-sm);
    box-shadow: 0 0 0 2px rgba(227, 178, 60, .55), 0 6px 18px rgba(0, 0, 0, .3);
    max-height: 62px;
    width: auto;
    transition: transform .25s var(--bm-ease), box-shadow .25s var(--bm-ease);
}

.pkp_site_name a:hover img {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 0 2px rgba(227, 178, 60, .8), 0 10px 24px rgba(0, 0, 0, .35);
}

/* Blok pencarian di header */
.pkp_head_search .pkp_search {
    margin: 0;
}

.pkp_head_search .search_input {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
    border-radius: 999px;
    padding-inline: 1rem;
}

.pkp_head_search .search_input::placeholder { color: rgba(255, 255, 255, .65); }

/* Primary navigation — pil kaca */

.pkp_primary_navigation {
    margin: 0;
    padding: 0;
    width: 100%;
    clear: both;
}

.pkp_primary_navigation > ul {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem;
    margin: 0;
    padding: .3rem 0 .5rem;
    list-style: none;
}

.pkp_primary_navigation > ul > li {
    margin: 0;
    padding: 0;
}

.pkp_primary_navigation > ul > li > a {
    display: inline-block;
    color: rgba(255, 255, 255, .86);
    font-weight: 600;
    font-size: .94rem;
    letter-spacing: .005em;
    padding: .5rem 1rem;
    border-radius: 999px;
    transition: background .2s var(--bm-ease), color .2s var(--bm-ease), transform .2s var(--bm-ease);
}

.pkp_primary_navigation > ul > li > a:hover,
.pkp_primary_navigation > ul > li > a:focus-visible,
.pkp_primary_navigation > ul > li[aria-expanded="true"] > a,
.pkp_primary_navigation > ul > li.current > a,
.pkp_primary_navigation > ul > li[aria-current] > a {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.pkp_primary_navigation > ul > li.current > a,
.pkp_primary_navigation > ul > li[aria-current] > a {
    box-shadow: 0 0 0 1.5px rgba(20, 184, 166, .6) inset;
}

/* Submenu */
.pkp_primary_navigation .dropdown-menu {
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius-sm);
    box-shadow: var(--bm-shadow-hover);
    padding: .4rem;
    min-width: 216px;
    background: var(--bm-surface);
}

.pkp_primary_navigation .dropdown-menu a {
    border-radius: 9px;
    padding: .5rem .75rem;
    font-size: .92rem;
    color: var(--bm-ink);
}

.pkp_primary_navigation .dropdown-menu a:hover {
    background: var(--bm-accent-soft);
    color: var(--bm-accent-deep);
}

/* ---------- Layout ------------------------------------------------------ */

.pkp_structure_body {
    padding-top: 1.9rem;
}

.pkp_content {
    max-width: 1140px;
}

.page_index .pkp_content,
.pkp_page_index .pkp_content {
    width: 100%;
}

/* Judul halaman dengan bar gradien */
h1.page_title,
.page_title {
    font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.4rem);
    margin: .2rem 0 1.3rem;
    padding-left: .95rem;
    border-left: 5px solid transparent;
    border-image: linear-gradient(180deg, var(--bm-accent), var(--bm-gold)) 1;
}

.cmp_breadcrumb {
    font-size: .88rem;
    color: var(--bm-muted);
    margin-bottom: .7rem;
}

.cmp_breadcrumb a { color: var(--bm-muted); }
.cmp_breadcrumb a:hover { color: var(--bm-accent-deep); }

/* ---------- Tombol ------------------------------------------------------ */

.pkp_btn,
.pkp_button,
button[type="submit"],
input[type="submit"],
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--bm-navy-soft) 0%, var(--bm-navy) 100%);
    color: #fff !important;
    border: 0;
    border-radius: 999px;
    padding: .68rem 1.5rem;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .005em;
    cursor: pointer;
    box-shadow: 0 10px 22px -8px rgba(11, 58, 94, .55);
    transition: transform .2s var(--bm-ease), box-shadow .2s var(--bm-ease), filter .2s var(--bm-ease);
}

.pkp_btn:hover,
.pkp_button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -10px rgba(11, 58, 94, .6);
    filter: brightness(1.07);
}

.pkp_btn:active,
.pkp_button:active {
    transform: translateY(0);
    filter: brightness(.98);
}

.pkp_btn:focus-visible,
.pkp_button:focus-visible {
    outline: 3px solid var(--bm-accent);
    outline-offset: 2px;
}

/* Sekunder / ghost */
.pkp_btn-secondary,
a.pkp_btn-secondary,
.pkp_button_secondary {
    background: var(--bm-surface);
    color: var(--bm-navy) !important;
    border: 1.5px solid var(--bm-line);
    box-shadow: var(--bm-shadow);
}

.pkp_btn-secondary:hover,
a.pkp_btn-secondary:hover {
    border-color: var(--bm-accent);
    color: var(--bm-accent-deep) !important;
    box-shadow: var(--bm-shadow-accent);
    filter: none;
}

/* ---------- Formulir ---------------------------------------------------- */

.cmp_form input[type="text"],
.cmp_form input[type="search"],
.cmp_form input[type="email"],
.cmp_form input[type="password"],
.cmp_form select,
.cmp_form textarea,
.form-control,
input[type="search"] {
    border: 1.5px solid var(--bm-line);
    border-radius: var(--bm-radius-sm);
    background: var(--bm-surface);
    padding: .65rem .9rem;
    font-family: inherit;
    font-size: .96rem;
    color: var(--bm-ink);
    transition: border-color .2s var(--bm-ease), box-shadow .2s var(--bm-ease);
    width: 100%;
    max-width: 460px;
}

.cmp_form input:focus,
.cmp_form select:focus,
.cmp_form textarea:focus {
    border-color: var(--bm-accent);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, .18);
    outline: none;
}

label {
    font-weight: 700;
    font-size: .92rem;
    color: var(--bm-ink);
}

/* Blok pencarian */
.pkp_search,
.cmp_search { margin: 0 0 1.5rem; }
.pkp_search .search_input,
.cmp_search .search_input { max-width: 520px; }

/* ---------- Beranda: kartu terbitan terkini ----------------------------- */

.page_index .current_issue,
.pkp_page_index .current_issue {
    position: relative;
    background:
        linear-gradient(var(--bm-surface), var(--bm-surface)) padding-box,
        linear-gradient(135deg, rgba(20, 184, 166, .65), rgba(11, 58, 94, .35) 55%, rgba(227, 178, 60, .5)) border-box;
    border: 1.5px solid transparent;
    border-radius: var(--bm-radius-lg);
    box-shadow: var(--bm-shadow);
    padding: clamp(1.4rem, 1rem + 1.8vw, 2.6rem);
    margin-bottom: 2.2rem;
    overflow: hidden;
}

.page_index .current_issue::before {
    content: "";
    position: absolute;
    inset: 0 0 auto auto;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(20, 184, 166, .14), transparent 68%);
    pointer-events: none;
}

.current_issue .section_title,
.current_issue > h2,
.current_issue_title {
    font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem);
    margin-top: 0;
}

.current_issue_cover {
    border-radius: var(--bm-radius);
    overflow: hidden;
    box-shadow: var(--bm-shadow-hover);
    margin-bottom: 1.3rem;
    transition: transform .3s var(--bm-ease);
}

.current_issue_cover:hover { transform: translateY(-3px) scale(1.01); }

/* Judul bagian + tautan "lihat semua" */
.section_title,
.issue-toc .section > .section_title {
    font-size: 1.18rem;
    font-weight: 800;
    padding-left: .9rem;
    border-left: 5px solid transparent;
    border-image: linear-gradient(180deg, var(--bm-accent), var(--bm-gold)) 1;
    margin: 1.8rem 0 1.1rem;
}

.section_title a,
h2 .more,
.page_index .view_all {
    font-size: .9rem;
    font-weight: 700;
}

/* ---------- Ringkasan artikel (kartu) ----------------------------------- */

.obj_article_summary {
    position: relative;
    background: var(--bm-surface);
    border: 1px solid var(--bm-line-soft);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.1rem;
    transition: transform .25s var(--bm-ease), box-shadow .25s var(--bm-ease), border-color .25s var(--bm-ease);
}

.obj_article_summary::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: linear-gradient(180deg, var(--bm-accent), var(--bm-navy-soft));
    opacity: 0;
    transition: opacity .25s var(--bm-ease);
}

.obj_article_summary:hover {
    transform: translateY(-4px);
    box-shadow: var(--bm-shadow-hover);
    border-color: rgba(20, 184, 166, .45);
}

.obj_article_summary:hover::before { opacity: 1; }

.obj_article_summary .obj_article_summary_title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.015em;
    margin: 0 0 .4rem;
    line-height: 1.4;
    text-wrap: balance;
}

.obj_article_summary .obj_article_summary_title a { color: var(--bm-navy); }
.obj_article_summary .obj_article_summary_title a:hover { color: var(--bm-accent-deep); }

.obj_article_summary .obj_article_summary_author,
.obj_article_summary .obj_article_summary_pages,
.obj_article_summary .published {
    color: var(--bm-muted);
    font-size: .9rem;
}

.obj_article_summary .obj_article_summary_abstract {
    color: var(--bm-muted);
    font-size: .95rem;
    margin: .5rem 0 .65rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pil unduhan galley (PDF/DOCX) berikon */
.obj_galley_link,
.galley_link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--bm-accent-soft);
    color: var(--bm-accent-deep) !important;
    border: 1.5px solid rgba(20, 184, 166, .4);
    border-radius: 999px;
    padding: .32rem .95rem;
    font-size: .86rem;
    font-weight: 700;
    margin: .25rem .35rem .25rem 0;
    transition: background .2s var(--bm-ease), color .2s var(--bm-ease),
        transform .2s var(--bm-ease), box-shadow .2s var(--bm-ease);
}

.obj_galley_link::before,
.galley_link::before {
    content: "";
    width: .95em;
    height: .95em;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v11m0 0 4-4m-4 4-4-4'/%3E%3Cpath d='M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v11m0 0 4-4m-4 4-4-4'/%3E%3Cpath d='M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.obj_galley_link:hover {
    background: linear-gradient(135deg, var(--bm-accent), var(--bm-accent-deep));
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--bm-shadow-accent);
}

/* ---------- Ringkasan terbitan (arsip) ---------------------------------- */

.obj_issue_summary,
.issue-summary {
    background: var(--bm-surface);
    border: 1px solid var(--bm-line-soft);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.1rem;
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    transition: transform .25s var(--bm-ease), box-shadow .25s var(--bm-ease), border-color .25s var(--bm-ease);
}

.obj_issue_summary:hover {
    transform: translateY(-3px);
    box-shadow: var(--bm-shadow-hover);
    border-color: rgba(11, 58, 94, .2);
}

.obj_issue_summary .issue-cover,
.obj_issue_summary .cover {
    flex: 0 0 auto;
    border-radius: var(--bm-radius-sm);
    overflow: hidden;
    box-shadow: var(--bm-shadow);
    transition: transform .25s var(--bm-ease);
}

.obj_issue_summary:hover .cover,
.obj_issue_summary:hover .issue-cover { transform: scale(1.03); }

.obj_issue_summary h3,
.obj_issue_summary .title { margin-top: 0; }

/* ---------- Daftar & TOC terbitan --------------------------------------- */

.issue-toc .section,
.issue_toc .section { margin-bottom: 1.9rem; }

/* ---------- Sidebar / blok ---------------------------------------------- */

.pkp_block,
.block {
    background: var(--bm-surface);
    border: 1px solid var(--bm-line-soft);
    border-radius: var(--bm-radius);
    box-shadow: var(--bm-shadow);
    padding: 1.15rem 1.3rem;
    margin-bottom: 1.3rem;
}

.pkp_block .title,
.block .title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 .75rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--bm-accent-soft);
}

/* ---------- Pemberitahuan / alert ---------------------------------------- */

.pkp_notice,
.cmp_notice {
    background: linear-gradient(135deg, var(--bm-accent-soft), #f2fbfa);
    border: 1px solid rgba(20, 184, 166, .3);
    border-left: 4px solid var(--bm-accent);
    border-radius: var(--bm-radius-sm);
    padding: .95rem 1.15rem;
    margin-bottom: 1.3rem;
}

.pkp_alert {
    background: #fdecec;
    border: 1px solid #f5b5b5;
    border-left: 4px solid #d64545;
    border-radius: var(--bm-radius-sm);
    padding: .85rem 1.05rem;
}

/* ---------- Halaman artikel --------------------------------------------- */

.page_article .obj_article_details,
.page_view .obj_article_details {
    background: var(--bm-surface);
    border: 1px solid var(--bm-line-soft);
    border-radius: var(--bm-radius-lg);
    box-shadow: var(--bm-shadow);
    padding: clamp(1.4rem, 1rem + 1.5vw, 2.4rem);
}

.page_article h1.page_title,
.page_view .obj_article_details h1 {
    font-family: var(--bm-font);
    font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.25rem);
    line-height: 1.28;
    border-left: 0;
    padding-left: 0;
}

/* Kata kunci sebagai pil */
.obj_article_details .keywords .value a {
    display: inline-block;
    background: var(--bm-surface-2);
    border: 1px solid var(--bm-line);
    border-radius: 999px;
    padding: .12rem .7rem;
    margin: .12rem .18rem .12rem 0;
    font-size: .82rem;
    font-weight: 600;
    color: var(--bm-navy-soft);
}

.obj_article_details .keywords .value a:hover {
    background: var(--bm-accent-soft);
    border-color: rgba(20, 184, 166, .45);
    color: var(--bm-accent-deep);
}

.cmp_citation_lis,
.cmp_citations,
.cmp_citation {
    font-size: .93rem;
    color: var(--bm-muted);
}

/* ---------- Pengumuman --------------------------------------------------- */

.obj_announcement,
.obj_announcement_summary,
.announcement {
    background: var(--bm-surface);
    border: 1px solid var(--bm-line-soft);
    border-left: 4px solid var(--bm-gold);
    border-radius: var(--bm-radius-sm);
    box-shadow: var(--bm-shadow);
    padding: 1.05rem 1.3rem;
    margin-bottom: 1rem;
    transition: transform .25s var(--bm-ease), box-shadow .25s var(--bm-ease);
}

.obj_announcement:hover,
.obj_announcement_summary:hover,
.announcement:hover {
    transform: translateY(-2px);
    box-shadow: var(--bm-shadow-hover);
}

/* ---------- Tabel -------------------------------------------------------- */

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    background: var(--bm-surface);
    border: 1px solid var(--bm-line-soft);
    border-radius: var(--bm-radius);
    overflow: hidden;
    box-shadow: var(--bm-shadow);
}

th {
    background: linear-gradient(135deg, var(--bm-navy) 0%, var(--bm-navy-deep) 100%);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .8rem 1.05rem;
    text-align: left;
}

td {
    padding: .75rem 1.05rem;
    border-top: 1px solid var(--bm-line);
    font-size: .95rem;
}

tr:nth-child(even) td { background: var(--bm-surface-2); }

/* ---------- Paginasi ----------------------------------------------------- */

.cmp_pagination { margin: 1.8rem 0; }

.cmp_pagination .page_item a,
.cmp_pagination li a {
    border-radius: 999px;
    border: 1.5px solid var(--bm-line);
    margin: 0 .2rem;
    padding: .42rem .95rem;
    font-weight: 700;
    font-size: .9rem;
    color: var(--bm-navy);
    background: var(--bm-surface);
    transition: background .2s var(--bm-ease), border-color .2s var(--bm-ease),
        transform .2s var(--bm-ease), box-shadow .2s var(--bm-ease);
}

.cmp_pagination .page_item a:hover {
    border-color: var(--bm-accent);
    transform: translateY(-1px);
    box-shadow: var(--bm-shadow-accent);
}

.cmp_pagination .current {
    background: linear-gradient(135deg, var(--bm-navy-soft), var(--bm-navy));
    border-color: transparent;
    color: #fff;
    border-radius: 999px;
    padding: .42rem .95rem;
}

/* ---------- Footer -------------------------------------------------------- */

.pkp_structure_footer_wrapper {
    background:
        radial-gradient(700px 200px at 85% 0%, rgba(20, 184, 166, .16), transparent 60%),
        linear-gradient(180deg, var(--bm-navy-deep) 0%, var(--bm-navy-ink) 100%);
    color: rgba(255, 255, 255, .82);
    margin-top: 3.4rem;
    padding: 2.6rem 0 1.6rem;
    border: 0;
    position: relative;
}

.pkp_structure_footer_wrapper::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bm-accent), var(--bm-gold));
    opacity: .85;
}

.pkp_structure_footer_wrapper a { color: rgba(255, 255, 255, .85); }
.pkp_structure_footer_wrapper a:hover { color: var(--bm-gold); }

.pkp_footer_content { font-size: .92rem; line-height: 1.75; }

.pkp_structure_footer .pkp_site_name {
    font-weight: 800;
    color: #fff;
}

.cmp_footer {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 1.1rem;
    margin-top: 1.1rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
}

/* ---------- Utilitas ------------------------------------------------------ */

.cmp_button {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--bm-accent);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ---------- Gerak: muncul halus + tombol kembali ke atas ----------------- */

@keyframes bm-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hanya aktif bila JS menyala (html.js-anim ditambahkan butonmodern.js) */
html.js-anim .bm-reveal { opacity: 0; }

html.js-anim .bm-reveal.bm-inview {
    animation: bm-rise .55s var(--bm-ease) both;
}

/* Setelah animasi selesai, kelas dilepas agar efek hover kembali bebas */
html.js-anim .bm-reveal.bm-done { opacity: 1; }

.bm-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--bm-navy-soft), var(--bm-navy));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 30px -10px rgba(4, 26, 44, .6);
    opacity: 0;
    transform: translateY(14px) scale(.9);
    pointer-events: none;
    transition: opacity .3s var(--bm-ease), transform .3s var(--bm-ease), box-shadow .3s var(--bm-ease);
}

.bm-to-top.is-show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.bm-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 18px 36px -10px rgba(13, 148, 136, .55);
}

.bm-to-top::before {
    content: "";
    width: 1.05em;
    height: 1.05em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V5m0 0-6 6m6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V5m0 0-6 6m6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Responsif ----------------------------------------------------- */

@media (max-width: 960px) {
    .obj_issue_summary { flex-direction: column; }
}

@media (max-width: 768px) {
    body { font-size: 16px; background-attachment: scroll; }

    .pkp_structure_head { position: static; }

    .pkp_structure_head .pkp_container { padding-top: .85rem; }

    .pkp_site_name a { font-size: 1.18rem; }

    .pkp_primary_navigation > ul > li > a {
        padding: .45rem .78rem;
        font-size: .88rem;
    }

    .obj_article_summary,
    .obj_issue_summary,
    .obj_announcement,
    .obj_announcement_summary,
    .page_article .obj_article_details {
        border-radius: var(--bm-radius-sm);
        padding: 1.05rem 1.1rem;
    }

    th, td { padding: .6rem .75rem; font-size: .88rem; }

    .bm-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* ---------- Aksesibilitas ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    html.js-anim .bm-reveal { opacity: 1; }

    .obj_article_summary:hover,
    .obj_issue_summary:hover,
    .obj_announcement:hover,
    .pkp_btn:hover,
    .current_issue_cover:hover,
    .bm-to-top:hover {
        transform: none;
    }
}

@media (prefers-contrast: more) {
    :root {
        --bm-line: #b6c6d6;
        --bm-line-soft: rgba(6, 39, 63, .35);
        --bm-muted: #43566a;
    }
}

@media print {
    .pkp_structure_head,
    .bm-to-top,
    .pkp_search { display: none !important; }

    body { background: #fff; }

    .obj_article_summary,
    .obj_issue_summary,
    .obj_announcement,
    .page_article .obj_article_details {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
