/* =============================================================================
   ARTICLE component — default theme
   Generated by ffs-css-audit refactor (v0.40.0)
   ============================================================================= */

/* ── Migrated from style.css ─────────────────────────────────────────────── */
.page-article {
  min-height: 60vh;
}

/* ── Component-specific overrides ────────────────────────────────────────── */
.article-toc {
  font-size: 0.82rem;
  width: 100%;
}

/* ── ArticlePage ──────────────────────────────────────────────────────────── */
.article-layout {
  display: flex;
  gap: 0;
  align-items: flex-start;
  margin-top: 0;
  min-height: 60vh;
}
.article-hamburger {
  display: none;
  background: transparent;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 1.1rem;
  cursor: pointer;
  margin: 16px 16px 0;
}
.article-sidebar {
  flex: 0 0 220px;
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 90px);
  overflow: hidden;              /* scroll sidebarScroll_'da */
  background: #f8f8f8;
  border-right: 1.5px solid #e0e0e0;
  border-radius: 12px;
  padding: 0;                    /* padding alt elemanlarda */
  display: flex;
  flex-direction: column;
}
.article-sidebar-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #aaa;
  padding: 2px 8px 8px;
}

/* ── Sidebar two-part layout ─────────────────────────────────────────────── */
/* Scrollable area: top/doclist/middle/toc slots */
.article-sidebar-scroll {
}
/* Fixed footer: side-bottom button — never clipped by scroll */
.article-sidebar-footer {
  flex-shrink: 0;
  padding: 6px 12px 8px;
  background: #f8f8f8;
  border-top: 1px solid #e8e8e8;
}
.article-sidebar-footer:empty {
  display: none;
  padding: 0;
  border: none;
}
.article-content {
  flex: 1 1 0;
  min-width: 0;
  padding: 32px 40px;
}
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.crumb-link {
  color: #666;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.crumb-link:hover { color: #111; }
.crumb-sep { color: #bbb; }
.crumb-current { color: #999; font-weight: 500; }
.article-body { line-height: 1.75; }
.article-body h1 { font-size: 1.6rem; margin: 0 0 16px; }
.article-body h2 { font-size: 1.2rem; margin: 32px 0 12px; padding-top: 8px;
                    border-top: 1px solid #e0e0e0; }
.article-body h3 { font-size: 1.0rem; margin: 20px 0 8px; }
.article-body h4 { font-size: 0.95rem; font-weight: 700; margin: 16px 0 6px; color: #222; }
.article-body h5 { font-size: 0.88rem; font-weight: 600; margin: 12px 0 4px; color: #444; text-transform: uppercase; letter-spacing: 0.04em; }

.article-body p  { margin: 0 0 14px; color: #333; }
.article-body pre { background: #1e1e1e; border-radius: 8px; padding: 16px;
                     overflow-x: auto; font-size: 0.85rem; margin: 16px 0;
                     color: #d4d4d4;
                     border: 1px solid #333; }
.article-body code { background: #ebebeb; border-radius: 4px;
                      padding: 2px 6px; font-size: 0.88em;
                      color: #c7254e; }
.article-body pre code { background: none; padding: 0; }
.article-body hr { border: none; border-top: 1px solid #e0e0e0; margin: 24px 0; }
.article-body ul { margin: 0 0 14px 20px; }
.article-body li { margin-bottom: 4px; color: #333; }
.article-body figure { margin: 20px 0; text-align: center; }
.article-body figcaption { font-size: 0.8rem; color: #888; margin-top: 6px; }
.article-body img { max-width: 100%; border-radius: 8px; }
.article-body a { color: #666; text-decoration: underline;
                   text-underline-offset: 2px; }
.article-body a:hover { color: #111; }
.article-missing { color: #c00; font-style: italic; }
/* TOC */
.article-toc-divider { height: 1px; background: #e0e0e0; margin: 12px 0 8px; }
.article-toc-label {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.07em; color: #aaa; padding: 0 8px 4px;
}
.article-toc-item {
  display: block; padding: 4px 8px 4px 16px;
  font-size: 0.78rem; color: #888;
  cursor: pointer; border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.article-toc-item--l3 { padding-left: 24px; font-size: 0.74rem; }
.article-toc-item--l4 { padding-left: 36px; font-size: 0.70rem; }
.article-toc-item:hover { background: #e0e0e0; color: #111; }
.article-sidebar::-webkit-scrollbar { width: 4px; }
.article-sidebar::-webkit-scrollbar-track { background: transparent; }
.article-sidebar::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 2px; }
/* Mobile */
@media (max-width: 768px) {
  .article-layout { flex-direction: column; }
  .article-hamburger { display: block; }
  .article-sidebar {
    flex: none;
    position: static;
    max-height: none;
    width: 100%;
    border-right: none;
    border-bottom: 1.5px solid #e0e0e0;
    display: none;
    padding: 16px;
}
  .article-sidebar--open { display: flex !important; }
  .article-content { padding: 20px 16px; }
}

/* ── Table ───────────────────────────────────────────────────────────────── */
.article-body .md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.88rem;
}
.article-body .md-table th,
.article-body .md-table td {
  padding: 8px 14px;
  border: 1px solid #e0e0e0;
  text-align: left;
  color: #333;
}
.article-body .md-table th {
  background: #f4f4f4;
  color: #111;
  font-weight: 700;
}
.article-body .md-table tr:nth-child(even) td {
  background: #fafafa;
}

/* ── Blockquote ──────────────────────────────────────────────────────────── */
.article-body .md-blockquote {
  margin: 12px 0;
  padding: 4px 0 4px 16px;
}
.article-body .md-blockquote p {
  margin: 0;
  color: #333;
  font-style: italic;
}
/* ── Media types (PDF, SVG, Video) — topic-42 ────────────────────────────── */
/* ── PDF embed ───────────────────────────────────────────────────────────── */
.article-pdf-wrap {
  position: relative;
  width: 100%;
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
/* Full-width, viewport-relative height, scrollable inside */
.article-pdf-frame {
  display: block;
  width: 100%;
  height: calc(100vh - 160px);   /* viewport height minus navbar + breadcrumb */
  min-height: 480px;
  border: none;
}
.article-pdf-fallback {
  font-size: 0.82rem;
  text-align: center;
  margin-top: 6px;
  color: #888;
}
.article-pdf-fallback a {
  color: #444;
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* article-svg: inline SVG embed wrapper */
.article-svg-wrap {
  margin: 16px 0;
  text-align: center;
}
.article-svg-wrap svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}
.article-video {
  width: 100%;
  max-width: 100%;
  border-radius: 6px;
  display: block;
  margin: 16px 0;
}
.article-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  background: #1a1a2e;
  color: #fff;
  transition: opacity 0.15s;
  cursor: pointer;
}
.article-download-btn:hover {
  opacity: 0.8;
  color: #fff;
  text-decoration: none !important;
}

/* ── Standalone article title (breadcrumb disabled, title enabled) ────────── */
.article-standalone-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  padding-bottom: 8px;
}

/* ── Download button variants ────────────────────────────────────────────── */
.article-download-btn--top {
  margin-top: 0;
  margin-bottom: 16px;
}
.article-download-btn--bottom {
  margin-top: 20px;
  margin-bottom: 0;
}

/* ── Sidebar download button ────────────────────────────────────────────── */
.article-download-btn--side {
  display: block;
  width: 100%;
  margin: 4px 0;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  border-radius: 5px;
  background: #1a1a2e;
  color: #fff !important;
  box-sizing: border-box;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.article-download-btn--side:hover { opacity: 0.8; }

/* side-bottom: always visible at bottom of sidebar (sticky) */
.article-download-btn--side-bottom {
  display: block;
  width: 100%;
  margin: 4px 0;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  border-radius: 5px;
  color: #fff !important;
  box-sizing: border-box;
  transition: opacity 0.15s;
  flex-shrink: 0;

  position: sticky;
  bottom: 0;
  margin-top: auto;
  background: #1a1a2e;
}
.article-download-btn--side-bottom:hover { opacity: 0.8; }
