/* css styles */
/* ---------------------------------------------------------
   Change normal link color
   --------------------------------------------------------- */
a {
    color: #066b8a;
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Linguistics-style lists with (@)
   Uses CSS counters with ::before for broad browser support
   --------------------------------------------------------- */

/* ol.example: Pandoc's (@) example lists
   Use ::before instead of ::marker for reliable custom content */
ol.example {
    list-style-type: none;
    padding-left: 3em;
}

ol.example>li {
    position: relative;
}

ol.example>li::before {
    content: "(" counter(list-item) ")";
    position: absolute;
    left: -3em;
    font-weight: normal;
}

/* Other reference-list selectors: keep ::marker approach */
ol.ref-list,
ol[data-list-type="decimal"]:not(.numbered),
ol.numbered {
    list-style-position: outside;
    padding-left: 3em;
}

ol.ref-list>li::marker,
ol[data-list-type="decimal"]:not(.numbered)>li::marker,
ol.numbered>li::marker {
    content: "(" counter(list-item) ")" "\00a0\00a0";
    font-weight: normal;
}


/* ---------------------------------------------------------
   Nested lists
   --------------------------------------------------------- */

/* Nested lists inside ol.example: inside positioning places the a./b./c.
   marker inline at the content edge, reliably to the right of (n) */
ol.example>li>ol {
    padding-left: 0;
    margin-left: 0;
    list-style-position: inside;
}

ol.ref-list ol,
ol[data-list-type="decimal"]:not(.numbered) ol,
ol.numbered ol {
    padding-left: 1em;
}

/* Hanging indent: wrapped lines align with text start, not the marker */
ol.example>li>ol>li {
    padding-left: 1em;
    text-indent: -1em;
}
