/*
 * Cookbook tweaks: only inside the main content column.
 * Does NOT touch grid/row/col layout and does NOT affect sidebar.
 */

.xowiki-content .col-md-9 {
  font-size: 15px;
  line-height: 1.65;
}

/* Paragraph/list spacing */
.xowiki-content .col-md-9 p {
  margin: 0 0 1.0em;
}

/* Lists: slightly tighter top, normal bottom */
.xowiki-content .col-md-9 ul,
.xowiki-content .col-md-9 ol {
  margin-top: 0.15em;
  margin-bottom: 0.9em;
  margin-left: 1.4em;
}

/* Keep numbered lists compact */
.xowiki-content .col-md-9 ol > li {
  margin: 0;
}

/* Give bullets a bit of breathing room (helps multi-line items like “Overview”) */
.xowiki-content .col-md-9 ul > li {
  margin: 0.12em 0;
}

/* Lists: keep them close to the preceding paragraph/heading */
.xowiki-content .col-md-9 ul,
.xowiki-content .col-md-9 ol {
  margin-top: 0.15em;     /* was 0.25em */
  margin-bottom: 0.9em;   /* was 1.0em (optional small reduction) */
  margin-left: 1.4em;
}

/* No per-item spacing (matches the rest of the site best) */
.xowiki-content .col-md-9 li {
  margin: 0;
}

/* Reduce the gap between the page title (H1) and the first section heading */
.xowiki-content .col-md-9 h1 + h2,
.xowiki-content .col-md-9 h1 + h3 {
  margin-top: 0.6em;
}

/* If there's an empty <p></p> between them (common in XoWiki), handle that too */
.xowiki-content .col-md-9 h1 + p:empty + h2,
.xowiki-content .col-md-9 h1 + p:empty + h3 {
  margin-top: 0.6em;
}

.xowiki-content .col-md-9 h1 {
  margin-bottom: 0.6em;
}
.xowiki-content .col-md-9 h2 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.xowiki-content .col-md-9 h3 {
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}

/* If a heading is followed by a list, add a bit of breathing room */
.xowiki-content .col-md-9 h2 + ul,
.xowiki-content .col-md-9 h2 + ol,
.xowiki-content .col-md-9 h3 + ul,
.xowiki-content .col-md-9 h3 + ol {
  margin-top: 0.4em;
}

/* Inline code */
.xowiki-content .col-md-9 p code,
.xowiki-content .col-md-9 li code,
.xowiki-content .col-md-9 td code {
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: #f2f4f7;
  border: 1px solid #e6e9ef;
  font-size: 0.95em;
}

/* Code blocks */
.xowiki-content .col-md-9 pre,
.xowiki-content .col-md-9 div.code pre {
  padding: 12px 14px;
  margin: 0.7em 0 1.2em;
  border-radius: 6px;
  background: #f7f7f9;
  border: 1px solid #e3e6ea;
  overflow-x: auto;
  line-height: 1.45;
}

.xowiki-content .col-md-9 pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.95em;
}

/* Optional: blockquote styling ONLY in content column (sidebar unaffected now) */
.xowiki-content .col-md-9 blockquote {
  margin: 0.9em 0 1.1em;
  padding: 0.6em 1.0em;
  border-left: 4px solid #cf8a00;
  background: #fff8ea;
}
