/* Past Paper Manager — hub frontend (v1.1.3) */

.ppm-hub-preview-banner {
    background: #fff3cd;
    border: 1px solid #d9a400;
    color: #5c4300;
    padding: 10px 14px;
    margin: 0 0 18px;
    border-radius: 4px;
}

.ppm-hub-breadcrumb {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.ppm-hub-summary-strip {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    padding: 10px 14px;
    border-radius: 4px;
    font-weight: 600;
}

/* List of Papers — the "Table of Content" box, exactly as the site
   shows child categories on year category pages (v1.1.2). The theme
   prints these rules inline on category pages only, so the hub ships
   its own copy here, scoped under .ppm-hub so it never leaks onto
   other pages. Values copied verbatim from the live 2026 year page. */
.ppm-hub .toc-box {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    overflow: hidden;
}

.ppm-hub .toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f1f1f1;
    font-weight: bold;
}

.ppm-hub .toc-toggle-btn {
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.ppm-hub .toc-toggle-btn:hover {
    background: #005a87;
}

.ppm-hub .toc-list-wrapper {
    padding: 10px 20px 20px;
}

.ppm-hub .toc-list-wrapper.toc-hidden {
    display: none;
}

.ppm-hub .toc-list-wrapper.toc-visible {
    display: block;
}

.ppm-hub .toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ppm-hub .toc-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.ppm-hub .toc-list li:last-child {
    border-bottom: none;
}

.ppm-hub-mock {
    margin-bottom: 18px;
}

.ppm-hub-mock-detail {
    margin-bottom: 10px;
}

a.ppm-hub-mock-button {
    display: inline-block;
    background: #0b2a6b;
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
}

a.ppm-hub-mock-button:hover,
a.ppm-hub-mock-button:focus {
    background: #123f9e;
    color: #fff;
}

.ppm-hub-faq {
    margin-bottom: 14px;
}

.ppm-hub-faq h3 {
    margin-bottom: 4px;
}
