/* ============================================================
   site-chrome.css -- tampilan "bingkai situs" yang SAMA untuk
   semua halaman tool: top bar, breadcrumb, Related Tools, footer.

   Dimuat oleh semua tools/{slug}/index.html (disisipkan otomatis
   oleh apply-site-chrome.php). Ubah file ini SATU KALI untuk
   mengubah tampilan bingkai di seluruh halaman tool.

   Semua class berawalan "stu-" supaya tidak bentrok dengan CSS
   milik masing-masing tool. Warna sengaja netral (tidak ikut tema
   warna tiap tool), kecuali footer yang mewarisi warna footer tool.
   ============================================================ */

/* ---------- TOP BAR ---------- */
.stu-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
.stu-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    flex-wrap: wrap;
}
.stu-topbar a.stu-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    white-space: nowrap;
}
.stu-topbar a.stu-brand:hover { color: #2563eb; }
.stu-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
}
.stu-topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
}
.stu-topnav a.stu-navlink {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}
.stu-topnav a.stu-navlink:hover { color: #2563eb; background: #eff6ff; }
.stu-topnav a.stu-navlink.is-current { color: #2563eb; background: #eff6ff; }

/* ---------- BREADCRUMB ---------- */
.stu-breadcrumb {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
.stu-breadcrumb-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 24px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 0;
    font-size: 0.82rem;
    color: #64748b;
}
.stu-breadcrumb-item { display: inline; margin: 0; padding: 0; }
.stu-breadcrumb-item + .stu-breadcrumb-item::before {
    content: "\203A";
    margin: 0 8px;
    color: #94a3b8;
}
.stu-breadcrumb a.stu-bc-link { color: #2563eb; text-decoration: none; }
.stu-breadcrumb a.stu-bc-link:hover { text-decoration: underline; }
.stu-breadcrumb-item.is-current { color: #334155; font-weight: 600; }

/* ---------- RELATED TOOLS ---------- */
.stu-related {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
.stu-related-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 32px;
}
.stu-related-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 14px;
}
.stu-related-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}
.stu-related a.stu-related-all {
    font-size: 0.88rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.stu-related a.stu-related-all:hover { text-decoration: underline; }
.stu-related-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}
.stu-related-item { margin: 0; padding: 0; display: flex; }
.stu-related a.stu-related-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.stu-related a.stu-related-card:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .12);
}
.stu-related-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}
.stu-related-body { display: block; min-width: 0; }
.stu-related-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.stu-related-desc {
    display: block;
    margin-top: 2px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #64748b;
}

/* ---------- FOOTER (di dalam <footer class="custom-footer"> tool) ---------- */
.stu-footer {
    text-align: center;
    padding: 4px 12px;
}
.stu-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    margin: 0 0 10px;
}
.stu-footer a.stu-footer-link {
    color: inherit;
    opacity: .9;
    font-size: 0.88rem;
    text-decoration: none;
}
.stu-footer a.stu-footer-link:hover { opacity: 1; text-decoration: underline; }
.stu-footer-copy { margin: 0; font-size: 0.85rem; opacity: .85; }

@media (max-width: 600px) {
    .stu-topbar-inner,
    .stu-breadcrumb-list { padding-left: 14px; padding-right: 14px; }
    .stu-topnav { width: 100%; }
    .stu-related-inner { padding-left: 14px; padding-right: 14px; }
}
