
/* AIP Semantic Content Styles */

.aip-content-list {
  margin: 1rem 0;
}

/* Base paragraph style */
.aip-para {
  margin: 0.75rem 0;
  line-height: 1.6;
  text-align: justify;
}

/* Main section headings (level 1) */
.aip-para.aip-heading {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Letter items (a), b), etc.) */
.aip-para.aip-letter-item {
  margin: 0.5rem 0;
}

/* Indentation levels */
.aip-indent-2 { margin-left: 2rem; }
.aip-indent-3 { margin-left: 3rem; }
.aip-indent-4 { margin-left: 4rem; }
.aip-indent-5 { margin-left: 5rem; }
.aip-indent-6 { margin-left: 6rem; }

/* Paragraph number styling */
.aip-para > strong:first-child {
  font-weight: bold;
  margin-right: 0.25em;
}

/* Semantic block boxes */
.note-box,
.reference-box,
.example-box,
.caution-box,
.warning-box,
.phraseology-box {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid;
}

.note-box {
  background-color: #e7f3ff;
  border-left-color: #0066cc;
}

.reference-box {
  background-color: #f0f0f0;
  border-left-color: #666;
}

.example-box {
  background-color: #e8f5e9;
  border-left-color: #4caf50;
}

.caution-box {
  background-color: #fff3cd;
  border-left-color: #ffc107;
}

.warning-box {
  background-color: #ffebee;
  border-left-color: #f44336;
}

.phraseology-box {
  background-color: #e1f5fe;
  border-left-color: #03a9f4;
  font-style: italic;
}

.block-title {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.block-content {
  line-height: 1.5;
}

/* Figure styles */
.aip-figure {
  margin: 1.5rem 0;
  text-align: center;
}

.figure-caption {
  font-style: italic;
  margin-bottom: 0.5rem;
  color: #333;
}

.figure-content img {
  max-width: 100%;
  height: auto;
}

/* Table styles */
.aip-table-wrapper {
  margin: 1.5rem 0;
}

.table-caption {
  margin-bottom: 0.5rem;
  font-style: italic;
  text-align: center;
}

.table-responsive {
  overflow-x: auto;
}

.aip-table-wrapper table {
  border-collapse: collapse;
  width: 100%;
}

.aip-table-wrapper th,
.aip-table-wrapper td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}

.aip-table-wrapper th {
  background-color: #f5f5f5;
  font-weight: bold;
}

/* NOTE paragraph style */
.aip-note {
  font-style: italic;
  margin: 0.5rem 0;
  color: #555;
}

/* External links */
.aip-content-list a {
  color: #0066cc;
  text-decoration: none;
  word-break: break-word;
}

.aip-content-list a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .aip-indent-2 { margin-left: 1rem; }
  .aip-indent-3 { margin-left: 1.5rem; }
  .aip-indent-4 { margin-left: 2rem; }
  .aip-indent-5 { margin-left: 2.5rem; }
  .aip-indent-6 { margin-left: 3rem; }

  body {
    padding: 1rem;
  }

  .note-box,
  .reference-box,
  .example-box,
  .caution-box,
  .warning-box,
  .phraseology-box {
    padding: 0.75rem;
  }
}
