/* Reading-view styling for the ENGS 28 book.

   Loaded on every page of every HTML target via the html.css.extra
   stringparam in project.ptx.  (assets/deck.css is separate and carries only
   the classroom-deck rules; the web-deck target loads both.)

   ---------------------------------------------------------------------------
   Tables stay inside the text column
   ---------------------------------------------------------------------------
   By default PreTeXt lets a table grow to the full width of the main column
   and pulls it leftwards with a negative margin, so a table with one wordy
   column renders far wider than the ~600px text block and hangs into both
   margins.  For a reference table the reader is comparing against the prose
   beside it, that reads as a different document.

   Book-wide default: a table is as wide as the text, and a wordy cell wraps.
   The selector mirrors the theme's own so it wins on equal specificity by
   loading later.

   Deliberately NOT set here: table-layout.  Left on `auto`, the browser sizes
   each column from its content -- a narrow table stays narrow, and a wide one
   shrinks and wraps where the text is longest.  Forcing `fixed` globally would
   give every column an equal share, which is wrong for most of these tables.
   A table that needs specific proportions opts in below.

   overflow-x stays `auto`, so anything that genuinely cannot compress (a wide
   register bit-map, say) scrolls within the text column instead of breaking
   the page. */

:is(.chapter, .section, .subsection, .subsubsection) > .tabular-box,
:is(.chapter, .section, .subsection, .subsubsection) > .table > .tabular-box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
}

table.tabular {
    max-width: 100%;
}

table.tabular :is(th, td) {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ---------------------------------------------------------------------------
   Per-table column proportions
   ---------------------------------------------------------------------------
   These two Day 8 reference tables have one wordy column and four narrow ones,
   which auto-layout splits more evenly than reads well.  The percentages
   mirror the <col width="..."/> values in the PreTeXt source, which PreTeXt
   drops from HTML.  They do not size the print columns either: stock LaTeX
   uses a <col width> only for a cell holding a <p>.  The PDF wraps its tables
   with tabulary instead; see xsl/engs28-latex.xsl. */

#table-tim14-registers table.tabular,
#table-access-types table.tabular {
    width: 100%;
    table-layout: fixed;
}

#table-tim14-registers table.tabular :is(th, td):nth-child(1) { width: 18%; }
#table-tim14-registers table.tabular :is(th, td):nth-child(2) { width: 12%; }
#table-tim14-registers table.tabular :is(th, td):nth-child(3) { width: 17%; }
#table-tim14-registers table.tabular :is(th, td):nth-child(4) { width: 39%; }
#table-tim14-registers table.tabular :is(th, td):nth-child(5) { width: 14%; }

#table-access-types table.tabular :is(th, td):nth-child(1) { width: 14%; }
#table-access-types table.tabular :is(th, td):nth-child(2) { width: 43%; }
#table-access-types table.tabular :is(th, td):nth-child(3) { width: 43%; }


/* Instructor-only solution blocks. Only ever present in the web-instructor
   build (project.ptx: book.solutions=render); stripped from the student book
   before the HTML is written, so this rule never fires there. */
.instructor-only {
    border: 2px solid #b34700;
    border-radius: 6px;
    background: #fff7f0;
    padding: 0.4em 1em 0.6em;
    margin: 1.2em 0;
}
.instructor-only-label {
    font: 600 0.75rem/1.6 system-ui, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b34700;
}


/* BEGIN generated image aspect ratios -- scripts/image_ratios.py */
/* Generated -- do not edit by hand.  Regenerated by build.sh and
   scripts/build-all.sh; see the header of scripts/image_ratios.py
   for why these exist and what breaks without them.

   `aspect-ratio` on the <img> reserves the figure's height from its
   declared width before the image is fetched, so a page stops
   reflowing as its figures arrive.  Matching is a substring of the
   path under assets/, which survives the ?_r= cache-buster the
   authoring preview appends and the differing external/ prefixes
   across build targets. */
/* NOTE: basename collisions, matched on full path: slide04_img1.png, slide06_img1.png, slide16_img1.png, slide17_img2.png */
img[src*="/bjt_npn_symbol.svg"] { aspect-ratio: 420 / 320; }
img[src*="/i2c_message_frame.svg"] { aspect-ratio: 1040 / 300; }
img[src*="/i2c_start_stop.svg"] { aspect-ratio: 900 / 330; }
img[src*="/i2c_transaction.svg"] { aspect-ratio: 760 / 260; }
img[src*="images/AppSetup/add-include-path-menu.png"] { aspect-ratio: 614 / 514; }
img[src*="images/AppSetup/add-symbol.png"] { aspect-ratio: 512 / 198; }
img[src*="images/AppSetup/blinky-project-src.png"] { aspect-ratio: 512 / 288; }
img[src*="images/AppSetup/copy-project.png"] { aspect-ratio: 512 / 293; }
img[src*="images/AppSetup/cubeide-board-selector-row.png"] { aspect-ratio: 820 / 470; }
img[src*="images/AppSetup/cubeide-board-selector-tab.png"] { aspect-ratio: 770 / 140; }
img[src*="images/AppSetup/cubeide-project-name.png"] { aspect-ratio: 1138 / 836; }
img[src*="images/AppSetup/cubeide-toolbar-build-run.png"] { aspect-ratio: 900 / 75; }
img[src*="images/AppSetup/cubeide-welcome.png"] { aspect-ratio: 1500 / 720; }
img[src*="images/AppSetup/cubeide-wizard-empty-project.png"] { aspect-ratio: 1174 / 884; }
img[src*="images/AppSetup/include-path-configurations.png"] { aspect-ratio: 512 / 396; }
img[src*="images/AppSetup/library-folders.png"] { aspect-ratio: 330 / 414; }
img[src*="images/AppSetup/link-folder.png"] { aspect-ratio: 910 / 566; }
img[src*="images/AppSetup/link-target-library.png"] { aspect-ratio: 1146 / 902; }
img[src*="images/AppSetup/paths-source-location.png"] { aspect-ratio: 1796 / 1152; }
img[src*="images/AppSetup/paths-symbols-add.png"] { aspect-ratio: 1616 / 1072; }
img[src*="images/AppSetup/stlink-firmware-warning.png"] { aspect-ratio: 1080 / 316; }
img[src*="images/AppSetup/stlink-server-missing.png"] { aspect-ratio: 1136 / 290; }
img[src*="images/AppSetup/stlink-upgrade.png"] { aspect-ratio: 1514 / 740; }
img[src*="images/AppSetup/symbols-list.png"] { aspect-ratio: 512 / 304; }
img[src*="images/Day01-Intro-Blinky/slide08_visual.png"] { aspect-ratio: 2387 / 1201; }
img[src*="images/Day01-Intro-Blinky/slide09_visual.png"] { aspect-ratio: 2388 / 1776; }
img[src*="images/Day01-Intro-Blinky/slide13_visual.png"] { aspect-ratio: 1553 / 1004; }
img[src*="images/Day01-Intro-Blinky/slide15_visual.png"] { aspect-ratio: 2459 / 1724; }
img[src*="images/Day01x-Blinky/slide14_ann.png"] { aspect-ratio: 766 / 1221; }
img[src*="images/Day02-Blinky(2)/fault-round1-header.png"] { aspect-ratio: 440 / 290; }
img[src*="images/Day02-Blinky(2)/fault-round1-led.png"] { aspect-ratio: 440 / 600; }
img[src*="images/Day02-Blinky(2)/fault-round1.png"] { aspect-ratio: 980 / 1270; }
img[src*="images/Day02-Blinky(2)/fault-round2-header.png"] { aspect-ratio: 440 / 290; }
img[src*="images/Day02-Blinky(2)/fault-round2-led.png"] { aspect-ratio: 440 / 600; }
img[src*="images/Day02-Blinky(2)/fault-round2.png"] { aspect-ratio: 980 / 1270; }
img[src*="images/Day02-Blinky(2)/fault-round3-header.png"] { aspect-ratio: 440 / 290; }
img[src*="images/Day02-Blinky(2)/fault-round3-led.png"] { aspect-ratio: 440 / 600; }
img[src*="images/Day02-Blinky(2)/fault-round3.png"] { aspect-ratio: 980 / 1270; }
img[src*="images/Day02-Blinky(2)/fullslide_12.png"] { aspect-ratio: 1650 / 1069; }
img[src*="images/Day02-Blinky(2)/fullslide_14.png"] { aspect-ratio: 2446 / 1590; }
img[src*="images/Day02-Blinky(2)/fullslide_15.png"] { aspect-ratio: 2478 / 1795; }
img[src*="images/Day02-Blinky(2)/slide08_799bfba4.png"] { aspect-ratio: 1408 / 768; }
img[src*="images/Day02-Blinky(2)/slide10_0d9da36e.png"] { aspect-ratio: 400 / 500; }
img[src*="images/Day02-Blinky(2)/slide11_cb6cab2b.png"] { aspect-ratio: 1606 / 806; }
img[src*="images/Day02-Blinky(2)/slide18_7ffed5f7.png"] { aspect-ratio: 2048 / 1121; }
img[src*="images/Day02-Blinky(2)/slide19_4462fc0a.png"] { aspect-ratio: 524 / 797; }
img[src*="images/Day02-Blinky(2)/slide23_ann.png"] { aspect-ratio: 1167 / 1487; }
img[src*="images/Day02-Blinky(2)/slide25_e6bdef76.png"] { aspect-ratio: 1755 / 1459; }
img[src*="images/Day02-Blinky(2)/slide26_995cec21.png"] { aspect-ratio: 1394 / 950; }
img[src*="images/Day02-Blinky(2)/slide37_ca307cb5.png"] { aspect-ratio: 918 / 1525; }
img[src*="images/Day03-Switches/ann-22.png"] { aspect-ratio: 1500 / 800; }
img[src*="images/Day03-Switches/ann-23.png"] { aspect-ratio: 1500 / 1125; }
img[src*="images/Day03-Switches/ann-24.png"] { aspect-ratio: 1500 / 935; }
img[src*="images/Day03-Switches/slide16_31ca4cb7.png"] { aspect-ratio: 564 / 506; }
img[src*="images/Day03-Switches/slide17_e3a60d59.png"] { aspect-ratio: 600 / 630; }
img[src*="images/Day03-Switches/slide18_b0119462.png"] { aspect-ratio: 1863 / 1512; }
img[src*="images/Day03-Switches/slide19_5c4e2225.png"] { aspect-ratio: 1431 / 948; }
img[src*="images/Day03-Switches/slide19_scope_only.png"] { aspect-ratio: 1195 / 948; }
img[src*="images/Day03-Switches/slide19_settings_panel.png"] { aspect-ratio: 276 / 375; }
img[src*="images/Day03-Switches/slide23_cdfa0eb4.png"] { aspect-ratio: 918 / 1525; }
img[src*="images/Day03-Switches/slide24_07d739fd.png"] { aspect-ratio: 918 / 1525; }
img[src*="images/Day03-Switches/slide36_428a4d33.png"] { aspect-ratio: 2048 / 1707; }
img[src*="images/Day03x-Debounce/ann-d3x-bounce.png"] { aspect-ratio: 1500 / 1040; }
img[src*="images/Day03x-Debounce/ann-d3x-cap-codes.png"] { aspect-ratio: 1500 / 575; }
img[src*="images/Day03x-Debounce/ann-d3x-compare.png"] { aspect-ratio: 1500 / 820; }
img[src*="images/Day03x-Debounce/ann-d3x-rc-circuit.png"] { aspect-ratio: 1500 / 1000; }
img[src*="images/Day03x-Debounce/ann-d3x-rc-results.png"] { aspect-ratio: 1500 / 895; }
img[src*="images/Day03x-Debounce/ann-d3x-rc-wiring.png"] { aspect-ratio: 1500 / 705; }
img[src*="images/Day03x-Debounce/ann-d3x-trigger.png"] { aspect-ratio: 1500 / 1025; }
img[src*="images/Day03x-Debounce/ann-d3x-wiring.png"] { aspect-ratio: 1500 / 935; }
img[src*="images/Day03x-Debounce/metal-film-cap-blue.png"] { aspect-ratio: 640 / 640; }
img[src*="images/Day03x-Debounce/metal-film-cap-cream.png"] { aspect-ratio: 640 / 640; }
img[src*="images/Day03x-Debounce/slide04_9157d76f.png"] { aspect-ratio: 2048 / 1354; }
img[src*="images/Day03x-Debounce/slide20_cdfa0eb4.png"] { aspect-ratio: 918 / 1525; }
img[src*="images/Day04-Debounce/ann-d4-state-diagram.png"] { aspect-ratio: 1500 / 1100; }
img[src*="images/Day04-Debounce/fsm-blinkyseq.svg"] { aspect-ratio: 800 / 330; }
img[src*="images/Day05-UART/GPIOx_AFRL_register.png"] { aspect-ratio: 2366 / 1522; }
img[src*="images/Day05-UART/coolterm-windows-port.png"] { aspect-ratio: 1034 / 536; }
img[src*="images/Day05-UART/rm-iopenr-excerpt.png"] { aspect-ratio: 1404 / 642; }
img[src*="images/Day05-UART/rm-moder-excerpt.png"] { aspect-ratio: 1404 / 599; }
img[src*="images/Day05-UART/slide08_80ad6c08.png"] { aspect-ratio: 532 / 606; }
img[src*="images/Day05-UART/slide11_4fcf6192.png"] { aspect-ratio: 1398 / 1234; }
img[src*="images/Day05-UART/slide11_5bdba585.png"] { aspect-ratio: 1398 / 1234; }
img[src*="images/Day05-UART/slide12_2937808e.png"] { aspect-ratio: 1398 / 1124; }
img[src*="images/Day05-UART/slide16_img1.png"] { aspect-ratio: 635 / 124; }
img[src*="images/Day05-UART/slide17_img1.png"] { aspect-ratio: 1176 / 272; }
img[src*="images/Day05-UART/slide20_img1.png"] { aspect-ratio: 784 / 564; }
img[src*="images/Day05-UART/slide22_img1_annotated.png"] { aspect-ratio: 2490 / 1850; }
img[src*="images/Day05-UART/slide24_img1.png"] { aspect-ratio: 1176 / 297; }
img[src*="images/Day05-UART/slide25_img1.png"] { aspect-ratio: 1472 / 506; }
img[src*="images/Day05-UART/slide26_img1.png"] { aspect-ratio: 1139 / 673; }
img[src*="images/Day05-UART/slide29_img1.png"] { aspect-ratio: 972 / 803; }
img[src*="images/Day05-UART/slide32_2f30042a.png"] { aspect-ratio: 1099 / 255; }
img[src*="images/Day05-UART/slide34_img1.png"] { aspect-ratio: 2004 / 886; }
img[src*="images/Day05-UART/slide34_img2.png"] { aspect-ratio: 1964 / 504; }
img[src*="images/Day05-UART/slide38.png"] { aspect-ratio: 2416 / 1718; }
img[src*="images/Day05-UART/slide42_waveform.png"] { aspect-ratio: 2392 / 470; }
img[src*="images/Day05-UART/slide43_76f37979.png"] { aspect-ratio: 1114 / 226; }
img[src*="images/Day05X-InputOutputDatasheets/slide04_img1.png"] { aspect-ratio: 956 / 303; }
img[src*="images/Day06-BJTS_and_MOSFETS/low-side-cropped.png"] { aspect-ratio: 870 / 555; }
img[src*="images/Day06-BJTS_and_MOSFETS/slide10_img1_mode5.png"] { aspect-ratio: 1139 / 673; }
img[src*="images/Day06-BJTS_and_MOSFETS/slide14_img1.png"] { aspect-ratio: 486 / 740; }
img[src*="images/Day06-BJTS_and_MOSFETS/slide19_img2.png"] { aspect-ratio: 852 / 712; }
img[src*="images/Day06-BJTS_and_MOSFETS/slide20_img3.png"] { aspect-ratio: 1258 / 1092; }
img[src*="images/Day06-BJTS_and_MOSFETS/slide23_img0_cropped.png"] { aspect-ratio: 2462 / 1665; }
img[src*="images/Day06-BJTS_and_MOSFETS/slide30_img2.png"] { aspect-ratio: 390 / 608; }
img[src*="images/Day06-BJTS_and_MOSFETS/slide35_img1.png"] { aspect-ratio: 642 / 908; }
img[src*="images/Day06-BJTS_and_MOSFETS/slide35_img2.png"] { aspect-ratio: 642 / 883; }
img[src*="images/Day07-ADC/adc-chselr.svg"] { aspect-ratio: 782 / 849; }
img[src*="images/Day07-ADC/adc-cr-annotated.svg"] { aspect-ratio: 868 / 205; }
img[src*="images/Day07-ADC/adc-datasheet-table12.svg"] { aspect-ratio: 1404 / 1269; }
img[src*="images/Day07-ADC/adc-divider.svg"] { aspect-ratio: 780 / 560; }
img[src*="images/Day07-ADC/adc-isr-annotated.svg"] { aspect-ratio: 920 / 206; }
img[src*="images/Day07-ADC/adc-pot-photo.svg"] { aspect-ratio: 500 / 585; }
img[src*="images/Day07-ADC/adc-rmw-damage.svg"] { aspect-ratio: 720 / 640; }
img[src*="images/Day07-ADC/adc-sar-block.svg"] { aspect-ratio: 704 / 404; }
img[src*="images/Day07-ADC/adc-signal-chain.svg"] { aspect-ratio: 1200 / 340; }
img[src*="images/Day07-ADC/adc-system-view.svg"] { aspect-ratio: 1159 / 1018; }
img[src*="images/Day07-ADC/adc-test-circuit.svg"] { aspect-ratio: 923 / 1514; }
img[src*="images/Day07-ADC/adc-timing.svg"] { aspect-ratio: 880 / 357; }
img[src*="images/Day07-ADC/rm-adc-isr-excerpt.png"] { aspect-ratio: 1437 / 502; }
img[src*="images/Day07x-Debugging/iopenr_before_tight.png"] { aspect-ratio: 984 / 230; }
img[src*="images/Day07x-Debugging/nucleo_power_header.png"] { aspect-ratio: 360 / 330; }
img[src*="images/Day07x-Debugging/rm_moder_reset_value.png"] { aspect-ratio: 2147 / 395; }
img[src*="images/Day07x-Debugging/slide15_img2.png"] { aspect-ratio: 1355 / 1075; }
img[src*="images/Day07x-Debugging/slide16_img1.png"] { aspect-ratio: 982 / 856; }
img[src*="images/Day07x-Debugging/slide17_img2.png"] { aspect-ratio: 736 / 196; }
img[src*="images/Day07x-Debugging/slide17_img3.png"] { aspect-ratio: 688 / 308; }
img[src*="images/Day07x-Debugging/slide17_img4.png"] { aspect-ratio: 778 / 320; }
img[src*="images/Day07x-Debugging/slide18_img1.png"] { aspect-ratio: 644 / 282; }
img[src*="images/Day07x-Debugging/slide18_img2.png"] { aspect-ratio: 604 / 272; }
img[src*="images/Day07x-Debugging/slide19_img1.png"] { aspect-ratio: 1102 / 278; }
img[src*="images/Day07x-Debugging/slide20_f789c46b.png"] { aspect-ratio: 856 / 409; }
img[src*="images/Day07x-Debugging/slide21_img1.png"] { aspect-ratio: 866 / 298; }
img[src*="images/Day07x-Debugging/slide21_img2.png"] { aspect-ratio: 864 / 408; }
img[src*="images/Day07x-Debugging/toolbar_bug_icon.png"] { aspect-ratio: 750 / 201; }
img[src*="images/Day08-Interrupts/adc_blinky_flow.svg"] { aspect-ratio: 1120 / 640; }
img[src*="images/Day08-Interrupts/apbenr2_tim14en.svg"] { aspect-ratio: 896 / 421; }
img[src*="images/Day08-Interrupts/compiler_view_volatile.svg"] { aspect-ratio: 980 / 510; }
img[src*="images/Day08-Interrupts/exec_call.svg"] { aspect-ratio: 1000 / 900; }
img[src*="images/Day08-Interrupts/exec_interrupt.svg"] { aspect-ratio: 1000 / 960; }
img[src*="images/Day08-Interrupts/exec_normal.svg"] { aspect-ratio: 1000 / 770; }
img[src*="images/Day08-Interrupts/irqn_type_tim14.png"] { aspect-ratio: 1760 / 661; }
img[src*="images/Day08-Interrupts/nvic_block_diagram.png"] { aspect-ratio: 1784 / 768; }
img[src*="images/Day08-Interrupts/prescaler_reveal1.png"] { aspect-ratio: 1037 / 200; }
img[src*="images/Day08-Interrupts/prescaler_reveal2.png"] { aspect-ratio: 1037 / 310; }
img[src*="images/Day08-Interrupts/prescaler_reveal3.png"] { aspect-ratio: 1037 / 470; }
img[src*="images/Day08-Interrupts/slide04_9200d3ec.png"] { aspect-ratio: 496 / 252; }
img[src*="images/Day08-Interrupts/slide15_9029797c.png"] { aspect-ratio: 846 / 251; }
img[src*="images/Day08-Interrupts/startup_vectors_tim14.png"] { aspect-ratio: 1732 / 884; }
img[src*="images/Day08-Interrupts/tim14_core.svg"] { aspect-ratio: 1120 / 380; }
img[src*="images/Day08-Interrupts/tim14_prescaler_timing.svg"] { aspect-ratio: 1540 / 827; }
img[src*="images/Day08-Interrupts/tim14_regmap_interrupt.svg"] { aspect-ratio: 1444 / 1006; }
img[src*="images/Day08-Interrupts/tim14_regmap_polled.svg"] { aspect-ratio: 1444 / 1006; }
img[src*="images/Day08-Interrupts/tim14_sr_rcw0.svg"] { aspect-ratio: 887 / 322; }
img[src*="images/Day08-Interrupts/vector_table_tim14.png"] { aspect-ratio: 1816 / 842; }
img[src*="images/Day09-Interrupts(2)/exti_fpr1.svg"] { aspect-ratio: 1329 / 294; }
img[src*="images/Day09-Interrupts(2)/exti_ftsr1.svg"] { aspect-ratio: 1370 / 531; }
img[src*="images/Day09-Interrupts(2)/exti_imr1.svg"] { aspect-ratio: 1343 / 301; }
img[src*="images/Day09-Interrupts(2)/exti_mux.svg"] { aspect-ratio: 1160 / 471; }
img[src*="images/Day09-Interrupts(2)/exti_path_simple.svg"] { aspect-ratio: 1400 / 200; }
img[src*="images/Day09-Interrupts(2)/exti_signal_path.png"] { aspect-ratio: 2478 / 1626; }
img[src*="images/Day09-Interrupts(2)/exticr2_exti4_portb.svg"] { aspect-ratio: 1351 / 302; }
img[src*="images/Day09-Interrupts(2)/exticr_generic.svg"] { aspect-ratio: 1351 / 302; }
img[src*="images/Day09-Interrupts(2)/gpio_input_driver.png"] { aspect-ratio: 1598 / 848; }
img[src*="images/Day09-Interrupts(2)/pb4_falling_edge.svg"] { aspect-ratio: 473 / 369; }
img[src*="images/Day09-Interrupts(2)/rc-wiring-cropped.png"] { aspect-ratio: 1500 / 585; }
img[src*="images/Day09-Interrupts(2)/vector_table_exti.svg"] { aspect-ratio: 1367 / 799; }
img[src*="images/Day09X-I2C/i2c_bus_two_wires.svg"] { aspect-ratio: 900 / 434; }
img[src*="images/Day09X-I2C/i2c_cr2.svg"] { aspect-ratio: 966 / 237; }
img[src*="images/Day09X-I2C/i2c_hardware_block.svg"] { aspect-ratio: 875 / 858; }
img[src*="images/Day09X-I2C/i2c_master_tx_sequence.svg"] { aspect-ratio: 1045 / 411; }
img[src*="images/Day09X-I2C/i2c_pins_nucleo.svg"] { aspect-ratio: 1444 / 1014; }
img[src*="images/Day09X-I2C/i2c_timing_16mhz.png"] { aspect-ratio: 1984 / 920; }
img[src*="images/Day09X-I2C/i2c_timing_48mhz.png"] { aspect-ratio: 1984 / 920; }
img[src*="images/Day09X-I2C/i2c_timing_8mhz.png"] { aspect-ratio: 1984 / 920; }
img[src*="images/Day09X-I2C/open_drain_vs_push_pull.svg"] { aspect-ratio: 960 / 470; }
img[src*="images/Day09X-I2C/scope_ping_ack_1.png"] { aspect-ratio: 2478 / 1544; }
img[src*="images/Day09X-I2C/scope_ping_ack_2.png"] { aspect-ratio: 2438 / 1448; }
img[src*="images/Day09X-I2C/scope_ping_ack_4.png"] { aspect-ratio: 2454 / 1418; }
img[src*="images/Day09X-I2C/uart_point_to_point.png"] { aspect-ratio: 784 / 564; }
img[src*="images/Day09X-I2C/waveforms_i2c_setup_1.png"] { aspect-ratio: 2338 / 1590; }
img[src*="images/Day09X-I2C/waveforms_i2c_setup_2.png"] { aspect-ratio: 2356 / 1358; }
img[src*="images/Day10-I2C(2)/backpack_com_row_map.svg"] { aspect-ratio: 1330 / 740; }
img[src*="images/Day10-I2C(2)/backpack_pins.png"] { aspect-ratio: 919 / 508; }
img[src*="images/Day10-I2C(2)/display_photo.png"] { aspect-ratio: 1295 / 995; }
img[src*="images/Day10-I2C(2)/display_wiring_ad2.svg"] { aspect-ratio: 2029 / 1103; }
img[src*="images/Day10-I2C(2)/firmware_layers.svg"] { aspect-ratio: 1915 / 1271; }
img[src*="images/Day10-I2C(2)/four_digit_wiring.png"] { aspect-ratio: 1340 / 520; }
img[src*="images/Day10-I2C(2)/ht16k33_block_annotated.png"] { aspect-ratio: 2282 / 1750; }
img[src*="images/Day10-I2C(2)/ht16k33_cmd_table_annotated.png"] { aspect-ratio: 679 / 553; }
img[src*="images/Day10-I2C(2)/ht16k33_cmd_table_row1.png"] { aspect-ratio: 679 / 142; }
img[src*="images/Day10-I2C(2)/ht16k33_command_write_annotated.png"] { aspect-ratio: 2402 / 462; }
img[src*="images/Day10-I2C(2)/ht16k33_page_write_annotated.png"] { aspect-ratio: 2494 / 362; }
img[src*="images/Day10-I2C(2)/ht16k33_ram_map_stacked.png"] { aspect-ratio: 1160 / 1043; }
img[src*="images/Day10-I2C(2)/seven_seg_segment_map.svg"] { aspect-ratio: 700 / 290; }
img[src*="images/Day10-I2C(2)/stemma_cable.png"] { aspect-ratio: 626 / 473; }
img[src*="images/Day10-I2C(2)/stm32_af6_pb8_pb9_annotated.png"] { aspect-ratio: 2262 / 1250; }
img[src*="images/Day10-I2C(2)/waveforms_noack_0x60.png"] { aspect-ratio: 1214 / 534; }
img[src*="images/Day11-Motors/actuator-signal-chain.svg"] { aspect-ratio: 1340 / 400; }
img[src*="images/Day11-Motors/fig-pwm-scope.png"] { aspect-ratio: 1205 / 724; }
img[src*="images/Day11-Motors/hbridge-brake.svg"] { aspect-ratio: 800 / 668; }
img[src*="images/Day11-Motors/hbridge-cur-out1-out2.svg"] { aspect-ratio: 800 / 640; }
img[src*="images/Day11-Motors/hbridge-cur-out2-out1.svg"] { aspect-ratio: 800 / 640; }
img[src*="images/Day11-Motors/hbridge-in1-in2.svg"] { aspect-ratio: 800 / 668; }
img[src*="images/Day11-Motors/hbridge-pmos-nmos.svg"] { aspect-ratio: 800 / 682; }
img[src*="images/Day11-Motors/hbridge-shoot-through.svg"] { aspect-ratio: 800 / 668; }
img[src*="images/Day11-Motors/hbridge-stop.svg"] { aspect-ratio: 800 / 668; }
img[src*="images/Day11-Motors/motor-circuit.svg"] { aspect-ratio: 886 / 396; }
img[src*="images/Day11-Motors/motor-equilibrium-speed.svg"] { aspect-ratio: 500 / 160; }
img[src*="images/Day11-Motors/motor-relations.svg"] { aspect-ratio: 420 / 380; }
img[src*="images/Day11-Motors/pwm-counter-compare.svg"] { aspect-ratio: 880 / 490; }
img[src*="images/Day11-Motors/pwm-duty-cycles.svg"] { aspect-ratio: 900 / 560; }
img[src*="images/Day11-Motors/slide09_f985348c.png"] { aspect-ratio: 870 / 934; }
img[src*="images/Day11-Motors/slide17_img2.png"] { aspect-ratio: 524 / 1142; }
img[src*="images/Day11-Motors/tb6612-block-annotated.png"] { aspect-ratio: 1326 / 815; }
img[src*="images/Day11-Motors/tb6612-truth-table-annotated.png"] { aspect-ratio: 1441 / 704; }
img[src*="images/Day11-Motors/tb6612-wiring-exercise1.png"] { aspect-ratio: 1486 / 1056; }
img[src*="images/Day11-Motors/tb6612-wiring-exercise2.png"] { aspect-ratio: 1412 / 1039; }
img[src*="images/Day11x-Motors(2)/fig-ccer-cc1e.svg"] { aspect-ratio: 1416 / 146; }
img[src*="images/Day11x-Motors(2)/fig-ccmr1-cc1s.png"] { aspect-ratio: 2394 / 494; }
img[src*="images/Day11x-Motors(2)/fig-ccmr1-oc1m.png"] { aspect-ratio: 2408 / 500; }
img[src*="images/Day11x-Motors(2)/fig-ccmr1-oc1m_cc1s.png"] { aspect-ratio: 2364 / 1813; }
img[src*="images/Day11x-Motors(2)/fig-cr1-cen.svg"] { aspect-ratio: 1411 / 165; }
img[src*="images/Day11x-Motors(2)/fig-egr-ug.svg"] { aspect-ratio: 1409 / 158; }
img[src*="images/Day11x-Motors(2)/fig-encoder-wheel.jpg"] { aspect-ratio: 1024 / 768; }
img[src*="images/Day11x-Motors(2)/fig-pwm-resolution.svg"] { aspect-ratio: 1842 / 588; }
img[src*="images/Day11x-Motors(2)/fig-tim14-block-full.png"] { aspect-ratio: 2477 / 1474; }
img[src*="images/Day11x-Motors(2)/fig-tim14-main-circuit.png"] { aspect-ratio: 2457 / 1701; }
img[src*="images/Day11x-Motors(2)/fig-tim14-output-stage.png"] { aspect-ratio: 2461 / 1516; }
img[src*="images/Day11x-Motors(2)/fig-tim14-register-map.png"] { aspect-ratio: 2433 / 1314; }
img[src*="images/Day11x-Motors(2)/tim14-simple-path.svg"] { aspect-ratio: 1500 / 440; }
img[src*="images/Day12-Motors(3)/fig-day12-cabled-sensor.jpg"] { aspect-ratio: 970 / 728; }
img[src*="images/Day12-Motors(3)/fig-day12-encoder-wheels.jpg"] { aspect-ratio: 970 / 728; }
img[src*="images/Day12-Motors(3)/fig-day12-lab6-build.svg"] { aspect-ratio: 2084 / 1970; }
img[src*="images/Day12-Motors(3)/fig-day12-sensor-body.jpg"] { aspect-ratio: 970 / 728; }
img[src*="images/Day12-Motors(3)/fig-day12-wiring-annotated.png"] { aspect-ratio: 2289 / 1790; }
img[src*="images/Day12-Motors(3)/fig-deadband.svg"] { aspect-ratio: 1080 / 262; }
img[src*="images/Day12-Motors(3)/fig-photointerrupter-beam.svg"] { aspect-ratio: 1100 / 620; }
img[src*="images/Day12-Motors(3)/fig-photointerrupter-states.svg"] { aspect-ratio: 1100 / 600; }
img[src*="images/Day12-Motors(3)/fig-three-rates.svg"] { aspect-ratio: 1120 / 480; }
img[src*="images/Day12-Motors(3)/rpm-formula.svg"] { aspect-ratio: 560 / 172; }
img[src*="images/Day13-I2C(3)/accelerometer_noDisplay.png"] { aspect-ratio: 1124 / 1814; }
img[src*="images/Day13-I2C(3)/ad2_connector_labels_hires.png"] { aspect-ratio: 738 / 190; }
img[src*="images/Day13-I2C(3)/ad2_digital_bundle.png"] { aspect-ratio: 700 / 700; }
img[src*="images/Day13-I2C(3)/i2c_transfer_pattern.svg"] { aspect-ratio: 1590 / 915; }
img[src*="images/Day13-I2C(3)/i2c_transfer_reads.svg"] { aspect-ratio: 1590 / 478; }
img[src*="images/Day13-I2C(3)/i2c_transfer_writes.svg"] { aspect-ratio: 1590 / 445; }
img[src*="images/Day13-I2C(3)/stemma_wiring.svg"] { aspect-ratio: 1302 / 674; }
img[src*="images/Day13-I2C(3)/waveforms_capture_a.png"] { aspect-ratio: 887 / 93; }
img[src*="images/Day13-I2C(3)/waveforms_capture_b.png"] { aspect-ratio: 1051 / 92; }
img[src*="images/Day13-I2C(3)/waveforms_capture_b_read.png"] { aspect-ratio: 762 / 91; }
img[src*="images/Day13-I2C(3)/waveforms_capture_b_write.png"] { aspect-ratio: 981 / 92; }
img[src*="images/Day13-I2C(3)/waveforms_capture_c.png"] { aspect-ratio: 1072 / 91; }
img[src*="images/Day13-I2C(3)/waveforms_capture_c_read.png"] { aspect-ratio: 727 / 89; }
img[src*="images/Day13-I2C(3)/waveforms_capture_c_write.png"] { aspect-ratio: 959 / 93; }
img[src*="images/Day13-I2C(3)/waveforms_setup_50us.png"] { aspect-ratio: 2338 / 1590; }
img[src*="images/Day13x-Accelerometer/accel_specs_masked.svg"] { aspect-ratio: 716 / 329; }
img[src*="images/Day13x-Accelerometer/accel_specs_reveal.svg"] { aspect-ratio: 716 / 365; }
img[src*="images/Day13x-Accelerometer/accel_specs_table.svg"] { aspect-ratio: 716 / 454; }
img[src*="images/Day13x-Accelerometer/breakout_schematic.svg"] { aspect-ratio: 1024 / 705; }
img[src*="images/Day13x-Accelerometer/capacitive_pickoff.svg"] { aspect-ratio: 760 / 400; }
img[src*="images/Day13x-Accelerometer/capacitive_pickoff_differential.svg"] { aspect-ratio: 900 / 400; }
img[src*="images/Day13x-Accelerometer/data_format_rows.svg"] { aspect-ratio: 1060 / 470; }
img[src*="images/Day13x-Accelerometer/lsm303agr_block.svg"] { aspect-ratio: 1250 / 785; }
img[src*="images/Day13x-Accelerometer/mass_spring.svg"] { aspect-ratio: 880 / 430; }
img[src*="images/Day13x-Accelerometer/mass_spring_rest.svg"] { aspect-ratio: 880 / 430; }
img[src*="images/Day13x-Accelerometer/mems_mechanism.png"] { aspect-ratio: 1235 / 468; }
img[src*="images/Day13x-Accelerometer/mems_micrograph.png"] { aspect-ratio: 282 / 305; }
img[src*="images/Day13x-Accelerometer/one_byte_example.svg"] { aspect-ratio: 1060 / 250; }
img[src*="images/Day13x-Accelerometer/sign_bit_weights.svg"] { aspect-ratio: 1060 / 300; }
img[src*="images/Day14-Accelerometer(2)/CubeIDEExcludeFromBuild_circled.svg"] { aspect-ratio: 714 / 890; }
img[src*="images/Day14-Accelerometer(2)/accelRegisterSettingsInstructor.png"] { aspect-ratio: 1490 / 993; }
img[src*="images/Day14-Accelerometer(2)/accel_modes.png"] { aspect-ratio: 771 / 296; }
img[src*="images/Day14-Accelerometer(2)/coolterm_plainview_placeholder.svg"] { aspect-ratio: 1200 / 360; }
img[src*="images/Day14-Accelerometer(2)/coolterm_plotter.png"] { aspect-ratio: 1398 / 1066; }
img[src*="images/Day14-Accelerometer(2)/coolterm_view_chart_circled.svg"] { aspect-ratio: 1170 / 238; }
img[src*="images/Day14-Accelerometer(2)/ctrl_bytes_filled.svg"] { aspect-ratio: 1200 / 330; }
img[src*="images/Day14-Accelerometer(2)/ctrl_reg1_fields.png"] { aspect-ratio: 773 / 587; }
img[src*="images/Day14-Accelerometer(2)/ctrl_reg1_rates.png"] { aspect-ratio: 772 / 409; }
img[src*="images/Day14-Accelerometer(2)/ctrl_reg4_fields.png"] { aspect-ratio: 780 / 606; }
img[src*="images/Day14-Accelerometer(2)/i2c_transfer_read_vs_write.svg"] { aspect-ratio: 1590 / 510; }
img[src*="images/Day14-Accelerometer(2)/tilt_single_axis.svg"] { aspect-ratio: 1030 / 300; }
img[src*="images/Day14-Accelerometer(2)/tilt_two_axis.svg"] { aspect-ratio: 1030 / 370; }
img[src*="images/Day15-Servos/fig-servo-pulse-resolution.svg"] { aspect-ratio: 1845 / 578; }
img[src*="images/Day15-Servos/fig-servo-pulses.png"] { aspect-ratio: 660 / 358; }
img[src*="images/Day15-Servos/fig-servo-scope-1ms.png"] { aspect-ratio: 2048 / 775; }
img[src*="images/Day15-Servos/fig-servo-scope-2ms.png"] { aspect-ratio: 2048 / 775; }
img[src*="images/Day15-Servos/slide06_d84321e4.png"] { aspect-ratio: 960 / 626; }
img[src*="images/Day15-Servos/slide08_095020b6.png"] { aspect-ratio: 986 / 252; }
img[src*="images/Day15-Servos/slide09_a204d4b1.jpg"] { aspect-ratio: 2048 / 1536; }
img[src*="images/Day15-Servos/slide14_ef97f387.png"] { aspect-ratio: 1760 / 1168; }
img[src*="images/Day15-Servos/towerPro.jpg"] { aspect-ratio: 970 / 728; }
img[src*="images/Day15-Servos/towerProPot.png"] { aspect-ratio: 1994 / 1398; }
img[src*="images/Day15-Servos/towerProPowering.png"] { aspect-ratio: 1626 / 1334; }
img[src*="images/Day16-Photosensors/fig-photocell-divider.svg"] { aspect-ratio: 610 / 490; }
img[src*="images/Day16-Photosensors/lab8-fig1-divider.png"] { aspect-ratio: 502 / 568; }
img[src*="images/Day16-Photosensors/lab8-fig6-tracker-loop.png"] { aspect-ratio: 886 / 205; }
img[src*="images/Day16-Photosensors/loglog-plot.png"] { aspect-ratio: 1678 / 1164; }
img[src*="images/Day16-Photosensors/slide03_img1.png"] { aspect-ratio: 1200 / 900; }
img[src*="images/Day16-Photosensors/slide09_a9c74b15.png"] { aspect-ratio: 981 / 1426; }
img[src*="images/Day16-Photosensors/slide11_324c26cf.png"] { aspect-ratio: 581 / 549; }
img[src*="images/Day16-Photosensors/slide12_a6a60c41.png"] { aspect-ratio: 726 / 544; }
img[src*="images/Day16-Photosensors/week8FullLabSetup.png"] { aspect-ratio: 2236 / 1874; }
img[src*="images/Day17-BLE/fig-ble-central.png"] { aspect-ratio: 620 / 465; }
img[src*="images/Day17-BLE/fig-ble-topologies.png"] { aspect-ratio: 1756 / 615; }
img[src*="images/Day17-BLE/fig-bluefruit-annotated.svg"] { aspect-ratio: 640 / 465; }
img[src*="images/Day17-BLE/fig-bluefruit-pinout.png"] { aspect-ratio: 640 / 465; }
img[src*="images/Day17-BLE/fig-bluefruit-switch.svg"] { aspect-ratio: 358 / 410; }
img[src*="images/Day17-BLE/slide06_img1.png"] { aspect-ratio: 794 / 1000; }
img[src*="images/Day17-BLE/slide06_img2.png"] { aspect-ratio: 620 / 620; }
img[src*="images/Day17x-Sleep_Modes/fig-clock-tree-annotated.svg"] { aspect-ratio: 878 / 795; }
img[src*="images/Day17x-Sleep_Modes/fig-power-entry-trim.png"] { aspect-ratio: 940 / 1126; }
img[src*="images/Day17x-Sleep_Modes/fig-pwr-cr1-circled.png"] { aspect-ratio: 1796 / 248; }
img[src*="images/Day17x-Sleep_Modes/fig-scr-circled.png"] { aspect-ratio: 720 / 238; }
img[src*="images/Day17x-Sleep_Modes/fig-watchdog-dog.png"] { aspect-ratio: 701 / 537; }
img[src*="images/Day17x-Sleep_Modes/slide06_img1.png"] { aspect-ratio: 1438 / 900; }
img[src*="images/Day17x-Sleep_Modes/slide08_img1.png"] { aspect-ratio: 1004 / 497; }
img[src*="images/Day17x-Sleep_Modes/slide09_img1.png"] { aspect-ratio: 853 / 940; }
img[src*="images/Day19-Topics/slide04_img1.png"] { aspect-ratio: 532 / 372; }
img[src*="images/Day19-Topics/slide04_img2.png"] { aspect-ratio: 192 / 120; }
img[src*="images/Day19-Topics/slide04_img3.png"] { aspect-ratio: 306 / 190; }
img[src*="images/Day19-Topics/slide04_img4.png"] { aspect-ratio: 330 / 214; }
img[src*="/mosfet_nchan_symbol.png"] { aspect-ratio: 413 / 550; }
img[src*="/uart_frame_E.svg"] { aspect-ratio: 944 / 240; }
/* END generated image aspect ratios */
