/* ==========================================================================
   HTML Tutorial — Scoped under .tutorial-html
   ========================================================================== */

.tutorial-html pre {
    padding: 12px 16px;
    border-radius: 6px;
    overflow-x: auto;
}

.tutorial-html code {
    background: #f0f0f0;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.9em;
}

.tutorial-html pre code {
    background: none;
    padding: 0;
}

.tutorial-html .highlight {
    background: #f6f8fa;
    border-radius: 6px;
    padding: 12px 16px;
    overflow-x: auto;
}

.tutorial-html .highlight pre {
    padding: 0;
    margin: 0;
    background: none;
}

.tutorial-html table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.tutorial-html th,
.tutorial-html td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.tutorial-html th {
    background: #f6f8fa;
}

.tutorial-html .callout {
    border: 1px solid #ddd;
    border-left-width: 5px;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 1.2em 0;
}

.tutorial-html details.callout {
    padding: 0;
}

.tutorial-html details.callout>summary.callout-title {
    padding: 12px 16px;
    margin: 0;
    cursor: pointer;
    list-style: none;
}

.tutorial-html details.callout>summary.callout-title::-webkit-details-marker {
    display: none;
}

.tutorial-html details.callout>summary.callout-title::before {
    content: "▶";
    display: inline-block;
    margin-left: 8px;
    font-size: 0.7em;
    transition: transform 0.15s;
}

.tutorial-html details.callout[open]>summary.callout-title::before {
    transform: rotate(90deg);
}

.tutorial-html details.callout>.callout-body {
    padding: 0 16px 12px 16px;
}

.tutorial-html .callout-title {
    margin: 0 0 8px 0;
}

.tutorial-html .callout-note {
    border-left-color: #3b82f6;
}

.tutorial-html .callout-tip {
    border-left-color: #22c55e;
}

.tutorial-html .callout-warning {
    border-left-color: #f59e0b;
}

.tutorial-html .callout-important {
    border-left-color: #ef4444;
}

.tutorial-html .callout-caution {
    border-left-color: #f97316;
}

.tutorial-html pre {
    line-height: 125%;
}

.tutorial-html td.linenos .normal {
    color: inherit;
    background-color: transparent;
    padding-left: 5px;
    padding-right: 5px;
}

.tutorial-html span.linenos {
    color: inherit;
    background-color: transparent;
    padding-left: 5px;
    padding-right: 5px;
}

.tutorial-html td.linenos .special {
    color: #000000;
    background-color: #ffffc0;
    padding-left: 5px;
    padding-right: 5px;
}

.tutorial-html span.linenos.special {
    color: #000000;
    background-color: #ffffc0;
    padding-left: 5px;
    padding-right: 5px;
}

.tutorial-html .highlight .hll {
    background-color: #ffffcc
}

.tutorial-html .highlight {
    background: #f8f8f8;
    direction: ltr;
}

.tutorial-html .highlight .c {
    color: #3D7B7B;
    font-style: italic
}

.tutorial-html .highlight .err {
    border: 1px solid #F00
}

.tutorial-html .highlight .k {
    color: #008000;
    font-weight: bold
}

.tutorial-html .highlight .o {
    color: #666
}

.tutorial-html .highlight .ch {
    color: #3D7B7B;
    font-style: italic
}

.tutorial-html .highlight .cm {
    color: #3D7B7B;
    font-style: italic
}

.tutorial-html .highlight .cp {
    color: #9C6500
}

.tutorial-html .highlight .cpf {
    color: #3D7B7B;
    font-style: italic
}

.tutorial-html .highlight .c1 {
    color: #3D7B7B;
    font-style: italic
}

.tutorial-html .highlight .cs {
    color: #3D7B7B;
    font-style: italic
}

.tutorial-html .highlight .gd {
    color: #A00000
}

.tutorial-html .highlight .ge {
    font-style: italic
}

.tutorial-html .highlight .ges {
    font-weight: bold;
    font-style: italic
}

.tutorial-html .highlight .gr {
    color: #E40000
}

.tutorial-html .highlight .gh {
    color: #000080;
    font-weight: bold
}

.tutorial-html .highlight .gi {
    color: #008400
}

.tutorial-html .highlight .go {
    color: #717171
}

.tutorial-html .highlight .gp {
    color: #000080;
    font-weight: bold
}

.tutorial-html .highlight .gs {
    font-weight: bold
}

.tutorial-html .highlight .gu {
    color: #800080;
    font-weight: bold
}

.tutorial-html .highlight .gt {
    color: #04D
}

.tutorial-html .highlight .kc {
    color: #008000;
    font-weight: bold
}

.tutorial-html .highlight .kd {
    color: #008000;
    font-weight: bold
}

.tutorial-html .highlight .kn {
    color: #008000;
    font-weight: bold
}

.tutorial-html .highlight .kp {
    color: #008000
}

.tutorial-html .highlight .kr {
    color: #008000;
    font-weight: bold
}

.tutorial-html .highlight .kt {
    color: #B00040
}

.tutorial-html .highlight .m {
    color: #666
}

.tutorial-html .highlight .s {
    color: #BA2121
}

.tutorial-html .highlight .na {
    color: #687822
}

.tutorial-html .highlight .nb {
    color: #008000
}

.tutorial-html .highlight .nc {
    color: #00F;
    font-weight: bold
}

.tutorial-html .highlight .no {
    color: #800
}

.tutorial-html .highlight .nd {
    color: #A2F
}

.tutorial-html .highlight .ni {
    color: #717171;
    font-weight: bold
}

.tutorial-html .highlight .ne {
    color: #CB3F38;
    font-weight: bold
}

.tutorial-html .highlight .nf {
    color: #00F
}

.tutorial-html .highlight .nl {
    color: #767600
}

.tutorial-html .highlight .nn {
    color: #00F;
    font-weight: bold
}

.tutorial-html .highlight .nt {
    color: #008000;
    font-weight: bold
}

.tutorial-html .highlight .nv {
    color: #19177C
}

.tutorial-html .highlight .ow {
    color: #A2F;
    font-weight: bold
}

.tutorial-html .highlight .w {
    color: #BBB
}

.tutorial-html .highlight .mb {
    color: #666
}

.tutorial-html .highlight .mf {
    color: #666
}

.tutorial-html .highlight .mh {
    color: #666
}

.tutorial-html .highlight .mi {
    color: #666
}

.tutorial-html .highlight .mo {
    color: #666
}

.tutorial-html .highlight .sa {
    color: #BA2121
}

.tutorial-html .highlight .sb {
    color: #BA2121
}

.tutorial-html .highlight .sc {
    color: #BA2121
}

.tutorial-html .highlight .dl {
    color: #BA2121
}

.tutorial-html .highlight .sd {
    color: #BA2121;
    font-style: italic
}

.tutorial-html .highlight .s2 {
    color: #BA2121
}

.tutorial-html .highlight .se {
    color: #AA5D1F;
    font-weight: bold
}

.tutorial-html .highlight .sh {
    color: #BA2121
}

.tutorial-html .highlight .si {
    color: #A45A77;
    font-weight: bold
}

.tutorial-html .highlight .sx {
    color: #008000
}

.tutorial-html .highlight .sr {
    color: #A45A77
}

.tutorial-html .highlight .s1 {
    color: #BA2121
}

.tutorial-html .highlight .ss {
    color: #19177C
}

.tutorial-html .highlight .bp {
    color: #008000
}

.tutorial-html .highlight .fm {
    color: #00F
}

.tutorial-html .highlight .vc {
    color: #19177C
}

.tutorial-html .highlight .vg {
    color: #19177C
}

.tutorial-html .highlight .vi {
    color: #19177C
}

.tutorial-html .highlight .vm {
    color: #19177C
}

.tutorial-html .highlight .il {
    color: #666
}

.tutorial-html .custom-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.tutorial-html .custom-list li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* ---------- Footnotes (Pandoc-generated) ---------- */
.tutorial-html .footnote {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    line-height: 1.6;
}

.tutorial-html .footnote-ref {
    color: #1e4b6e;
    text-decoration: none;
    font-weight: 600;
}

.tutorial-html .footnote-ref:hover {
    text-decoration: underline;
}

.tutorial-html .footnote-backref {
    color: #1e4b6e;
    text-decoration: none;
    font-size: 0.85em;
    margin-right: 4px;
}

.tutorial-html .footnote-backref:hover {
    text-decoration: underline;
}