/* iPgraam IPR Wiki - Wikipedia style */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Linux Libertine', 'Georgia', 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.6;
  color: #202122;
  background: #f8f9fa;
}

a {
  color: #0645ad;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #0b0080;
}

/* ── Header ── */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #a2a9b1;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}

.site-logo {
  text-decoration: none;
}

.logo-main {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  font-family: 'Linux Libertine', Georgia, serif;
  font-style: italic;
}

.logo-sub {
  font-size: 0.82rem;
  color: #54595d;
  margin-left: 6px;
  font-family: sans-serif;
  font-style: normal;
}

.header-nav a {
  color: #0645ad;
  margin-left: 20px;
  font-size: 0.88rem;
  font-family: sans-serif;
}

.header-nav a:hover {
  text-decoration: underline;
}

/* ── Disclaimer Bar ── */
.disclaimer-bar {
  background: #fef6e7;
  border-bottom: 1px solid #e8d5a3;
  text-align: center;
  padding: 5px 24px;
  font-size: 0.81rem;
  font-family: sans-serif;
  color: #54400a;
}

.disclaimer-bar a {
  color: #0645ad;
}

/* ── Hero ── */
.hero-section {
  background: #ffffff;
  border-bottom: 1px solid #a2a9b1;
  padding: 36px 24px;
  text-align: center;
}

.hero-title {
  font-size: 2.2rem;
  color: #000;
  margin-bottom: 8px;
  font-weight: normal;
}

.hero-title span {
  font-style: italic;
}

.hero-subtitle {
  font-size: 1rem;
  color: #54595d;
  margin-bottom: 10px;
  font-family: sans-serif;
}

.hero-stats {
  font-size: 0.85rem;
  color: #72777d;
  font-family: sans-serif;
}

/* ── Index Page ── */
.index-wrapper {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 24px;
}

.category-section {
  margin-bottom: 36px;
}

.category-title {
  font-size: 1.25rem;
  font-family: sans-serif;
  font-weight: bold;
  color: #000;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 4px;
  margin-bottom: 14px;
}

.article-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-card {
  background: #ffffff;
  border: 1px solid #a2a9b1;
  border-radius: 2px;
  padding: 6px 12px;
  font-size: 0.86rem;
  font-family: sans-serif;
  color: #0645ad;
  transition: background 0.1s;
}

.article-card:hover {
  background: #eaf3fb;
  text-decoration: none;
}

/* ── Article Page Layout ── */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* ── Left Sidebar ── */
.sidebar-left {
  width: 210px;
  flex-shrink: 0;
  position: sticky;
  top: 60px;
}

.sidebar-section {
  background: #f8f9fa;
  border: 1px solid #a2a9b1;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.sidebar-heading {
  font-family: sans-serif;
  font-size: 0.76rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #54595d;
  margin-bottom: 8px;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 5px;
}

.toc-list,
.browse-list {
  list-style: none;
  padding: 0;
}

.toc-list li,
.browse-list li {
  margin-bottom: 5px;
}

.toc-list a,
.browse-list a {
  font-size: 0.84rem;
  font-family: sans-serif;
  color: #0645ad;
}

/* ── Article Main ── */
.article-main {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #a2a9b1;
  padding: 24px 32px;
}

.article-breadcrumb {
  font-size: 0.8rem;
  font-family: sans-serif;
  color: #54595d;
  margin-bottom: 6px;
}

.article-breadcrumb a {
  color: #0645ad;
}

.article-title {
  font-size: 1.95rem;
  font-weight: normal;
  color: #000;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 3px;
  margin-bottom: 6px;
}

.article-meta {
  font-size: 0.77rem;
  font-family: sans-serif;
  color: #72777d;
  margin-bottom: 18px;
}

/* ── Article Body ── */
.article-body p {
  margin-bottom: 13px;
}

.article-body h2 {
  font-size: 1.3rem;
  font-weight: bold;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 2px;
  margin: 22px 0 10px 0;
  color: #000;
  font-family: sans-serif;
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: bold;
  margin: 16px 0 7px 0;
}

.article-body ul,
.article-body ol {
  margin: 6px 0 13px 28px;
}

.article-body li {
  margin-bottom: 3px;
}

.article-body strong {
  font-weight: bold;
}

/* ── Article Footer ── */
.article-footer {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid #eaecf0;
}

.footer-disclaimer {
  font-size: 0.8rem;
  font-family: sans-serif;
  color: #54595d;
  line-height: 1.5;
}

.footer-disclaimer a {
  color: #0645ad;
}

/* ── Site Footer ── */
.site-footer {
  background: #f8f9fa;
  border-top: 1px solid #a2a9b1;
  margin-top: 40px;
  padding: 16px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-family: sans-serif;
  color: #54595d;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-inner a {
  color: #0645ad;
}
@media (max-width: 768px) {
  .page-wrapper {
    flex-direction: column;
    padding: 12px;
  }

  .sidebar-left {
    width: 100%;
    position: static;
  }

  .article-main {
    padding: 16px;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 10px;
    gap: 8px;
  }

  .header-nav a {
    margin-left: 10px;
    font-size: 0.82rem;
  }

  .article-title {
    font-size: 1.4rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .article-grid {
    flex-direction: column;
  }

  .article-card {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
