    :root {
      --bg: #f5f5f5;
      --surface: #ffffff;
      --text: #222;
      --muted: #555;
      --link: #1661de;
      --maxw: 1200px;
      --gap: 2rem;
      --border: #e6e6e6;
    }
    * { box-sizing: border-box; }
    html, body { margin:0; padding:0; }
    body {
      font-family: 'Libre Franklin', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.65;
    }
    a { color: var(--link); text-decoration: none; }
    a:hover { text-decoration: underline; }
    header.page-header {
      max-width: var(--maxw);
      margin: 0 auto;
      padding: 2rem 1.25rem 0.5rem;
    }
    h1 { font-weight: 700; letter-spacing: .2px; margin: 0 0 0.75rem; }
    .subtitle { color: var(--muted); font-size: .95rem; margin-top:.25rem; }
    .wrap {
      max-width: var(--maxw);
      margin: 0 auto;
      padding: 1rem 1.25rem 4rem;
      display: grid;
      grid-template-columns: 3fr 1fr;
      gap: var(--gap);
    }
    article { background: var(--surface); padding: 1.25rem 1.5rem 2rem; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
    article img { max-width: 100%; height: auto; }
    article table { border-collapse: collapse; width:100%; }
    article td, article th { padding: .35rem .5rem; vertical-align: top; }
    article hr { border: none; border-top: 1px solid #ddd; margin: 2rem 0; }
    /* TOC */
    details.toc { border: 1px solid var(--border); border-radius: 8px; padding: .5rem .75rem; background: #fbfbfb; margin: 0 0 1rem; }
    details.toc summary { font-weight: 600; cursor: pointer; }
    details.toc ul { margin: .5rem 0 0 1rem; padding: 0; }
    details.toc li { margin: .25rem 0; }
    /* Footnotes sidebar */
    .aside-notes { position: sticky; top: 1rem; align-self: start; }
    .aside-notes .box {
      background: var(--surface);
      border-radius: 12px;
      box-shadow: 0 1px 3px rgba(0,0,0,.06);
      padding: 1rem 1rem 1rem 1.25rem;
      max-height: calc(100vh - 2rem);
      overflow: auto;
      border: 1px solid var(--border);
    }
    /* --- Footnote sidebar adjustments --- */
.aside-notes .box {
  font-size: 0.90rem;              /* slightly smaller text */
  background: #fafafa;             /* lighter background tone */
  border: 1px solid #eee;          /* softer border */
}

ol.footnotes li {
  border-bottom: 1px dashed #e0e0e0;
  padding: .3rem 0;
}

ol.footnotes .num {
  color: #888;
}
    .aside-notes h2 { font-size: 1rem; margin: 0 0 .5rem; color: var(--muted); }
    ol.footnotes { list-style: none; padding: 0; margin: 0; }
    ol.footnotes li { display: grid; grid-template-columns: auto 1fr; gap: .5rem; padding: .35rem 0; border-bottom: 1px dashed var(--border); }
    ol.footnotes li:last-child { border-bottom: none; }
    ol.footnotes .num { color: var(--muted); min-width: 2rem; text-align: right; }
    sup.fn-ref { cursor: pointer; font-size: .75em; line-height: 0; vertical-align: super; color: var(--link); }
    sup.fn-ref.active { background: #eaf2ff; border-radius: 4px; }
    ol.footnotes li.active { background: #fff8cc; }
    /* Responsive */
    @media (max-width: 900px) {
      .wrap { grid-template-columns: 1fr; }
      .aside-notes { position: static; }
      .aside-notes .box { max-height: none; }
    }
    /* --- Softer highlight for active footnotes and refs --- */
sup.fn-ref.active {
  background: #e7eefb;           /* very light blue tint */
  color: #0d47a1;                /* soft navy tone */
  border-radius: 3px;
  padding: 0 2px;
  transition: background 0.3s ease, color 0.3s ease;
}

ol.footnotes li.active {
  background: #f2f6fc;           /* faint background hint */
  border-left: 3px solid #b3c8f9; /* slim pastel accent line */
  padding-left: 0.5rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}
  .auto-style1 {
	margin-left: 40px;
}