/* ============================================================ */
/* ν‑Framework — Additional Styles ONLY                         */
/* Does NOT override layout (container, chapter-card, etc.)     */
/* Margins and layout come from wave-ontology-styles.css        */
/* ============================================================ */

/* ---------- Framework Header ---------- */
.framework-header {
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
  background: rgba(240, 235, 226, 0.6);
  border-radius: 1rem;
  border-left: 4px solid #f0b86e;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

[data-theme="dark"] .framework-header {
  background: rgba(30, 41, 59, 0.6);
}

.framework-header .main-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #8b6b3d;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

[data-theme="dark"] .framework-header .main-title {
  color: #f0b86e;
}

.framework-header .sub-title {
  font-size: 1.3rem;
  font-weight: 400;
  color: #4a3f33;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .framework-header .sub-title {
  color: #cbd5e1;
}

.framework-header .sub-title em {
  font-style: italic;
  color: #7a6b58;
}

[data-theme="dark"] .framework-header .sub-title em {
  color: #94a3b8;
}

.framework-header .author-line {
  font-size: 0.95rem;
  color: #6b5d4a;
  margin-top: 0.75rem;
}

[data-theme="dark"] .framework-header .author-line {
  color: #94a3b8;
}

.framework-header .meta-line {
  font-size: 0.85rem;
  color: #6b5d4a;
  margin-top: 0.25rem;
}

[data-theme="dark"] .framework-header .meta-line {
  color: #94a3b8;
}

.framework-header .meta-line a {
  color: #8b6b3d;
  text-decoration: none;
}

[data-theme="dark"] .framework-header .meta-line a {
  color: #f0b86e;
}

.framework-header .meta-line a:hover {
  text-decoration: underline;
}

/* ---------- Abstract Section ---------- */
.abstract-section {
  margin: 2rem 0;
}

.abstract-section h2 {
  color: #8b6b3d;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

[data-theme="dark"] .abstract-section h2 {
  color: #f0b86e;
}

.abstract-section p {
  color: #1a1a1a;
  line-height: 1.8;
  margin-bottom: 1rem;
}

[data-theme="dark"] .abstract-section p {
  color: #cbd5e1;
}

.abstract-section .preamble {
  color: #4a3f33;
  font-style: italic;
  font-size: 0.95rem;
}

[data-theme="dark"] .abstract-section .preamble {
  color: #94a3b8;
}

.abstract-section hr {
  border: none;
  border-top: 1px solid rgba(200, 180, 160, 0.25);
  margin: 1.5rem 0;
}

[data-theme="dark"] .abstract-section hr {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* ---------- TOC Container ---------- */
.toc-container {
  background: rgba(240, 235, 226, 0.4);
  padding: 1.5rem 2rem;
  border-radius: 0.75rem;
  margin: 2rem 0;
  border-left: 3px solid #f0b86e;
}

[data-theme="dark"] .toc-container {
  background: rgba(30, 41, 59, 0.4);
}

.toc-container h2 {
  color: #8b6b3d;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

[data-theme="dark"] .toc-container h2 {
  color: #f0b86e;
}

.toc-container ol {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.toc-container ol li {
  margin-bottom: 0.5rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(200, 180, 160, 0.15);
}

[data-theme="dark"] .toc-container ol li {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.toc-container ol li a {
  color: #3e3220;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  display: block;
}

[data-theme="dark"] .toc-container ol li a {
  color: #cbd5e1;
}

.toc-container ol li a:hover {
  color: #8b6b3d;
}

[data-theme="dark"] .toc-container ol li a:hover {
  color: #f0b86e;
}

.toc-container ol li .sub-items {
  padding-left: 1.5rem;
  font-size: 0.85rem;
  color: #6b5d4a;
}

[data-theme="dark"] .toc-container ol li .sub-items {
  color: #94a3b8;
}

.toc-container ol li .sub-items span {
  display: inline-block;
  margin-right: 0.75rem;
}

/* ---------- Responsive (framework elements only) ---------- */
@media (max-width: 768px) {
  .framework-header .main-title {
    font-size: 1.6rem;
  }

  .framework-header .sub-title {
    font-size: 1rem;
  }

  .toc-container {
    padding: 1rem 1.25rem;
  }
}