/**
 * AnimeKai inner pages — browse sheet (built on inner.css).
 *
 * Archives, search, category, author, blog, pages, 404, bookmark and
 * schedule. Markup comes from template-parts/animekai/browse-helpers.php.
 */

/* ── Page frame ─────────────────────────────────────────────────────────── */
#wrapper.inner main {
    margin-top: 7.5rem;
}

@media (max-width: 991.98px) {
    #wrapper.inner main {
        margin-top: 6rem;
    }
}

.ak-browse {
    color: rgba(255, 255, 255, .85);
}

.ak-browse a {
    text-decoration: none;
}

.ak-main {
    min-width: 0;
}

/* ── Title row ──────────────────────────────────────────────────────────── */
.ak-bhead {
    position: relative;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 0 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--ak-line);
}

.ak-bhead::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 4.5rem;
    height: 2px;
    border-radius: 2px;
    background: var(--ak-primary);
}

.ak-bhead .stitle {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.25;
    font-weight: 600;
    min-width: 0;
}

.ak-bhead h2.stitle,
.ak-bhead h3.stitle {
    font-size: 1.3rem;
}

.ak-bhead .stitle span {
    overflow-wrap: anywhere;
}

.ak-bhead .stitle i {
    flex: 0 0 auto;
}

.ak-bmeta {
    color: var(--ak-muted);
    font-size: .9rem;
    background: var(--ak-panel);
    border-radius: 2rem;
    padding: .3rem .9rem;
}

.ak-desc {
    color: var(--ak-muted);
    margin: -.5rem 0 1.5rem;
    max-width: 70ch;
}

.ak-desc p:last-child {
    margin-bottom: 0;
}

/* ── Card grid (home .aitem-wrapper.regular, as CSS grid) ───────────────── */
.ak-page .aitem-wrapper.regular.ak-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    margin-left: -.8rem;
    margin-right: -.8rem;
}

.ak-page .aitem-wrapper.regular.ak-grid::after {
    display: none;
}

.ak-page .aitem-wrapper.regular.ak-grid .aitem {
    float: none;
    width: auto !important;
    margin-bottom: .6rem;
    min-width: 0;
}

.ak-page .aitem-wrapper.regular .aitem .inner .poster {
    position: relative;
}

.ak-page .aitem-wrapper.regular .aitem .inner .poster div {
    aspect-ratio: 2 / 3;
    background: var(--ak-panel-2);
}

.ak-page .aitem-wrapper.regular .aitem .inner .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.ak-page .aitem-wrapper.regular .aitem .inner:hover .poster img {
    transform: scale(1.05);
}

.ak-page .aitem-wrapper.regular .aitem .inner .title {
    color: #fff;
}

.ak-page .aitem-wrapper.regular .aitem .inner .title:hover {
    color: var(--ak-primary);
}

.ak-page .aitem-wrapper.regular .aitem .inner .info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ak-ep-tag {
    position: absolute;
    left: .6rem;
    bottom: .6rem;
    z-index: 2;
    color: #fff;
    background: var(--ak-primary);
    border-radius: .5rem;
    padding: .15rem .55rem;
    font-size: .8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

.ak-ep-tag i {
    font-size: .65rem;
    margin-right: .15rem;
}

@media (max-width: 575.98px) {
    .ak-page .aitem-wrapper.regular.ak-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-left: -.5rem;
        margin-right: -.5rem;
    }

    .ak-page .aitem-wrapper.regular .aitem .inner {
        padding: .5rem;
    }
}

/* ── Pagination (paginate_links + legacy .hpage) ────────────────────────── */
.ak-pagination {
    margin: 2rem 0 1rem;
}

.ak-pagination .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
    margin: 0;
}

.ak-pagination .page-link {
    min-width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .8rem;
    border-radius: .6rem !important;
    color: #fff;
    background: var(--ak-panel);
    font-weight: 500;
}

.ak-pagination a.page-link:hover {
    color: #fff;
    background: var(--ak-primary);
}

.ak-pagination .page-item.active .page-link {
    background: var(--ak-primary);
    box-shadow: 0 6px 18px rgba(228, 95, 58, .35);
}

.ak-pagination .page-item.disabled .page-link {
    background: transparent;
    color: var(--ak-muted);
}

.ak-page .hpage {
    display: flex;
    justify-content: center;
    gap: .6rem;
    margin: 2rem 0 1rem;
}

.ak-page .hpage a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    background: var(--ak-panel);
    border-radius: .6rem;
    padding: .65rem 1.2rem;
    font-weight: 500;
    transition: background-color .15s;
}

.ak-page .hpage a:hover {
    background: var(--ak-primary);
}

/* ── Anime archive filter ([lists] shortcode output) ────────────────────── */
.ak-filter {
    background: var(--ak-panel);
    border-radius: var(--ak-radius);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}

.ak-filter .clear {
    display: none;
}

.ak-filter .quickfilter form.filters {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin: 0;
}

.ak-filter .sec1 {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    flex: 1 1 auto;
}

.ak-filter .sec2 {
    margin-left: auto;
}

.ak-filter .filter.dropdown {
    position: relative;
}

.ak-filter .filter .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #fff;
    background: var(--ak-panel-2);
    border: 1px solid var(--ak-line);
    border-radius: .6rem;
    padding: .55rem .9rem;
    font-size: .9rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: border-color .15s;
}

.ak-filter .filter .dropdown-toggle::after {
    display: none;
}

.ak-filter .filter .dropdown-toggle:hover,
.ak-filter .filter.open .dropdown-toggle {
    border-color: var(--ak-primary);
}

.ak-filter .filter .dropdown-toggle #filtercount {
    color: var(--ak-primary);
    font-weight: 500;
}

.ak-filter .filter .dropdown-toggle .fa {
    font-size: .8rem;
    opacity: .6;
}

.ak-filter .filter .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + .4rem);
    left: 0;
    z-index: 60;
    min-width: 190px;
    max-height: 320px;
    overflow: auto;
    margin: 0;
    padding: .5rem;
    list-style: none;
    background: #1a2027;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .8rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}

.ak-filter .filter.open .dropdown-menu {
    display: grid;
}

.ak-filter .filter .dropdown-menu.c4 {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    min-width: 470px;
}

.ak-filter .filter .dropdown-menu li {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .45rem;
    border-radius: .4rem;
}

.ak-filter .filter .dropdown-menu li:hover {
    background: rgba(255, 255, 255, .05);
}

.ak-filter .filter .dropdown-menu input {
    accent-color: var(--ak-primary);
    margin: 0;
}

.ak-filter .filter .dropdown-menu label {
    margin: 0;
    cursor: pointer;
    font-size: .88rem;
    color: rgba(255, 255, 255, .85);
    white-space: nowrap;
}

.ak-filter .quickfilter .filter.submit button.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #fff;
    background: var(--ak-primary) !important;
    border: 0;
    border-radius: .6rem;
    padding: .6rem 1.3rem;
    font-weight: 500;
}

.ak-filter .quickfilter .filter.submit button.btn:hover {
    background: #e77150 !important;
}

.ak-anime-list .other-opts {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.2rem;
}

.ak-anime-list .other-opts + .clear {
    display: none;
}

.ak-anime-list .modex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
}

.ak-anime-list .modex > a {
    color: #fff;
    background: var(--ak-panel);
    border-radius: 2rem;
    padding: .4rem 1rem;
    font-size: .85rem;
}

.ak-anime-list .modex > a:hover {
    background: var(--ak-primary);
}

.ak-anime-list .nav_apb {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.ak-anime-list .nav_apb a {
    color: rgba(255, 255, 255, .8);
    background: var(--ak-panel);
    border-radius: .4rem;
    min-width: 1.9rem;
    text-align: center;
    padding: .2rem .4rem;
    font-size: .8rem;
}

.ak-anime-list .nav_apb a:hover {
    color: #fff;
    background: var(--ak-primary);
}

/* Text (A–Z) mode */
.ak-anime-list .soralist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.ak-anime-list .soralist .blix {
    background: var(--ak-panel);
    border-radius: var(--ak-radius);
    padding: 1rem 1.2rem;
}

.ak-anime-list .soralist .blix > span a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    color: #fff;
    background: var(--ak-primary);
    font-weight: 600;
}

.ak-anime-list .soralist ul {
    list-style: none;
    margin: .8rem 0 0;
    padding: 0;
}

.ak-anime-list .soralist li a {
    display: block;
    color: rgba(255, 255, 255, .8);
    padding: .25rem 0;
    font-size: .9rem;
}

.ak-anime-list .soralist li a:hover {
    color: var(--ak-primary);
}

.ak-page .no-results {
    background: var(--ak-panel);
    border-radius: var(--ak-radius);
    padding: 2rem;
    text-align: center;
    color: var(--ak-muted);
    grid-column: 1 / -1;
    margin: 0 .8rem;
}

@media (max-width: 575.98px) {
    .ak-filter {
        padding: .8rem;
    }

    .ak-filter .sec1 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .ak-filter .filter.dropdown {
        position: static;
    }

    .ak-filter .filter .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        font-size: .85rem;
    }

    .ak-filter .filter .dropdown-menu,
    .ak-filter .filter .dropdown-menu.c4 {
        left: 0;
        right: 0;
        min-width: 0;
    }

    .ak-filter .filter .dropdown-menu.c4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ak-filter .sec2,
    .ak-filter .filter.submit,
    .ak-filter .filter.submit .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.ak-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.ak-sidebar > *,
.ak-sidebar .sidebar-section {
    margin: 0 !important;
}

.ak-sidebar .sidebar-section {
    background: var(--ak-panel);
    border-radius: var(--ak-radius);
    padding: 1.5rem;
}

.ak-widgets footer,
.ak-widgets article {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

.ak-widgets p:empty {
    display: none;
}

.ak-sidebar .sidebar-section .shead {
    padding: 0;
    margin-bottom: 1rem;
}

.ak-widgets {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ak-widgets > * {
    background: var(--ak-panel);
    border-radius: var(--ak-radius);
    padding: 1.3rem 1.5rem;
    margin: 0;
}

.ak-widgets h2,
.ak-widgets h3,
.ak-widgets h4,
.ak-widgets .wp-block-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 .9rem;
    padding-left: .7rem;
    border-left: 3px solid var(--ak-primary);
}

.ak-widgets ul,
.ak-widgets ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ak-widgets li {
    padding: .4rem 0;
    border-bottom: 1px solid var(--ak-line);
    font-size: .9rem;
    color: var(--ak-muted);
}

.ak-widgets li:last-child {
    border-bottom: 0;
}

.ak-widgets a {
    color: rgba(255, 255, 255, .85);
}

.ak-widgets a:hover {
    color: var(--ak-primary);
}

.ak-widgets .wp-block-latest-comments {
    padding: 0;
    margin: 0;
    background: none;
}

.ak-widgets .wp-block-latest-comments__comment {
    background: none;
    padding: .4rem 0;
    margin: 0;
}

.ak-widgets .wp-block-search__inside-wrapper,
.ak-searchform {
    display: flex;
    gap: .5rem;
}

.ak-widgets .wp-block-search__label {
    display: none;
}

.ak-widgets input[type="search"],
.ak-widgets input[type="text"],
.ak-searchform input {
    flex: 1;
    min-width: 0;
    color: #fff;
    background: var(--ak-panel-2);
    border: 1px solid var(--ak-line);
    border-radius: .6rem;
    padding: .6rem .9rem;
    outline: 0;
}

.ak-widgets input:focus,
.ak-searchform input:focus {
    border-color: var(--ak-primary);
}

.ak-widgets button,
.ak-widgets input[type="submit"],
.ak-searchform button {
    color: #fff;
    background: var(--ak-primary);
    border: 0;
    border-radius: .6rem;
    padding: .6rem 1rem;
}

/* ── Empty state ────────────────────────────────────────────────────────── */
.ak-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}

.ak-empty > i {
    font-size: 2.6rem;
    color: var(--ak-primary);
    margin-bottom: 1rem;
}

.ak-empty p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .8);
}

.ak-empty .ak-searchform {
    max-width: 420px;
    margin: 1.2rem auto 0;
}

/* ── Content panels (page.php / single-blog.php) ────────────────────────── */
.ak-content {
    padding: 2rem 2.2rem;
    line-height: 1.75;
    font-size: 1rem;
    color: rgba(255, 255, 255, .82);
    overflow-wrap: break-word;
}

.ak-content a {
    color: var(--ak-primary);
}

.ak-content a:hover {
    color: #e77150;
    text-decoration: underline;
}

.ak-content h1,
.ak-content h2,
.ak-content h3,
.ak-content h4,
.ak-content h5 {
    color: #fff;
    font-weight: 600;
    margin: 1.6rem 0 .8rem;
    line-height: 1.3;
}

.ak-content > :first-child,
.ak-content .entry-content > :first-child {
    margin-top: 0;
}

.ak-content > :last-child,
.ak-content .entry-content > :last-child {
    margin-bottom: 0;
}

.ak-content img,
.ak-content iframe,
.ak-content video {
    max-width: 100%;
    height: auto;
    border-radius: .8rem;
}

.ak-content blockquote {
    border-left: 3px solid var(--ak-primary);
    background: var(--ak-panel-2);
    border-radius: 0 .8rem .8rem 0;
    padding: 1rem 1.3rem;
    margin: 1.3rem 0;
}

.ak-content table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.ak-content th,
.ak-content td {
    border: 1px solid var(--ak-line);
    padding: .5rem .8rem;
}

.ak-content pre,
.ak-content code {
    background: var(--ak-panel-2);
    border-radius: .4rem;
    color: #ffb49f;
}

.ak-content pre {
    padding: 1rem;
    overflow-x: auto;
}

.ak-post-head {
    margin-bottom: 1.3rem;
}

.ak-post-head h1 {
    font-size: 2rem;
    margin: .4rem 0 .8rem;
}

.ak-labels {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.ak-labels a,
.ak-content .ak-labels a {
    color: #fff;
    background: var(--ak-primary);
    border-radius: .4rem;
    padding: .1rem .6rem;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
}

.ak-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.2rem;
    color: var(--ak-muted);
    font-size: .88rem;
}

.ak-post-meta i {
    color: var(--ak-primary);
    margin-right: .25rem;
}

.ak-post-thumb {
    margin: 0 0 1.5rem;
}

.ak-post-thumb img {
    width: 100%;
    height: auto;
    border-radius: var(--ak-radius);
}

.ak-comments {
    padding: 1.5rem 1.8rem;
}

.ak-related {
    margin-bottom: 2rem;
}

@media (max-width: 575.98px) {
    .ak-content {
        padding: 1.3rem 1.1rem;
    }

    .ak-post-head h1 {
        font-size: 1.5rem;
    }

    .ak-bhead .stitle {
        font-size: 1.3rem;
    }

    .ak-comments {
        padding: 1.2rem 1rem;
    }
}

/* ── Blog cards ─────────────────────────────────────────────────────────── */
.ak-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.3rem;
}

.ak-bcard {
    display: flex;
    flex-direction: column;
    background: var(--ak-panel);
    border-radius: var(--ak-radius);
    overflow: hidden;
    transition: transform .2s;
}

.ak-bcard:hover {
    transform: translateY(-3px);
}

.ak-bcard .thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--ak-panel-2);
    overflow: hidden;
}

.ak-bcard .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ak-bcard .thumb .noimg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, .15);
}

.ak-bcard .btags {
    position: absolute;
    top: .8rem;
    left: .8rem;
    color: #fff;
    background: var(--ak-primary);
    border-radius: .4rem;
    padding: .1rem .6rem;
    font-size: .78rem;
    font-weight: 500;
}

.ak-bcard .body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.2rem 1.2rem;
}

.ak-bcard .title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 .5rem;
}

.ak-bcard .title a {
    color: #fff;
}

.ak-bcard .title a:hover {
    color: var(--ak-primary);
}

.ak-bcard .excerpt {
    color: var(--ak-muted);
    font-size: .9rem;
    margin: 0 0 .9rem;
}

.ak-bcard .meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1rem;
    color: var(--ak-muted);
    font-size: .8rem;
}

.ak-bcard .meta i {
    color: var(--ak-primary);
    margin-right: .2rem;
}

/* ── 404 ────────────────────────────────────────────────────────────────── */
.ak-notfound {
    max-width: 720px;
    margin: 2rem auto 3rem;
    padding: 3rem 2rem;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0, rgba(228, 95, 58, .18), transparent 60%),
        var(--ak-panel);
}

.ak-404-code {
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--ak-primary);
    text-shadow: 0 10px 40px rgba(228, 95, 58, .35);
}

.ak-notfound h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 1rem 0 .6rem;
}

.ak-notfound p {
    color: var(--ak-muted);
    max-width: 46ch;
    margin: 0 auto 1.5rem;
}

.ak-notfound .ak-searchform {
    max-width: 440px;
    margin: 0 auto 1.3rem;
}

.ak-404-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .7rem;
}

.ak-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    background: var(--ak-primary);
    border-radius: .6rem;
    padding: .6rem 1.3rem;
    font-weight: 500;
}

.ak-btn:hover {
    color: #fff;
    background: #e77150;
}

.ak-btn.ghost {
    background: var(--ak-panel-2);
}

.ak-btn.ghost:hover {
    background: rgba(255, 255, 255, .1);
}

/* ── Legacy .bs cards (bookmark.js, schedule) ───────────────────────────── */
.ak-page .listupd,
.ak-page .ak-legacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 1.2rem;
}

.ak-page .bs .bsx > a {
    display: block;
    color: #fff;
}

.ak-page .bs .limit {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 1.2rem;
    overflow: hidden;
    background: var(--ak-panel-2);
}

.ak-page .bs .limit img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.ak-page .bs:hover .limit img {
    transform: scale(1.05);
}

.ak-page .bs .ply,
.ak-page .bs .tt h2 {
    display: none;
}

.ak-page .bs .typez,
.ak-page .bs .hotbadge,
.ak-page .bs .status {
    position: absolute;
    top: .6rem;
    left: .6rem;
    z-index: 2;
    color: #fff;
    background: rgba(0, 0, 0, .65);
    border-radius: .4rem;
    padding: .05rem .5rem;
    font-size: .75rem;
    font-weight: 600;
}

.ak-page .bs .hotbadge {
    left: auto;
    right: .6rem;
    background: var(--ak-primary);
}

.ak-page .bs .bt {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: .3rem;
    padding: 2rem .6rem .6rem;
    font-size: .78rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
}

.ak-page .bs .bt .sb,
.ak-page .bs .bt .epx {
    color: #fff;
    background: var(--ak-primary);
    border-radius: .4rem;
    padding: .05rem .5rem;
    font-weight: 500;
}

.ak-page .bs .bt .epx {
    background: rgba(255, 255, 255, .15);
}

.ak-page .bs .bt .sb.Dub {
    background: var(--ak-secondary);
}

.ak-page .bs .tt {
    margin-top: .6rem;
    font-size: .92rem;
    line-height: 1.3rem;
    max-height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ak-page .bs:hover .tt {
    color: var(--ak-primary);
}

@media (max-width: 575.98px) {
    .ak-page .listupd,
    .ak-page .ak-legacy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .9rem;
    }
}

/* Bookmark page */
.ak-bookmark .ntf {
    color: var(--ak-muted);
    margin: 0 0 1rem;
}

.ak-bookmark #hapus {
    cursor: pointer;
    color: #fff;
    background: var(--ak-panel-2);
    border-radius: .6rem;
    padding: .4rem 1rem;
    font-size: .88rem;
}

.ak-bookmark #hapus:hover,
.ak-bookmark #hapus.active {
    background: var(--ak-primary);
}

.ak-bookmark #ts-import-export-bookmark {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.3rem;
}

.ak-bookmark #ts-import-export-bookmark .btn {
    color: #fff;
    background: var(--ak-primary);
    border: 0;
    border-radius: .6rem;
    padding: .5rem 1.1rem;
}

.ak-bookmark #ts-bookmark-pagination {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: 1.5rem;
}

.ak-bookmark #ts-bookmark-pagination a,
.ak-bookmark #ts-bookmark-pagination span {
    color: #fff;
    background: var(--ak-panel-2);
    border-radius: .5rem;
    padding: .45rem .8rem;
}

.ak-bookmark #ts-bookmark-pagination .current,
.ak-bookmark #ts-bookmark-pagination a:hover {
    background: var(--ak-primary);
}

/* Schedule page */
.ak-sched .bt .cndwn,
.ak-sched .bt .epx {
    color: #fff;
}

/* ── Specificity fixes over Bootstrap / styles.css ──────────────────────── */
.ak-pagination .pagination .page-item.active > .page-link,
.ak-pagination .pagination .page-link.current {
    color: #fff !important;
    background: var(--ak-primary) !important;
    border-color: transparent !important;
}

.ak-page .shead.ak-bhead {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

@media (max-width: 767.98px) {
    .ak-page .shead.ak-bhead {
        padding: 0 0 .8rem;
        margin-bottom: 1.2rem;
    }

    .ak-page .shead.ak-bhead .stitle {
        justify-content: flex-start;
    }
}

/* ── Legacy A–Z footer strip (footer-az.php) ────────────────────────────── */
.footer-az .az-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    list-style: none;
    padding: 0;
    margin: .6rem 0 0;
}

.footer-az .az-list a {
    display: inline-block;
    min-width: 2rem;
    text-align: center;
    color: #fff;
    background: var(--ak-panel);
    border-radius: .4rem;
    padding: .25rem .45rem;
}

.footer-az .az-list a:hover {
    background: var(--ak-primary);
}
