/* OCA / Atlantis C64 assembly tutorial: styles that mirror the Typst-built PDFs.
   Fonts are the same ones the PDFs embed: Libertinus Serif (OFL) and DejaVu Sans Mono (Bitstream Vera licence). */
@font-face { font-family: "OCA Serif"; src: url(fonts/LibertinusSerif-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "OCA Serif"; src: url(fonts/LibertinusSerif-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "OCA Serif"; src: url(fonts/LibertinusSerif-Bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "OCA Mono"; src: url(fonts/DejaVuSansMono.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "OCA Mono"; src: url(fonts/DejaVuSansMono-Bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "OCA Mono"; src: url(fonts/DejaVuSansMono-Oblique.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

.oca-tutorial {
    --oca-blue: #0366d6;
    --oca-border: #e1e4e8;
    --oca-box: #ebf4fc;
    --oca-muted: #57606a;
    --oca-serif: "OCA Serif", "Libertinus Serif", Palatino, "Palatino Linotype", Georgia, serif;
    --oca-mono: "OCA Mono", "DejaVu Sans Mono", Consolas, Menlo, monospace;
    max-width: 41.4em;
    margin: 0 auto;
    font-family: var(--oca-serif);
    font-size: 1.1rem;
    line-height: 1.38;
    color: #000;
    text-align: left;
}

/* title block (same look as the first page of every PDF) */
.oca-tutorial .oca-head { margin: 0 0 1.4em; padding-bottom: .85em; border-bottom: 2px solid var(--oca-blue); }
.oca-tutorial .oca-kicker { color: var(--oca-blue); font-size: .72em; font-weight: 700; letter-spacing: .17em; margin-bottom: 1.1em; }
.oca-tutorial .oca-kicker a { color: inherit; text-decoration: none; }
.oca-tutorial .oca-kicker a:hover, .oca-tutorial .oca-kicker a:focus { text-decoration: underline; }
.oca-tutorial .oca-title { font-family: var(--oca-serif); font-size: 1.85em; font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: #1b1f24; }
.oca-tutorial .oca-author { font-style: italic; font-size: .8em; color: var(--oca-muted); }

/* text */
.oca-tutorial p { margin: 0 0 .65em; }
.oca-tutorial h2, .oca-tutorial h3, .oca-tutorial h4, .oca-tutorial h5, .oca-tutorial h6 {
    font-family: var(--oca-serif); font-weight: 700; line-height: 1.2; color: #000; margin: 1.15em 0 .4em; }
.oca-tutorial h2 { font-size: 1.27em; color: var(--oca-blue); margin-top: 1.5em; }
.oca-tutorial h3 { font-size: 1.2em; }
.oca-tutorial h4 { font-size: 1.1em; }
.oca-tutorial h5, .oca-tutorial h6 { font-size: 1em; }
.oca-tutorial a { color: var(--oca-blue); }
.oca-tutorial ul, .oca-tutorial ol { margin: 0 0 .7em; padding-left: 1.3em; }
.oca-tutorial li { margin: 0; }
.oca-tutorial li > p { margin: 0 0 .2em; }
.oca-tutorial .caption, .oca-tutorial figcaption { margin: .35em 0 0; text-align: center; }

/* code */
.oca-tutorial code, .oca-tutorial pre.code {
    font-family: var(--oca-mono); font-size: .8em; color: #000; background: none; padding: 0; word-break: normal; }
.oca-tutorial pre.code { margin: .8em 0; line-height: 1.43; white-space: pre; overflow-x: auto; tab-size: 4; border: 0; }
.oca-tutorial pre.code code { font-size: inherit; }
.oca-tutorial pre.code.boxed { max-width: 100%; box-sizing: border-box; background: var(--oca-box); border: 1px solid var(--oca-border); border-radius: 6px; padding: .85em 1.1em; }
.oca-tutorial pre .b { font-weight: 700; }
.oca-tutorial pre .i { font-style: italic; }
.oca-tutorial .t005cc5 { color: #005cc5; }
.oca-tutorial .t0086b3 { color: #0086b3; }
.oca-tutorial .t1c7a26 { color: #1c7a26; }
.oca-tutorial .t6a737d { color: #6a737d; }
.oca-tutorial .t0366d6 { color: #0366d6; }
.oca-tutorial .t57606a { color: #57606a; }
.oca-tutorial .t8250df { color: #8250df; }

/* figures, listings, side by side layouts */
.oca-tutorial figure { margin: .9em 0; text-align: center; }
.oca-tutorial figure.oca-listing { text-align: left; }
.oca-tutorial figure.oca-listing figcaption { text-align: left; margin: 0 0 .2em; }
.oca-tutorial img.fig { max-width: 100%; height: auto; }
.oca-tutorial img.fig.px { image-rendering: pixelated; }
.oca-tutorial .oca-cols { display: flex; flex-wrap: wrap; gap: 1em 1em; align-items: flex-start; margin: .8em 0; }
.oca-tutorial .oca-col { min-width: 0; flex: 0 1 auto; max-width: 100%; }
.oca-tutorial .oca-col.oca-col-fill { flex: 1 1 14em; }
.oca-tutorial .oca-col > :first-child { margin-top: 0; }
.oca-tutorial .oca-col > :last-child { margin-bottom: 0; }

/* math */
.oca-tutorial .math { font-family: var(--oca-serif); }
.oca-tutorial .math i { font-style: italic; }
.oca-tutorial .eq { margin: .6em 0; line-height: 1.55; }

/* tables */
.oca-tutorial .tablewrap { overflow-x: auto; margin: .8em 0 1em; }
.oca-tutorial table.data { border-collapse: collapse; width: 100%; line-height: 1.3; }
.oca-tutorial table.data th, .oca-tutorial table.data td { border: 1px solid var(--oca-border); padding: .3em .55em; vertical-align: middle; text-align: left; }
.oca-tutorial table.data th { background: #f6f8fa; font-weight: 700; }
.oca-tutorial table.data.zebra tbody tr:nth-child(even) td { background: #fbfcfd; }
.oca-tutorial table.data.dark th, .oca-tutorial table.data.dark td { border-color: #000; }
.oca-tutorial table.data.dark th { background: none; }
.oca-tutorial table.data .vert { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-weight: 700; }
.oca-tutorial table.data .center { text-align: center; }
.oca-tutorial table.data caption { caption-side: bottom; text-align: center; color: #000; padding-top: .4em; }

/* callouts: note (blue bar), question / answer (Q&A cards) */
.oca-tutorial .callout { margin: .9em 0; padding: .55em .9em; border-radius: 4px; }
.oca-tutorial .callout > :first-child { margin-top: 0; }
.oca-tutorial .callout > :last-child { margin-bottom: 0; }
.oca-tutorial .callout.note { background: #f6f8fa; border-left: 4px solid var(--oca-blue); border-radius: 0 4px 4px 0; color: var(--oca-muted); }
.oca-tutorial .callout.note strong { color: var(--oca-muted); }
.oca-tutorial .callout.answer { background: #f0f0f0; margin: .5em 0; }
.oca-tutorial .callout.question { background: none; border-left: 4px solid #000; border-radius: 0; padding: .1em 0 .1em .8em; }

/* page chrome around a round: action buttons and previous / next navigation */
.oca-tutorial .oca-actions, .oca-tutorial .oca-nav { font-family: var(--font-family-sans-serif, system-ui, sans-serif); font-size: .85rem; line-height: 1.4; }
.oca-tutorial .oca-actions { display: flex; flex-wrap: wrap; gap: .5em; margin: -.4em 0 1.4em; }
.oca-tutorial .oca-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6em 1.2em; margin-top: 2.2em; padding-top: 1em; border-top: 1px solid var(--oca-border); }
