/* ============================================
   Public UX Component Styles
   Design System: var(--xxx) from tokens.css
   DILARANG hardcode hex, important, inline style
   ============================================ */

/* Global Image Optimization (moved from inline style) */
img {
    max-width: 100%;
    height: auto;
}

/* Header & Navigation */
.header-spacer {
    height: var(--header-h);
}

.mobile-nav-link-child {
    font-size: 1rem;
    color: #555;
}

/* Sidebar Widgets */
.search-form-inline {
    display: flex;
    gap: 5px;
}

.search-form-input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
}

.search-form-btn {
    padding: 8px 12px;
    background: #eee;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-form-btn:hover {
    background: #ddd;
}

.widget-post-item {
    margin-bottom: 10px;
}

.widget-post-link {
    font-weight: 500;
    display: block;
}

.widget-post-date {
    color: var(--text-muted);
}

.widget-logo {
    max-width: 100px;
    margin-bottom: 10px;
}

/* Page title container */
.page-title-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Library / PDF Viewer */
.toc-heading {
    color: white;
    margin: 0 0 15px 15px;
    font-weight: 600;
}

.toc-loading {
    padding: 15px;
    color: rgba(255, 255, 255, 0.5);
}

/* Disabled button (from page.php inline style block) */
.disabled-btn {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(100%);
    cursor: not-allowed;
    text-decoration: none;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .search-form-btn {
        transition: none;
    }
}