Insight of immunity

Reading File
Finding Sources
Finding Sources
Searching PubMed

"immunity" AND "immune system"

Reading File
Reading File
Finding Sources
Reading File
Finding Sources
Loading Image
Reading File
Reading File
Finding Sources
Loading Image
Reading File
Finding Sources
I now have rich material from the textbooks. Let me compile a comprehensive answer.

Insight of Immunity

Immunity is the body's ability to defend itself against foreign substances, pathogens, and abnormal cells. It operates through two major arms - innate immunity (immediate, non-specific) and adaptive immunity (slower, highly specific). These two systems are deeply interconnected: innate immunity alerts and activates adaptive immunity, and adaptive immunity amplifies and directs innate effector mechanisms.

The Three Levels of Defense

The immune system is organized in three layers (Roitt's Essential Immunology):
  1. Physical/Chemical Barriers - Skin, mucous membranes of the respiratory, digestive, and reproductive tracts. Any pathogen must first breach these to gain entry.
  2. Innate Immune System - A rapid, broad-acting defense that activates within hours of infection.
  3. Adaptive Immune System - A highly specific, slower defense that develops over days to weeks and carries immunologic memory.
Innate vs Adaptive Immunity Timeline
Innate vs Adaptive Immunity - time course and key cells (Cellular and Molecular Immunology)

1. Innate Immunity

The innate immune system responds almost immediately (within hours) using mechanisms that are pre-programmed in the germline - meaning every person of the same species has essentially identical innate immune receptors (Roitt's Essential Immunology).

Key Features

FeatureInnate
SpecificityBroad - recognizes PAMPs (Pathogen-Associated Molecular Patterns) shared across microbe groups
DiversityLow - receptors are germline-encoded (PRRs - Pattern Recognition Receptors)
MemoryLimited
SpeedMinutes to hours

Components of Innate Immunity (Cellular and Molecular Immunology)

  • Epithelial barriers - Physical and chemical (antimicrobial peptides)
  • Phagocytes - Neutrophils and macrophages engulf and destroy microbes
  • Dendritic cells (DCs) - Act as sentinels in tissues; bridge innate and adaptive immunity
  • Natural Killer (NK) cells - Kill virus-infected cells and tumour cells
  • Mast cells - Release histamine and mediators during infection/allergy
  • Innate Lymphoid Cells (ILCs) - Support mucosal immunity
  • Complement system - A cascade of ~20 proteins (C1-C9, B, D) that fight pathogens

The Complement System (Guyton and Hall Textbook of Medical Physiology)

Complement is triggered via the classical pathway (antibody-antigen complex activates C1) or alternative pathway (direct microbial surface activation). The cascade has powerful effects:
  1. Opsonization - C3b coats bacteria, dramatically enhancing phagocytosis (up to 100-fold)
  2. Lysis - The Membrane Attack Complex (C5b6789) punches pores in bacterial membranes
  3. Agglutination - Clumps pathogens together
  4. Viral neutralization - Attacks viral structures
  5. Chemotaxis - C5a recruits neutrophils and macrophages to the infection site
  6. Mast cell activation - C3a, C4a, C5a trigger histamine release, promoting inflammation

2. Adaptive Immunity

Adaptive immunity is mediated by lymphocytes (B cells and T cells) and their products. It responds over days to weeks, is exquisitely specific, and - crucially - generates memory (Cellular and Molecular Immunology).

Cardinal Features of Adaptive Immunity

Specificity and Diversity Each lymphocyte clone carries a unique antigen receptor (BCR on B cells; TCR on T cells). The total repertoire can recognize an estimated 10⁷ to 10⁹ distinct antigenic determinants. This concept - that antigen selects from a pre-existing pool of specific lymphocytes - is called clonal selection (first proposed by Macfarlane Burnet in 1957).
Memory After the primary immune response, long-lived memory cells persist. On re-exposure to the same antigen:
  • The secondary response is faster and larger in magnitude
  • Memory cells are more numerous and reactive than naive lymphocytes
Primary vs Secondary Antibody Response
Primary and secondary antibody responses showing clonal selection, plasma cell differentiation, and memory B cell formation (Cellular and Molecular Immunology)
Self-Tolerance The immune system does not attack the body's own tissues. This "self-tolerance" is maintained by:
  • Eliminating self-reactive lymphocytes during development
  • Inactivating (anergizing) self-reactive cells
  • Suppression by regulatory T (Treg) cells
Failure of self-tolerance leads to autoimmune diseases.

3. Types of Adaptive Immunity

Humoral Immunity (B cells)

  • Mediated by antibodies secreted by B lymphocytes (which differentiate into plasma cells)
  • Defends against extracellular microbes and toxins (bacteria in blood, gut, respiratory tract)
  • Antibodies neutralize infectivity, activate complement, and target pathogens for phagocytosis
  • Provides the basis for vaccination (induces memory without disease)

Cell-Mediated Immunity (T cells)

  • Defends against intracellular pathogens - viruses that hide inside cells, bacteria surviving inside macrophages
  • Two major T cell types:
    • Helper T cells (CD4+) - Secrete cytokines that amplify macrophage killing, stimulate B cells, and coordinate immune responses
    • Cytotoxic T cells (CD8+) - Directly kill virus-infected or tumor cells

Active vs Passive Immunity

TypeMechanismDuration
ActiveHost mounts its own immune response (infection or vaccine)Long-lasting
PassiveTransfer of antibodies from another individual (e.g., breast milk, immune globulin)Temporary

4. Evolutionary Perspective

Innate immunity is phylogenetically ancient - present in plants and insects. Adaptive immunity evolved approximately 360 million years ago in jawed vertebrates (sharks). The key components - lymphocytes with diverse antigen receptors, antibodies, and specialized lymphoid tissues - all emerged coordinately during this period (Cellular and Molecular Immunology).

Summary Table

FeatureInnate ImmunityAdaptive Immunity
SpeedMinutes - hoursDays - weeks
SpecificityBroad (PAMPs/DAMPs)Highly specific (epitopes)
ReceptorsGermline-encoded (PRRs)Somatic recombination (BCR/TCR)
MemoryLimitedYes (long-lived)
Key cellsNeutrophils, macrophages, NK cells, DCsB cells, T cells
Key moleculesComplement, cytokines, antimicrobial peptidesAntibodies, cytokines
PhylogenyPlants to vertebratesJawed vertebrates only

Sources:
  • Cellular and Molecular Immunology (Abbas, Lichtman & Pillai), Chapter 1
  • Roitt's Essential Immunology, Chapter 1
  • Guyton and Hall Textbook of Medical Physiology, Chapter 35
A recent 2024 review - Wang et al., MedComm 2024 (PMID 39286776) - provides an updated overview of how innate and adaptive immune systems interact, confirming that the core principles above remain current.

Deep insight of pathology

Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Reading File
Finding Sources
Reading File
Reading File
Reading File
Reading File
Loading Image
Finding Sources
Reading File
Reading File
Reading File
Reading File
Reading File
Loading Image
Reading File

Deep Insight of Pathology

Pathology is the scientific study of the structural, biochemical, and functional changes in cells, tissues, and organs that underlie disease. It is the bridge between basic science and clinical medicine.

I. The Framework of Pathology

Pathology rests on four interconnected concepts (Robbins & Kumar Basic Pathology):
ConceptDefinition
EtiologyThe cause of a disease (genetic susceptibility + environmental triggers)
PathogenesisThe mechanism - the sequence of cellular and molecular events from cause to manifestation
MorphologyThe structural changes in cells and tissues (gross and microscopic)
Clinical ManifestationsThe signs and symptoms that result from structural and functional changes
Steps in the development of disease
The pathologic framework - from etiology to clinical manifestations (Robbins Basic Pathology)
Modern pathology has evolved into precision medicine - recognizing that even cancers of the same organ carry distinct molecular signatures (mutations, epigenetic modifications) that mandate individualized therapy.

II. Cellular Responses to Stress

Cells constantly adjust their structure and function to maintain homeostasis. When stress exceeds adaptive capacity, a spectrum of responses occurs:
Normal cell → Adaptation → Reversible Injury → Irreversible Injury → Cell Death

Causes of Cell Injury

  1. Hypoxia and ischemia - most common; deprives cells of oxygen and nutrients
  2. Toxins - chemical agents and drugs
  3. Infectious agents - viruses, bacteria, parasites
  4. Immunologic reactions - autoimmunity, hypersensitivity
  5. Genetic abnormalities - mutations, chromosomal disorders
  6. Nutritional imbalances - deficiencies and excesses
  7. Physical agents - trauma, extreme temperature, radiation

III. Cellular Adaptations to Stress

Adaptations are reversible changes in cell number, size, or phenotype that allow cells to survive stress (Robbins Basic Pathology):

1. Hypertrophy

Increase in cell size (not number). Seen in cells with limited capacity to divide.
  • Physiologic: Uterus during pregnancy (estrogen-driven); skeletal/cardiac muscle in athletes
  • Pathologic: Cardiac hypertrophy in hypertension - the heart switches contractile proteins from α-myosin to the β form (slower, more energy-efficient). If sustained, this can progress to ventricular dilation and cardiac failure.

2. Hyperplasia

Increase in cell number due to proliferation, stimulated by hormones or growth factors.
  • Physiologic: Breast glandular hyperplasia in puberty/pregnancy
  • Pathologic: Endometrial hyperplasia from estrogenic excess; BPH (benign prostatic hyperplasia)

3. Atrophy

Reduction in cell size and number.
  • Causes: decreased workload (immobilization), loss of innervation, reduced blood supply, inadequate nutrition, loss of endocrine stimulation, aging
  • Mechanism: decreased protein synthesis + ubiquitin-proteasome pathway degradation + increased autophagy
  • Severe atrophy can eventually trigger apoptosis.

4. Metaplasia

Replacement of one adult cell type by another better suited to withstand the stress. Thought to arise from reprogramming of stem cells.
  • Classic example: Cigarette smoking converts ciliated columnar epithelium in bronchi to stratified squamous epithelium. The squamous cells survive better but mucus secretion and ciliary clearance are lost - a double-edged adaptation.
  • Barrett's esophagus: Squamous esophageal epithelium → gastric/intestinal columnar epithelium (due to acid reflux). This carries a risk of adenocarcinoma.

IV. Cell Injury and Cell Death

Reversible Cell Injury

Early cell injury shows:
  • Cell swelling (failure of Na/K ATPase)
  • ER dilation
  • Loss of microvilli
  • Membrane blebs
  • Mitochondrial condensation
These are potentially recoverable if the insult is removed.

Irreversible Injury and Necrosis

Necrosis is "accidental" cell death caused by severe, uncontrollable injury. It is NOT regulated and triggers inflammation because cellular contents leak into surrounding tissue.
Reversible vs Necrotic injury - kidney tubules H&E
A: Normal kidney tubules. B: Reversible ischemic injury (surface blebs, increased eosinophilia). C: Necrosis - loss of nuclei, cell fragmentation, leakage of contents. (Robbins Basic Pathology)

Morphologic Patterns of Necrosis

TypeCharacteristicsTypical Setting
CoagulativeTissue architecture preserved for days; firm texture; eosinophilic anucleate cellsInfarcts in all solid organs (except brain)
LiquefactiveComplete digestion; tissue becomes viscous liquid; pus if bacterialBrain infarcts; bacterial abscesses
Caseous"Cheese-like" friable yellow-white debris; amorphous granular pink on H&E; architecture obliteratedTuberculosis (hallmark)
FatFocal fat destruction; chalky white calcium-fatty acid depositsAcute pancreatitis, abdominal trauma
FibrinoidBright pink amorphous deposits in vessel walls; microscopic findingImmune vasculitis, malignant hypertension
GangrenousCoagulative necrosis + liquefaction from superimposed infectionLimb ischemia ("wet gangrene")

Apoptosis - "Programmed" Cell Death

Apoptosis is a controlled, regulated form of cell death in which cells activate enzymes (caspases) that degrade their own DNA and proteins. Key distinguishing features from necrosis:
FeatureNecrosisApoptosis
Cell sizeEnlarged (swelling)Reduced (shrinkage)
NucleusPyknosis → karyorrhexis → karyolysisFragmented into nucleosome-sized fragments
Plasma membraneDisruptedIntact (altered lipid orientation)
Cellular contentsLeaked - triggers inflammationPackaged into apoptotic bodies - no inflammation
Tissue reactionInflammatoryNo inflammation
Physiologic apoptosis: embryogenesis; normal tissue turnover (intestinal epithelium, immune cells); removal of self-reactive lymphocytes.
Pathologic apoptosis: DNA damage (radiation, cytotoxic drugs); accumulation of misfolded proteins (ER stress); viral infection; killing by cytotoxic T lymphocytes.
Two main apoptotic pathways:
  • Intrinsic (mitochondrial): Regulated by BCL-2 family proteins. Pro-apoptotic proteins (BAX, BAK) open the mitochondrial membrane, releasing cytochrome c, which activates caspases.
  • Extrinsic (death receptor): FasL binds Fas (CD95) or TNF binds TNFR, directly activating caspase-8.

Autophagy - Self-Digestion

In response to nutrient deprivation, cells sequester their own organelles into membrane-bound vesicles that fuse with lysosomes for digestion. This is a survival mechanism but can also trigger apoptosis when overwhelmed.

V. Mechanisms of Cell Injury at the Molecular Level

The consequences of injury depend on: type of injury, duration, severity, cell type, metabolic state, and genetic makeup.

1. Mitochondrial Dysfunction

ATP depletion causes:
  • Failure of Na/K ATPase → cell swelling
  • Anaerobic glycolysis → lactic acid → ↓ pH → enzyme inhibition
  • Ribosome detachment from RER → ↓ protein synthesis
  • Release of pro-apoptotic proteins (cytochrome c)
Skeletal muscle tolerates ischemia for 2-3 hours; cardiac muscle dies after only 20-30 minutes - reflecting metabolic activity differences.

2. Oxidative Stress (Reactive Oxygen Species)

Free radicals (O₂•⁻, OH•, H₂O₂) are generated by:
  • Mitochondrial electron transport
  • Radiation, chemicals
  • Neutrophil oxidative burst during inflammation
  • Reperfusion after ischemia
Effects: lipid peroxidation of membranes, protein oxidation, DNA strand breaks. Counteracted by: SOD, catalase, glutathione peroxidase, vitamins C and E.

3. Calcium Dysregulation

Ischemia and toxins increase intracellular Ca²⁺, which activates:
  • Phospholipases (membrane damage)
  • Proteases (cytoskeletal destruction)
  • Endonucleases (DNA damage)
  • ATPases (ATP depletion)

4. Membrane Damage

Direct injury to plasma membrane, mitochondrial membrane, or lysosomal membrane. Lysosomal rupture releases digestive enzymes into the cytoplasm - a key amplifier of cell death.

5. DNA Damage

Caused by radiation, chemicals, and reactive oxygen species. Mild DNA damage activates p53 → cell cycle arrest → DNA repair. Severe damage triggers apoptosis via p53-induced expression of pro-apoptotic BH3-only proteins.

VI. Inflammation

Inflammation is the body's protective response to infection or tissue damage, designed to eliminate the injurious stimulus and initiate repair. However, it also mediates tissue injury in many diseases.

Causes of Inflammation

  • Infections (bacteria, viruses, fungi, parasites)
  • Tissue necrosis (ischemia, trauma, burns) - even without infection ("sterile inflammation")
  • Foreign bodies (sutures, implants)
  • Immune reactions (autoimmunity, hypersensitivity)

Recognition by Sentinel Cells

Tissue-resident macrophages and dendritic cells carry Toll-like receptors (TLRs) that detect PAMPs (microbial components) and DAMPs (damage signals from dying cells). TLR activation triggers cytokine production. NOD-like receptors (NLRs) assemble the inflammasome, generating active IL-1β.

Acute Inflammation

Acute inflammation has three cardinal components:
  1. Vasodilation - increased blood flow (redness, warmth)
  2. Increased vascular permeability - plasma proteins leak into tissue (swelling)
  3. Leukocyte emigration - neutrophils exit vessels into tissue (pus)
These changes occur in postcapillary venules and are driven by inflammatory mediators.
Leukocyte recruitment sequence:
  1. Margination and rolling - selectins (E-selectin, P-selectin on endothelium; L-selectin on leukocytes) slow leukocytes
  2. Adhesion - integrins (LFA-1, Mac-1) bind ICAM-1 on endothelium; triggered by TNF and IL-1
  3. Transmigration (diapedesis) - leukocytes squeeze through vessel walls at intercellular junctions
  4. Chemotaxis - cells migrate toward chemical gradients: C5a, LTB4, bacterial products, IL-8

Key Inflammatory Mediators

MediatorSourceMain Action
HistamineMast cells, basophilsVasodilation, increased permeability
Prostaglandins (PGE2)Arachidonic acid cascade (COX)Vasodilation, fever, pain
Leukotrienes (LTB4, LTC4)Arachidonic acid cascade (LOX)Chemotaxis, bronchoconstriction
TNF, IL-1MacrophagesFever, acute-phase response, endothelial activation
IL-6MacrophagesAcute-phase proteins, fever
IL-17T lymphocytesNeutrophil recruitment
Chemokines (IL-8/CXCL8)Many cellsLeukocyte chemotaxis
NSAIDs inhibit COX enzymes, blocking prostaglandin synthesis - which explains their anti-inflammatory, analgesic, and antipyretic effects.

Morphologic Patterns of Acute Inflammation

  • Serous: Watery protein-poor effusion; example - skin blisters
  • Fibrinous: Fibrin-rich exudate due to major vascular leaks; example - fibrinous pericarditis (can organize into scar and obliterate pericardial space)
  • Purulent/Suppurative: Pus (neutrophils + necrotic debris); example - bacterial abscesses, acute appendicitis
  • Ulcerative: Epithelial surface erosion; example - peptic ulcer

Outcomes of Acute Inflammation

  1. Complete resolution - if injury brief, tissue unspecialized; macrophages clean up
  2. Scarring/Fibrosis - when tissue destruction is extensive or repair is unable to restore normal structure
  3. Abscess formation - in deep infections
  4. Progression to chronic inflammation

Chronic Inflammation

Chronic inflammation occurs when the injurious agent persists or when there is an abnormal immune response. It is characterized by:
  • Mononuclear infiltrate (macrophages, lymphocytes, plasma cells) - unlike neutrophil-dominated acute inflammation
  • Tissue destruction (ongoing)
  • Repair attempts (angiogenesis, fibrosis)
Key players:
  • Macrophages - the dominant cell; produce cytokines (TNF, IL-1, IL-12), enzymes, and reactive oxygen species; drive both injury and repair
  • Lymphocytes (T and B cells) - amplify macrophage activation; produce antibodies
  • Eosinophils - especially in parasitic infections and allergies
  • Mast cells - allergic and parasitic reactions

Granulomatous Inflammation

A special form of chronic inflammation characterized by granulomas - collections of activated macrophages (epithelioid cells) surrounded by lymphocytes, sometimes with giant cells.
Causes:
  • Tuberculosis (caseous granulomas - central necrosis is pathognomonic)
  • Sarcoidosis (non-caseating granulomas)
  • Crohn's disease
  • Fungal infections (histoplasmosis, cryptococcosis)
  • Foreign body reactions

VII. Tissue Repair

After injury, tissues repair themselves by two mechanisms:
1. Regeneration - replacement by the same cell type
  • Depends on the proliferative capacity of the tissue:
    • Labile cells (continuously dividing): bone marrow, gut epithelium, skin → excellent regeneration
    • Stable cells (quiescent but can re-enter cycle): liver, kidney, endocrine glands → regenerate if stimulus is sufficient
    • Permanent cells (non-dividing): neurons, cardiac myocytes → cannot regenerate; replaced by scar
2. Repair by Scarring (Fibrosis) When regeneration is insufficient or tissue architecture is destroyed, repair occurs by laying down collagen-rich scar tissue:
Steps:
  1. Angiogenesis - new blood vessel formation (VEGF-driven); forms granulation tissue
  2. Fibroblast activation - growth factors (TGF-β, PDGF) activate fibroblasts to proliferate and produce collagen
  3. Connective tissue remodeling - matrix metalloproteinases (MMPs) remodel the ECM; collagen matures and cross-links
  4. Wound contraction - myofibroblasts (expressing α-SMA) contract the wound margins

VIII. Intracellular Depositions and Calcification

Intracellular Accumulations

Cells can abnormally accumulate:
  • Lipids - steatosis (fatty liver); foam cells in atherosclerosis
  • Proteins - Russell bodies (immunoglobulin in plasma cells); Mallory bodies (keratin in alcoholic hepatitis)
  • Glycogen - glycogen storage diseases; diabetic hepatocytes
  • Pigments - lipofuscin ("wear-and-tear" pigment); melanin; hemosiderin (iron overload)

Pathologic Calcification

  • Dystrophic calcification: calcium deposits in dead or dying tissue despite normal serum calcium; seen in atherosclerotic plaques, heart valves, tuberculous foci, fat necrosis
  • Metastatic calcification: calcium deposits in normal tissue due to hypercalcemia; affects kidneys, lungs, gastric mucosa, blood vessels

IX. Cellular Aging

Aging reflects accumulated cellular damage over time. Key mechanisms:
  • Telomere shortening - with each cell division, telomeres shorten. When critically short, cells enter senescence or apoptosis (the "mitotic clock")
  • Accumulation of metabolic damage - ROS-induced oxidative damage to DNA, lipids, proteins
  • Epigenetic alterations - changes in DNA methylation and histone modification affect gene expression
  • Decreased DNA repair capacity
  • Inflammation ("inflammaging") - chronic low-grade inflammation driven by senescent cells that secrete pro-inflammatory cytokines

X. Putting It All Together - The Big Picture

Etiologic Stimulus
        ↓
Cell Stress → Adaptation (hypertrophy, hyperplasia, atrophy, metaplasia)
        ↓ (if overwhelming)
Cell Injury (reversible) → Irreversible Injury
        ↓
Cell Death (Necrosis / Apoptosis)
        ↓
Inflammation (Acute → Chronic)
        ↓
Tissue Repair (Regeneration / Fibrosis)
        ↓
Clinical Disease (structural & functional consequences)
Every disease, from a simple skin infection to cancer, follows this framework. The nature of the etiologic agent, the cell type affected, and the severity and duration of injury determine which branch of this pathway dominates.

Source: Robbins & Kumar Basic Pathology (9780323790185) and Robbins, Cotran & Kumar Pathologic Basis of Disease (9780443264528)

Make a comprehensive pathology reference PDF

Reading File
Reading File
Running Command

ls -la /tmp/workspace/ 2>/dev/null || mkdir -p /tmp/workspace && echo "workspace ready"

Running Command

mkdir -p /tmp/workspace/pathology-reference && echo "dir created"

Writing File

~/pathology-reference/build_pdf.py

#!/usr/bin/env python3
"""
Comprehensive Pathology Reference PDF
Built with ReportLab Platypus
"""

from reportlab.platypus import (
    SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle,
    HRFlowable, PageBreak, KeepTogether
)
from reportlab.platypus.tableofcontents import TableOfContents
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
from reportlab.lib import colors
from reportlab.lib.pagesizes import A4
from reportlab.lib.units import cm, mm
from reportlab.lib.enums import TA_CENTER, TA_LEFT, TA_JUSTIFY
from reportlab.platypus import BaseDocTemplate, Frame, PageTemplate
from reportlab.lib.colors import HexColor
import datetime

# ─── Colour palette ──────────────────────────────────────────────────────────
DARK_BLUE   = HexColor('#1A3557')
MID_BLUE    = HexColor('#2563A8')
ACCENT_RED  = HexColor('#C0392B')
ACCENT_TEAL = HexColor('#16847A')
LIGHT_GRAY  = HexColor('#F4F6F9')
MED_GRAY    = HexColor('#8B9CB0')
TABLE_HEAD  = HexColor('#1A3557')
TABLE_ALT   = HexColor('#EEF2F8')
WHITE       = colors.white
BLACK       = colors.black

OUTPUT = "/tmp/workspace/pathology-reference/Pathology_Reference.pdf"

# ─── Document with header/footer ─────────────────────────────────────────────
class PathologyDoc(BaseDocTemplate):
    def __init__(self, filename, **kwargs):
        super().__init__(filename, **kwargs)
        frame = Frame(
            self.leftMargin, self.bottomMargin,
            self.width, self.height,
            id='normal'
        )
        template = PageTemplate(id='main', frames=frame,
                                onPage=self._header_footer)
        self.addPageTemplates([template])

    def _header_footer(self, canvas, doc):
        canvas.saveState()
        w, h = A4

        # Header bar
        canvas.setFillColor(DARK_BLUE)
        canvas.rect(0, h - 1.1*cm, w, 1.1*cm, fill=1, stroke=0)
        canvas.setFont('Helvetica-Bold', 9)
        canvas.setFillColor(WHITE)
        canvas.drawString(1.5*cm, h - 0.75*cm, "COMPREHENSIVE PATHOLOGY REFERENCE")
        canvas.drawRightString(w - 1.5*cm, h - 0.75*cm,
                               f"Page {doc.page}")

        # Footer
        canvas.setFillColor(MED_GRAY)
        canvas.setFont('Helvetica', 7.5)
        canvas.drawString(1.5*cm, 0.7*cm,
                          "Based on Robbins & Kumar Basic Pathology | Robbins, Cotran & Kumar Pathologic Basis of Disease")
        canvas.drawRightString(w - 1.5*cm, 0.7*cm,
                               f"© {datetime.date.today().year}  |  For Educational Use")

        # Footer line
        canvas.setStrokeColor(MED_GRAY)
        canvas.setLineWidth(0.4)
        canvas.line(1.5*cm, 1.1*cm, w - 1.5*cm, 1.1*cm)

        canvas.restoreState()


# ─── Styles ───────────────────────────────────────────────────────────────────
def make_styles():
    base = getSampleStyleSheet()

    styles = {}

    styles['cover_title'] = ParagraphStyle(
        'cover_title',
        fontName='Helvetica-Bold', fontSize=34,
        textColor=WHITE, alignment=TA_CENTER, leading=42, spaceAfter=8
    )
    styles['cover_sub'] = ParagraphStyle(
        'cover_sub',
        fontName='Helvetica', fontSize=14,
        textColor=HexColor('#BDD0E8'), alignment=TA_CENTER, leading=20
    )
    styles['cover_date'] = ParagraphStyle(
        'cover_date',
        fontName='Helvetica', fontSize=11,
        textColor=HexColor('#7FA8CC'), alignment=TA_CENTER
    )

    styles['part_title'] = ParagraphStyle(
        'part_title',
        fontName='Helvetica-Bold', fontSize=22,
        textColor=WHITE, alignment=TA_CENTER, leading=28
    )

    styles['h1'] = ParagraphStyle(
        'h1',
        fontName='Helvetica-Bold', fontSize=15,
        textColor=WHITE, leading=20,
        spaceBefore=14, spaceAfter=6,
        backColor=DARK_BLUE,
        leftIndent=-0.5*cm, rightIndent=-0.5*cm,
        borderPad=(4, 8, 4, 8)
    )
    styles['h2'] = ParagraphStyle(
        'h2',
        fontName='Helvetica-Bold', fontSize=12,
        textColor=DARK_BLUE, leading=16,
        spaceBefore=12, spaceAfter=4,
        borderPad=(0, 0, 2, 0),
        borderColor=MID_BLUE, borderWidth=0
    )
    styles['h3'] = ParagraphStyle(
        'h3',
        fontName='Helvetica-Bold', fontSize=10.5,
        textColor=ACCENT_TEAL, leading=14,
        spaceBefore=8, spaceAfter=3
    )
    styles['body'] = ParagraphStyle(
        'body',
        fontName='Helvetica', fontSize=9.5,
        textColor=HexColor('#2C2C2C'), leading=14,
        spaceBefore=3, spaceAfter=3,
        alignment=TA_JUSTIFY
    )
    styles['bullet'] = ParagraphStyle(
        'bullet',
        fontName='Helvetica', fontSize=9.5,
        textColor=HexColor('#2C2C2C'), leading=13,
        spaceBefore=2, spaceAfter=2,
        leftIndent=14, bulletIndent=4
    )
    styles['sub_bullet'] = ParagraphStyle(
        'sub_bullet',
        fontName='Helvetica', fontSize=9,
        textColor=HexColor('#3A3A3A'), leading=12,
        spaceBefore=1, spaceAfter=1,
        leftIndent=28, bulletIndent=18
    )
    styles['key_point'] = ParagraphStyle(
        'key_point',
        fontName='Helvetica-Bold', fontSize=9.5,
        textColor=DARK_BLUE, leading=13,
        spaceBefore=2, spaceAfter=2,
        leftIndent=14, bulletIndent=4
    )
    styles['clinical_box'] = ParagraphStyle(
        'clinical_box',
        fontName='Helvetica-Oblique', fontSize=9,
        textColor=HexColor('#1A5276'), leading=13,
        spaceBefore=2, spaceAfter=2,
        leftIndent=8, rightIndent=8
    )
    styles['table_head'] = ParagraphStyle(
        'table_head',
        fontName='Helvetica-Bold', fontSize=8.5,
        textColor=WHITE, alignment=TA_CENTER, leading=11
    )
    styles['table_cell'] = ParagraphStyle(
        'table_cell',
        fontName='Helvetica', fontSize=8.5,
        textColor=BLACK, alignment=TA_LEFT, leading=11
    )
    styles['table_cell_bold'] = ParagraphStyle(
        'table_cell_bold',
        fontName='Helvetica-Bold', fontSize=8.5,
        textColor=DARK_BLUE, alignment=TA_LEFT, leading=11
    )
    styles['caption'] = ParagraphStyle(
        'caption',
        fontName='Helvetica-Oblique', fontSize=8,
        textColor=MED_GRAY, alignment=TA_CENTER, leading=11,
        spaceBefore=2, spaceAfter=6
    )
    return styles


# ─── Helpers ─────────────────────────────────────────────────────────────────
def H1(text, S): return Paragraph(f"  {text}", S['h1'])
def H2(text, S): return Paragraph(text, S['h2'])
def H3(text, S): return Paragraph(text, S['h3'])
def P(text, S):  return Paragraph(text, S['body'])
def B(text, S):  return Paragraph(f"•  {text}", S['bullet'])
def SB(text, S): return Paragraph(f"–  {text}", S['sub_bullet'])
def KP(text, S): return Paragraph(f"▶  {text}", S['key_point'])
def SP(n=6):     return Spacer(1, n)
def HR():        return HRFlowable(width="100%", thickness=0.5,
                                   color=MED_GRAY, spaceAfter=6, spaceBefore=4)

def section_divider(S):
    return [HR(), SP(2)]

def clinical_note(text, S):
    data = [[Paragraph(f"<b>Clinical Pearl:</b> {text}", S['clinical_box'])]]
    t = Table(data, colWidths=[16*cm])
    t.setStyle(TableStyle([
        ('BACKGROUND', (0,0), (-1,-1), HexColor('#EBF5FB')),
        ('BOX', (0,0), (-1,-1), 1, MID_BLUE),
        ('LEFTPADDING', (0,0), (-1,-1), 8),
        ('RIGHTPADDING', (0,0), (-1,-1), 8),
        ('TOPPADDING', (0,0), (-1,-1), 6),
        ('BOTTOMPADDING', (0,0), (-1,-1), 6),
        ('ROUNDEDCORNERS', [4, 4, 4, 4]),
    ]))
    return t

def warning_note(text, S):
    data = [[Paragraph(f"<b>Key Concept:</b> {text}", S['clinical_box'])]]
    t = Table(data, colWidths=[16*cm])
    t.setStyle(TableStyle([
        ('BACKGROUND', (0,0), (-1,-1), HexColor('#FEF9E7')),
        ('BOX', (0,0), (-1,-1), 1, HexColor('#F39C12')),
        ('LEFTPADDING', (0,0), (-1,-1), 8),
        ('RIGHTPADDING', (0,0), (-1,-1), 8),
        ('TOPPADDING', (0,0), (-1,-1), 6),
        ('BOTTOMPADDING', (0,0), (-1,-1), 6),
    ]))
    return t

def make_table(headers, rows, S, col_widths=None):
    head_row = [Paragraph(h, S['table_head']) for h in headers]
    data = [head_row]
    for i, row in enumerate(rows):
        cells = []
        for j, cell in enumerate(row):
            style = S['table_cell_bold'] if j == 0 else S['table_cell']
            cells.append(Paragraph(str(cell), style))
        data.append(cells)

    if col_widths is None:
        col_widths = [16*cm / len(headers)] * len(headers)

    t = Table(data, colWidths=col_widths, repeatRows=1)
    style_cmds = [
        ('BACKGROUND', (0,0), (-1,0), TABLE_HEAD),
        ('TEXTCOLOR', (0,0), (-1,0), WHITE),
        ('FONTNAME', (0,0), (-1,0), 'Helvetica-Bold'),
        ('FONTSIZE', (0,0), (-1,-1), 8.5),
        ('ROWBACKGROUNDS', (0,1), (-1,-1), [WHITE, TABLE_ALT]),
        ('GRID', (0,0), (-1,-1), 0.4, HexColor('#BFC9D4')),
        ('ALIGN', (0,0), (-1,-1), 'LEFT'),
        ('VALIGN', (0,0), (-1,-1), 'TOP'),
        ('LEFTPADDING', (0,0), (-1,-1), 5),
        ('RIGHTPADDING', (0,0), (-1,-1), 5),
        ('TOPPADDING', (0,0), (-1,-1), 4),
        ('BOTTOMPADDING', (0,0), (-1,-1), 4),
    ]
    t.setStyle(TableStyle(style_cmds))
    return t


# ─── Cover page ──────────────────────────────────────────────────────────────
def cover_page(S):
    elements = []
    w, h = A4

    # Big colour block (simulated with a wide table)
    cover_data = [['']]
    cover_table = Table(cover_data, colWidths=[19*cm], rowHeights=[7*cm])
    cover_table.setStyle(TableStyle([
        ('BACKGROUND', (0,0), (-1,-1), DARK_BLUE),
    ]))

    # Title block
    title_data = [[
        Paragraph("COMPREHENSIVE<br/>PATHOLOGY<br/>REFERENCE", S['cover_title'])
    ]]
    title_table = Table(title_data, colWidths=[19*cm], rowHeights=[8*cm])
    title_table.setStyle(TableStyle([
        ('BACKGROUND', (0,0), (-1,-1), DARK_BLUE),
        ('VALIGN', (0,0), (-1,-1), 'MIDDLE'),
        ('ALIGN', (0,0), (-1,-1), 'CENTER'),
    ]))

    sub_data = [[
        Paragraph(
            "Cell Injury · Inflammation · Repair · Adaptations<br/>"
            "Neoplasia · Hemodynamics · Immunopathology",
            S['cover_sub']
        )
    ]]
    sub_table = Table(sub_data, colWidths=[19*cm], rowHeights=[3*cm])
    sub_table.setStyle(TableStyle([
        ('BACKGROUND', (0,0), (-1,-1), MID_BLUE),
        ('VALIGN', (0,0), (-1,-1), 'MIDDLE'),
        ('ALIGN', (0,0), (-1,-1), 'CENTER'),
    ]))

    date_data = [[
        Paragraph(
            f"Based on Robbins &amp; Kumar Basic Pathology and Robbins, Cotran &amp; Kumar<br/>"
            f"Pathologic Basis of Disease &nbsp;·&nbsp; {datetime.date.today().strftime('%B %Y')}",
            S['cover_date']
        )
    ]]
    date_table = Table(date_data, colWidths=[19*cm], rowHeights=[2.5*cm])
    date_table.setStyle(TableStyle([
        ('BACKGROUND', (0,0), (-1,-1), HexColor('#0F2437')),
        ('VALIGN', (0,0), (-1,-1), 'MIDDLE'),
        ('ALIGN', (0,0), (-1,-1), 'CENTER'),
    ]))

    elements += [cover_table, title_table, sub_table, date_table]
    elements.append(PageBreak())
    return elements


# ─── Section 1: Introduction ─────────────────────────────────────────────────
def section_intro(S):
    el = []
    el += [H1("PART I: FOUNDATIONS OF PATHOLOGY", S), SP(10)]

    el += [H1("1. Introduction to Pathology", S), SP(6)]

    el += [P(
        "Pathology is the scientific study of the structural, biochemical, and functional changes "
        "in cells, tissues, and organs that underlie disease. It forms the bridge between basic science "
        "and clinical medicine. The pathologist identifies changes in the gross or microscopic appearance "
        "of cells and tissues, as well as biochemical alterations in body fluids, to aid diagnosis, "
        "predict outcomes, and guide therapy.", S
    ), SP(4)]

    el += [H2("1.1 Core Concepts", S)]
    rows = [
        ["Etiology", "The origin and cause of disease; includes genetic susceptibility and environmental triggers"],
        ["Pathogenesis", "The sequence of cellular/molecular events from the initial etiologic trigger to the final expression of disease"],
        ["Morphology", "Structural changes in cells and tissues — gross and microscopic"],
        ["Clinical Manifestation", "The signs and symptoms that result from structural and functional changes"],
        ["Precision Medicine", "Individualized therapy based on molecular characterization of each patient's disease"],
    ]
    el += [make_table(["Concept", "Definition"], rows, S, [4*cm, 12*cm]), SP(6)]

    el += [warning_note(
        "Etiology answers WHY a disease arises. Pathogenesis describes HOW it develops. "
        "Both are essential for rational treatment design.", S
    ), SP(8)]

    el += [H2("1.2 Causes of Disease", S)]
    causes = [
        ("Hypoxia & Ischemia", "Most common; oxygen and nutrient deprivation"),
        ("Toxins", "Chemical agents, drugs, environmental pollutants"),
        ("Infectious Agents", "Bacteria, viruses, fungi, parasites, prions"),
        ("Immunologic Reactions", "Autoimmunity, hypersensitivity, allograft rejection"),
        ("Genetic Abnormalities", "Mutations, chromosomal disorders, copy number variants"),
        ("Nutritional Imbalances", "Deficiencies (protein, vitamins) and excesses (obesity)"),
        ("Physical Agents", "Trauma, extreme temperature, radiation, electrical injury"),
        ("Aging", "Accumulated cellular damage, telomere shortening, epigenetic drift"),
    ]
    for c, d in causes:
        el += [B(f"<b>{c}</b> — {d}", S)]
    el += [SP(4)]
    return el


# ─── Section 2: Cell Injury & Death ──────────────────────────────────────────
def section_cell_injury(S):
    el = []
    el += [H1("2. Cell Injury, Adaptation & Death", S), SP(6)]

    el += [P(
        "Cells actively maintain homeostasis. When stress exceeds adaptive capacity, a spectrum "
        "of responses occurs: <b>Adaptation → Reversible Injury → Irreversible Injury → Cell Death</b>. "
        "The cellular response depends on the type, duration, and severity of the injury, "
        "as well as the cell type, metabolic state, and genetic makeup.", S
    ), SP(6)]

    # ── Adaptations ──
    el += [H2("2.1 Cellular Adaptations to Stress", S)]

    el += [H3("Hypertrophy", S)]
    el += [P("Increase in cell <b>size</b>; no new cells. Occurs in cells with limited capacity to divide.", S)]
    el += [B("<b>Physiologic:</b> Cardiac and skeletal muscle hypertrophy with exercise; uterus in pregnancy", S)]
    el += [B("<b>Pathologic:</b> Left ventricular hypertrophy (LVH) in hypertension — α-myosin heavy chain "
             "replaced by β form (slower, more energy-efficient contractions)", S)]
    el += [clinical_note(
        "Sustained hypertrophy can progress to ventricular dilation and heart failure when "
        "blood supply, mitochondria, or biosynthetic machinery can no longer keep pace with "
        "the enlarged fiber demands.", S
    ), SP(4)]

    el += [H3("Hyperplasia", S)]
    el += [P("Increase in cell <b>number</b> due to proliferation; driven by hormones or growth factors.", S)]
    el += [B("<b>Physiologic:</b> Breast glandular tissue in puberty; compensatory liver hyperplasia", S)]
    el += [B("<b>Pathologic:</b> Endometrial hyperplasia (estrogenic excess); benign prostatic hyperplasia (BPH)", S)]
    el += [SP(4)]

    el += [H3("Atrophy", S)]
    el += [P("Reduction in cell <b>size and number</b>; an adaptive retreat to ensure survival.", S)]
    el += [B("Causes: decreased workload, loss of innervation, reduced blood supply, inadequate nutrition, "
             "loss of endocrine stimulation, aging (senile atrophy)", S)]
    el += [B("Mechanism: ↓ protein synthesis + ↑ ubiquitin–proteasome degradation + increased autophagy", S)]
    el += [B("Progression: severe atrophy → threshold → apoptosis", S)]
    el += [SP(4)]

    el += [H3("Metaplasia", S)]
    el += [P("Replacement of one adult cell type by another better suited to withstand the adverse environment. "
             "Arises from reprogramming of stem cells (not transdifferentiation of mature cells).", S)]
    el += [B("<b>Respiratory metaplasia:</b> Ciliated columnar → stratified squamous in smokers. "
             "Protective but sacrifices mucus/ciliary clearance.", S)]
    el += [B("<b>Barrett's oesophagus:</b> Squamous → intestinal columnar epithelium (acid reflux). "
             "Pre-malignant — risk of adenocarcinoma.", S)]
    el += [SP(6)]

    # ── Cell Death Comparison ──
    el += [H2("2.2 Forms of Cell Death", S)]

    rows = [
        ["Cell size", "Enlarged (swelling)", "Reduced (shrinkage)"],
        ["Nucleus", "Pyknosis → karyorrhexis → karyolysis", "Fragmented into nucleosome-sized fragments"],
        ["Plasma membrane", "Disrupted — contents leak", "Intact; altered lipid orientation"],
        ["Cellular contents", "Released into extracellular space", "Packaged into apoptotic bodies"],
        ["Tissue reaction", "Inflammatory — always", "No inflammation — anti-inflammatory"],
        ["ATP required", "No", "Yes"],
        ["Regulation", "Unregulated (accidental)", "Highly regulated (programmed)"],
        ["Caspase activation", "No", "Yes (central executioners)"],
    ]
    el += [make_table(["Feature", "Necrosis", "Apoptosis"], rows, S, [4.5*cm, 5.75*cm, 5.75*cm]), SP(6)]

    # ── Necrosis patterns ──
    el += [H2("2.3 Morphologic Patterns of Necrosis", S)]

    rows = [
        ["Coagulative", "Architecture preserved for days; firm, eosinophilic, anucleate cells",
         "Infarcts in all solid organs (except brain)"],
        ["Liquefactive", "Complete digestion; viscous liquid. Yellow pus if bacterial.",
         "Brain infarcts; bacterial abscesses"],
        ["Caseous", "Friable cheese-like yellow-white debris; amorphous granular pink on H&E; "
                    "architecture obliterated",
         "Tuberculosis (pathognomonic)"],
        ["Fat", "Focal fat destruction; chalky-white calcium-fatty acid deposits; "
                "saponification on gross exam",
         "Acute pancreatitis; abdominal trauma"],
        ["Fibrinoid", "Bright pink amorphous deposits in vessel walls (microscopy only)",
         "Immune vasculitis; malignant hypertension"],
        ["Gangrenous", "Coagulative + liquefactive necrosis (wet gangrene with superinfection)",
         "Limb ischaemia"],
    ]
    el += [make_table(["Type", "Characteristics", "Typical Setting"], rows, S,
                      [3.5*cm, 7.5*cm, 5*cm]), SP(6)]

    # ── Mechanisms of Injury ──
    el += [H2("2.4 Mechanisms of Cell Injury", S)]

    el += [H3("1. Mitochondrial Dysfunction & ATP Depletion", S)]
    el += [B("↓ ATP → failure of Na/K ATPase → Na and water influx → cell swelling", S)]
    el += [B("Compensatory anaerobic glycolysis → ↑ lactic acid → ↓ pH → enzyme inhibition", S)]
    el += [B("Ribosome detachment from RER → ↓ protein synthesis", S)]
    el += [B("Release of cytochrome c → activates apoptotic caspase cascade", S)]
    el += [warning_note(
        "Skeletal muscle tolerates ischaemia for 2–3 hours; cardiac muscle dies after only "
        "20–30 minutes — a direct reflection of their differing metabolic demands.", S
    ), SP(4)]

    el += [H3("2. Oxidative Stress (Reactive Oxygen Species)", S)]
    el += [B("Sources: mitochondrial leak, radiation, reperfusion injury, neutrophil oxidative burst", S)]
    el += [B("Damage: lipid peroxidation of membranes; protein oxidation; DNA strand breaks", S)]
    el += [B("Defence: SOD, catalase, glutathione peroxidase, vitamins C and E", S)]
    el += [SP(3)]

    el += [H3("3. Calcium Dysregulation", S)]
    el += [P("Ischaemia and toxins increase intracellular Ca²⁺, activating:", S)]
    rows = [
        ["Phospholipases", "Membrane damage"],
        ["Proteases", "Cytoskeletal destruction (spectrin, fodrin)"],
        ["Endonucleases", "DNA and chromatin damage"],
        ["ATPases", "Further ATP depletion"],
        ["Nitric oxide synthase", "↑ NO → reactive nitrogen species"],
    ]
    el += [make_table(["Enzyme Activated", "Consequence"], rows, S, [6*cm, 10*cm]), SP(4)]

    el += [H3("4. Membrane Damage", S)]
    el += [B("Direct plasma membrane injury → loss of osmotic balance → cell lysis", S)]
    el += [B("Lysosomal membrane rupture → release of digestive enzymes into cytoplasm (key amplifier)", S)]
    el += [B("Mitochondrial permeability transition pore (mPTP) opening → catastrophic ATP loss", S)]
    el += [SP(3)]

    el += [H3("5. DNA Damage", S)]
    el += [B("Mild DNA damage → p53 activation → cell cycle arrest → DNA repair", S)]
    el += [B("Severe DNA damage → p53 induces pro-apoptotic BH3-only proteins → apoptosis", S)]
    el += [SP(6)]

    # ── Apoptosis mechanisms ──
    el += [H2("2.5 Mechanisms of Apoptosis", S)]

    rows = [
        ["Intrinsic (Mitochondrial)", "DNA damage, growth factor withdrawal, ER stress",
         "Pro-apoptotic BCL-2 family (BAX, BAK) open mitochondrial membrane → cytochrome c release "
         "→ apoptosome → caspase-9 → effector caspases (3, 6, 7)"],
        ["Extrinsic (Death Receptor)", "FasL–Fas (CD95) binding; TNF–TNFR1 binding",
         "Death-inducing signalling complex (DISC) → caspase-8 activation → effector caspases"],
        ["Perforin/Granzyme", "Cytotoxic T lymphocyte (CTL) killing",
         "Granzyme B enters target cell via perforin pores → directly activates caspases"],
    ]
    el += [make_table(["Pathway", "Triggers", "Mechanism"], rows, S, [3.5*cm, 4.5*cm, 8*cm]), SP(4)]

    el += [clinical_note(
        "BCL-2 is the archetypal anti-apoptotic protein. Its overexpression (t(14;18) in follicular "
        "lymphoma) blocks apoptosis, promoting tumour cell survival — a direct link between "
        "apoptosis dysregulation and cancer.", S
    ), SP(6)]

    # ── Autophagy ──
    el += [H2("2.6 Autophagy", S)]
    el += [P(
        "A survival mechanism in which a nutrient-starved cell sequesters its own organelles in "
        "double-membrane vesicles (autophagosomes) that fuse with lysosomes for digestion. "
        "The degradation products are recycled for energy and biosynthesis. Excessive or "
        "dysregulated autophagy can trigger apoptosis.", S
    ), SP(4)]

    el += [H2("2.7 Ischaemia–Reperfusion Injury", S)]
    el += [P(
        "Paradoxically, restoration of blood flow after ischaemia can worsen cell injury. "
        "Mechanisms include:", S
    )]
    el += [B("Burst of reactive oxygen species upon re-oxygenation", S)]
    el += [B("Massive Ca²⁺ influx into cells that survived ischaemia", S)]
    el += [B("Opening of mitochondrial permeability transition pore (mPTP)", S)]
    el += [B("Neutrophil activation and inflammatory mediator release", S)]
    el += [clinical_note(
        "Ischaemia–reperfusion injury is clinically relevant in myocardial infarction after "
        "thrombolysis/PCI, stroke, organ transplantation, and tourniquet release. "
        "Cardioprotective strategies target mPTP opening and ROS generation.", S
    ), SP(8)]

    return el


# ─── Section 3: Inflammation ─────────────────────────────────────────────────
def section_inflammation(S):
    el = []
    el += [H1("PART II: INFLAMMATION & REPAIR", S), SP(10)]
    el += [H1("3. Inflammation", S), SP(6)]

    el += [P(
        "Inflammation is the body's protective response to infection and tissue damage, designed to "
        "eliminate the injurious stimulus and initiate repair. It is a double-edged sword: while "
        "essential for survival, it also mediates tissue injury in many common diseases "
        "(atherosclerosis, rheumatoid arthritis, asthma, inflammatory bowel disease).", S
    ), SP(4)]

    el += [H2("3.1 Cardinal Signs of Inflammation", S)]
    rows = [
        ["Rubor (Redness)", "Vasodilation → increased blood flow"],
        ["Calor (Heat)", "Vasodilation + increased metabolic activity"],
        ["Tumor (Swelling)", "Increased vascular permeability → exudate in tissue"],
        ["Dolor (Pain)", "Prostaglandins + bradykinin sensitise nociceptors"],
        ["Functio Laesa (Loss of function)", "Combination of pain, swelling, and tissue damage"],
    ]
    el += [make_table(["Cardinal Sign", "Mechanism"], rows, S, [5*cm, 11*cm]), SP(6)]

    el += [H2("3.2 Causes of Inflammation", S)]
    el += [B("<b>Infections:</b> bacteria, viruses, fungi, parasites", S)]
    el += [B("<b>Tissue necrosis:</b> ischaemia, trauma, burns — DAMPs trigger 'sterile' inflammation", S)]
    el += [B("<b>Foreign bodies:</b> sutures, implants, urate crystals (gout), cholesterol crystals", S)]
    el += [B("<b>Immune reactions:</b> autoimmunity (Type II–IV hypersensitivity), allergy (Type I)", S)]
    el += [SP(6)]

    el += [H2("3.3 Recognition — Sentinel Cells & Pattern Recognition", S)]
    el += [P(
        "Tissue-resident macrophages and dendritic cells express pattern-recognition receptors (PRRs) "
        "that detect conserved molecular patterns:", S
    )]
    rows = [
        ["PAMPs", "Pathogen-Associated Molecular Patterns", "Microbial products: LPS, flagellin, peptidoglycan, viral dsRNA"],
        ["DAMPs", "Damage-Associated Molecular Patterns", "Signals from injured cells: HMGB1, ATP, uric acid, heat shock proteins, leaked DNA"],
        ["TLRs", "Toll-like Receptors", "Surface and endosomal PRRs; activation → NF-κB → pro-inflammatory cytokines"],
        ["NLRs / Inflammasome", "NOD-like Receptors", "Cytosolic sensors; assembly of inflammasome complex → active IL-1β and IL-18"],
    ]
    el += [make_table(["Acronym", "Name", "Function"], rows, S, [2.5*cm, 5*cm, 8.5*cm]), SP(6)]

    el += [H2("3.4 Acute Inflammation", S)]
    el += [P("Three cardinal vascular and cellular components:", S)]
    el += [KP("1. Vasodilation — histamine, NO, prostaglandins → ↑ blood flow", S)]
    el += [KP("2. Increased vascular permeability — plasma proteins leak into tissue → exudate", S)]
    el += [KP("3. Leukocyte emigration — neutrophils exit vessels into tissue", S)]
    el += [SP(6)]

    el += [H3("Leukocyte Recruitment Sequence", S)]
    rows = [
        ["1. Margination", "Leukocytes leave central axial flow toward vessel wall"],
        ["2. Rolling", "Selectins (E-selectin, P-selectin on endothelium; L-selectin on leukocytes) — loose adhesion"],
        ["3. Adhesion", "Integrins (LFA-1, Mac-1) bind ICAM-1 on endothelium; triggered by TNF and IL-1 — firm adhesion"],
        ["4. Transmigration (Diapedesis)", "Leukocytes squeeze through intercellular junctions; PECAM-1 (CD31) facilitates crossing"],
        ["5. Chemotaxis", "Migration toward chemical gradient: C5a, LTB4, bacterial products, IL-8 (CXCL8)"],
        ["6. Phagocytosis", "Engulfment of opsonised targets (IgG, C3b) + intracellular killing"],
    ]
    el += [make_table(["Step", "Mechanism"], rows, S, [4*cm, 12*cm]), SP(6)]

    el += [H2("3.5 Key Inflammatory Mediators", S)]
    rows = [
        ["Histamine", "Mast cells, basophils, platelets", "Rapid vasodilation, ↑ permeability; first mediator released"],
        ["Serotonin (5-HT)", "Platelets", "Similar to histamine in vessels"],
        ["PGE2, PGI2", "Arachidonic acid (COX pathway)", "Vasodilation, fever, pain sensitisation"],
        ["LTB4", "Arachidonic acid (LOX pathway)", "Potent neutrophil chemotaxis"],
        ["LTC4, LTD4, LTE4", "LOX pathway; mast cells", "Bronchoconstriction, mucus secretion (asthma)"],
        ["PAF", "Leukocytes, endothelium, platelets", "Platelet aggregation, bronchoconstriction, ↑ permeability"],
        ["TNF-α, IL-1", "Macrophages, mast cells", "Fever, acute-phase response, endothelial activation, septic shock"],
        ["IL-6", "Macrophages, T cells", "Acute-phase protein synthesis, fever"],
        ["IL-8 (CXCL8)", "Macrophages, endothelium", "Potent neutrophil chemokine"],
        ["IL-17", "T lymphocytes (Th17)", "Neutrophil recruitment; drives chronic inflammatory diseases"],
        ["IL-12", "Macrophages, DCs", "Activates NK cells; promotes Th1 differentiation"],
        ["Complement C3a, C5a", "Complement cascade", "Mast cell degranulation, chemotaxis, opsonisation"],
        ["Nitric oxide (NO)", "Macrophages (iNOS)", "Vasodilation, microbicidal activity"],
        ["Reactive O₂ species", "Neutrophils (NADPH oxidase)", "Microbicidal; also causes bystander tissue damage"],
    ]
    el += [make_table(
        ["Mediator", "Source", "Key Action"], rows, S,
        [4*cm, 4.5*cm, 7.5*cm]
    ), SP(4)]

    el += [clinical_note(
        "NSAIDs inhibit COX enzymes, blocking prostaglandin synthesis. Corticosteroids "
        "block phospholipase A2 (reducing arachidonic acid release) AND suppress cytokine "
        "production — explaining their broader anti-inflammatory potency.", S
    ), SP(6)]

    el += [H2("3.6 Morphologic Patterns of Acute Inflammation", S)]
    rows = [
        ["Serous", "Watery, protein-poor transudate/exudate", "Skin blisters (burns, herpes); pleural effusion (early)"],
        ["Fibrinous", "Fibrin-rich exudate; major vascular leak", "Fibrinous pericarditis ('bread-and-butter' appearance); fibrinous pleuritis"],
        ["Purulent (Suppurative)", "Pus = neutrophils + necrotic debris + organisms", "Bacterial abscesses; acute appendicitis; empyema"],
        ["Ulcerative", "Epithelial erosion exposing deeper layers", "Peptic ulcer; aphthous ulcers; chronic venous ulcers"],
        ["Pseudomembranous", "Inflammatory debris on mucosal surface", "C. difficile colitis; diphtheria"],
        ["Haemorrhagic", "Severe vascular damage + RBC leak", "Anthrax, plague, haemorrhagic viral fevers"],
    ]
    el += [make_table(["Pattern", "Description", "Examples"], rows, S, [3.5*cm, 5.5*cm, 7*cm]), SP(6)]

    el += [H2("3.7 Outcomes of Acute Inflammation", S)]
    el += [B("<b>Complete resolution</b> — if brief injury, minimal destruction; macrophages phagocytose debris", S)]
    el += [B("<b>Abscess formation</b> — pyogenic infection isolated by fibrous wall", S)]
    el += [B("<b>Progression to chronic inflammation</b> — if injurious agent persists", S)]
    el += [B("<b>Repair by scarring</b> — if extensive tissue destruction; collagen replacement", S)]
    el += [SP(6)]

    el += [H2("3.8 Chronic Inflammation", S)]
    el += [P(
        "Chronic inflammation occurs when the injurious agent persists or there is an abnormal "
        "immune response. Unlike acute inflammation (neutrophil-dominated), chronic inflammation "
        "is characterised by a <b>mononuclear infiltrate</b>, ongoing tissue destruction, and "
        "simultaneous repair attempts.", S
    ), SP(4)]

    el += [H3("Key Cellular Players", S)]
    rows = [
        ["Macrophages", "Dominant cell. Produce TNF, IL-1, IL-12, ROS, proteases, VEGF. "
                        "Drive both injury and repair (two phenotypes: M1 inflammatory vs M2 repair)"],
        ["T Lymphocytes (CD4+)", "Th1 cells activate macrophages via IFN-γ. "
                                  "Th2 cells promote eosinophil activation and antibody responses. "
                                  "Th17 cells recruit neutrophils via IL-17"],
        ["B Lymphocytes / Plasma Cells", "Produce antibodies; prominent in autoimmune diseases "
                                          "and infections (e.g., H. pylori gastritis)"],
        ["Eosinophils", "Prominent in parasitic infections and IgE-mediated allergic reactions; "
                        "toxic granule contents (major basic protein, eosinophil cationic protein)"],
        ["Mast Cells", "Tissue-resident; degranulate in allergic reactions; regulate "
                       "vasodilation and vascular permeability"],
    ]
    el += [make_table(["Cell", "Role"], rows, S, [4*cm, 12*cm]), SP(6)]

    el += [H2("3.9 Granulomatous Inflammation", S)]
    el += [P(
        "A special pattern of chronic inflammation characterised by collections of activated "
        "macrophages (epithelioid cells) often fused into multinucleated giant cells, surrounded "
        "by a rim of lymphocytes. Represents an attempt to wall off indigestible material.", S
    ), SP(4)]

    rows = [
        ["Tuberculosis", "Caseating (with central necrosis) — cheese-like friable yellow-white centre", "Mycobacterium tuberculosis"],
        ["Sarcoidosis", "Non-caseating; asteroid bodies in giant cells", "Unknown antigen; T-cell mediated"],
        ["Crohn's Disease", "Non-caseating; transmural", "Dysregulated immune response to gut flora"],
        ["Leprosy", "Lepromatous (many bacilli, no T-cell response) vs tuberculoid (few bacilli, granulomas)", "Mycobacterium leprae"],
        ["Fungal Infections", "Variable necrosis", "Histoplasma, Cryptococcus, Coccidioides"],
        ["Foreign Body", "Foreign body giant cells around material", "Sutures, silica, beryllium, urate crystals"],
        ["Cat-Scratch Disease", "Stellate necrosis in granuloma centre", "Bartonella henselae"],
    ]
    el += [make_table(["Condition", "Features", "Cause/Agent"], rows, S, [3.5*cm, 7.5*cm, 5*cm]), SP(6)]

    el += [H2("3.10 Systemic Effects of Inflammation — Acute Phase Response", S)]
    el += [B("<b>Fever:</b> IL-1, TNF, IL-6 → hypothalamic COX-2 → ↑ PGE2 → reset thermostat", S)]
    el += [B("<b>Acute-phase proteins:</b> CRP, SAA, fibrinogen, complement ↑; albumin ↓ (negative)", S)]
    el += [B("<b>Leucocytosis:</b> IL-1, TNF → bone marrow release. Neutrophilia (bacteria), lymphocytosis (viruses), "
             "eosinophilia (parasites/allergy)", S)]
    el += [B("<b>Septic shock:</b> Massive TNF/IL-1 release → systemic vasodilation, DIC, multi-organ failure", S)]
    el += [SP(8)]

    return el


# ─── Section 4: Tissue Repair ─────────────────────────────────────────────────
def section_repair(S):
    el = []
    el += [H1("4. Tissue Repair, Regeneration & Fibrosis", S), SP(6)]

    el += [P(
        "After injury, tissues repair by two main processes: "
        "<b>regeneration</b> (replacement with the same cell type) or "
        "<b>scarring/fibrosis</b> (collagen deposition when regeneration is insufficient). "
        "Most injuries involve both in varying proportions.", S
    ), SP(4)]

    el += [H2("4.1 Proliferative Capacity of Cells", S)]
    rows = [
        ["Labile (Continuously Dividing)", "Continuously replace dead cells; driven by stem cells",
         "Haematopoietic cells, gut epithelium, skin, corneal epithelium",
         "Excellent — regenerate fully"],
        ["Stable (Quiescent)", "Low normal replication; re-enter cycle when stimulated",
         "Hepatocytes, renal tubular cells, smooth muscle, endothelium, fibroblasts",
         "Good if scaffold intact"],
        ["Permanent (Non-Dividing)", "Terminally differentiated; cannot re-enter cell cycle",
         "Neurons, cardiac myocytes, skeletal muscle cells",
         "No regeneration — replaced by scar"],
    ]
    el += [make_table(
        ["Category", "Definition", "Examples", "Repair Potential"],
        rows, S, [3.5*cm, 4*cm, 5.5*cm, 3*cm]
    ), SP(6)]

    el += [H2("4.2 Steps in Scar Formation", S)]
    steps = [
        ("Angiogenesis", "VEGF (from macrophages and hypoxic cells) drives endothelial sprouting. "
                          "Forms granulation tissue — hallmark: pale pink, oedematous, with loops of new capillaries."),
        ("Fibroblast Migration & Activation", "PDGF (from platelets/macrophages) and TGF-β recruit and activate fibroblasts. "
                                               "Myofibroblasts (α-SMA positive) contract the wound edges."),
        ("Collagen Synthesis", "TGF-β is the master driver of collagen synthesis. Type III collagen "
                                "(early) is replaced by type I collagen (mature scar). "
                                "Requires Vitamin C for hydroxylation of proline/lysine."),
        ("ECM Remodelling", "Matrix metalloproteinases (MMPs — collagenase, gelatinase) degrade provisional ECM. "
                             "TIMP (tissue inhibitors of metalloproteinases) balance MMP activity."),
        ("Wound Contraction", "Myofibroblasts draw wound edges together; can cause contractures in "
                               "large wounds (e.g., burn scarring)."),
    ]
    for title, desc in steps:
        el += [H3(f"Step: {title}", S), P(desc, S)]

    el += [warning_note(
        "Wound healing requires: adequate nutrition (esp. Vitamin C and zinc), "
        "adequate blood supply, absence of infection, and absence of persistent mechanical stress. "
        "Diabetes, corticosteroids, and malnutrition are key inhibitors.", S
    ), SP(6)]

    el += [H2("4.3 Types of Wound Healing", S)]
    rows = [
        ["Primary Intention", "Clean incised wound with apposed edges",
         "Minimal granulation tissue; thin scar; e.g., surgical incision"],
        ["Secondary Intention", "Large wound with gaping edges; tissue loss",
         "Extensive granulation tissue; wound contraction; larger scar; e.g., large ulcer"],
        ["Tertiary Intention", "Delayed primary closure; wound left open initially",
         "Used in contaminated wounds; closed after infection cleared"],
    ]
    el += [make_table(["Type", "Context", "Features"], rows, S, [4*cm, 5*cm, 7*cm]), SP(6)]

    el += [H2("4.4 Pathologic Forms of Repair", S)]
    el += [H3("Keloid", S)]
    el += [B("Excessive collagen deposition extending beyond original wound borders", S)]
    el += [B("More common in dark-skinned individuals; tendency to recur after excision", S)]

    el += [H3("Hypertrophic Scar", S)]
    el += [B("Excessive collagen within wound boundaries; may regress with time", S)]

    el += [H3("Fibrosis / Cirrhosis", S)]
    el += [B("Excessive scarring in parenchymal organs (liver, lung, kidney)", S)]
    el += [B("Destroys organ architecture and function; driven by persistent inflammation and TGF-β", S)]
    el += [B("Examples: hepatic cirrhosis (alcohol/NASH), pulmonary fibrosis, glomerulosclerosis", S)]
    el += [SP(8)]

    return el


# ─── Section 5: Neoplasia ─────────────────────────────────────────────────────
def section_neoplasia(S):
    el = []
    el += [H1("PART III: NEOPLASIA", S), SP(10)]
    el += [H1("5. Neoplasia — Tumours & Cancer", S), SP(6)]

    el += [P(
        "A neoplasm (Greek: neos = new + plasma = growth) is an abnormal mass of tissue whose growth "
        "is excessive and uncoordinated with normal tissue, persists even after the stimulus is removed. "
        "Neoplasms may be benign or malignant.", S
    ), SP(4)]

    el += [H2("5.1 Benign vs Malignant Tumours", S)]
    rows = [
        ["Differentiation", "Well differentiated; resembles tissue of origin", "Variable; may be poorly or undifferentiated"],
        ["Rate of growth", "Slow; mitoses rare and normal", "Rapid; mitoses frequent, often abnormal"],
        ["Local invasion", "Non-invasive; expansile, encapsulated", "Invasive; infiltrates surrounding tissue"],
        ["Metastasis", "Absent — cardinal feature distinguishing benign", "Present — defines malignancy absolutely"],
        ["Effect on host", "Local pressure; rarely fatal", "Destruction, cachexia, paraneoplastic syndromes; often fatal"],
        ["Nomenclature (epithelial)", "Adenoma, papilloma, cystadenoma", "Carcinoma, adenocarcinoma"],
        ["Nomenclature (mesenchymal)", "Lipoma, fibroma, leiomyoma", "Liposarcoma, fibrosarcoma, leiomyosarcoma"],
    ]
    el += [make_table(["Feature", "Benign", "Malignant"], rows, S, [4*cm, 6*cm, 6*cm]), SP(6)]

    el += [H2("5.2 Tumour Nomenclature", S)]
    rows = [
        ["Squamous epithelium", "Squamous cell papilloma", "Squamous cell carcinoma"],
        ["Glandular epithelium", "Adenoma", "Adenocarcinoma"],
        ["Transitional epithelium", "Transitional cell papilloma", "Transitional cell carcinoma (urothelial ca.)"],
        ["Hepatocytes", "Hepatocellular adenoma", "Hepatocellular carcinoma (hepatoma)"],
        ["Fat", "Lipoma", "Liposarcoma"],
        ["Cartilage", "Chondroma", "Chondrosarcoma"],
        ["Bone", "Osteoma", "Osteosarcoma"],
        ["Smooth muscle", "Leiomyoma", "Leiomyosarcoma"],
        ["Striated muscle", "Rhabdomyoma", "Rhabdomyosarcoma"],
        ["Blood vessels", "Haemangioma", "Angiosarcoma"],
        ["Nerve sheath", "Neurofibroma, schwannoma", "Malignant peripheral nerve sheath tumour"],
        ["Melanocytes", "Melanocytic naevus (mole)", "Melanoma"],
        ["Lymphocytes", "—", "Lymphoma, leukaemia"],
        ["Plasma cells", "—", "Multiple myeloma"],
        ["Mixed / Embryonal", "Mature teratoma", "Wilms' tumour, retinoblastoma"],
    ]
    el += [make_table(["Cell/Tissue of Origin", "Benign", "Malignant"], rows, S, [4.5*cm, 5*cm, 6.5*cm]), SP(6)]

    el += [H2("5.3 Hallmarks of Cancer", S)]
    el += [P("Hanahan and Weinberg defined the following acquired capabilities of cancer cells:", S), SP(3)]
    hallmarks = [
        ("Self-sufficiency in growth signals", "Oncogene activation; autocrine stimulation (e.g., RAS mutations)"),
        ("Insensitivity to anti-growth signals", "Loss of tumour suppressors (RB, p16, SMAD pathway)"),
        ("Evasion of apoptosis", "BCL-2 overexpression; loss of p53; upregulation of IAPs"),
        ("Limitless replicative potential (immortality)", "Telomerase re-activation; bypasses Hayflick limit"),
        ("Sustained angiogenesis", "VEGF overexpression; supply tumour with O₂ and nutrients"),
        ("Tissue invasion and metastasis", "Loss of E-cadherin; MMP upregulation; EMT"),
        ("Reprogramming of energy metabolism", "Warburg effect: aerobic glycolysis even in the presence of O₂"),
        ("Evading immune destruction", "PD-L1 expression; secretion of TGF-β; loss of MHC-I"),
        ("Tumour-promoting inflammation", "Chronic inflammation supplies growth factors and mutation-causing ROS"),
        ("Genome instability and mutation", "Defective DNA repair; microsatellite instability; chromosomal instability"),
    ]
    rows = [[h, d] for h, d in hallmarks]
    el += [make_table(["Hallmark", "Key Mechanism"], rows, S, [6*cm, 10*cm]), SP(6)]

    el += [H2("5.4 Carcinogenesis — Molecular Basis", S)]

    el += [H3("Oncogenes", S)]
    el += [P(
        "Oncogenes are derived from normal proto-oncogenes by gain-of-function mutations. "
        "They encode proteins that drive proliferation.", S
    )]
    rows = [
        ["RAS (KRAS, NRAS)", "GTPase signal transduction", "KRAS: pancreatic (90%), colorectal (50%), lung"],
        ["MYC", "Transcription factor; drives proliferation", "Burkitt lymphoma (t(8;14)); many solid tumours"],
        ["ERBB2 (HER2)", "Receptor tyrosine kinase", "Breast, gastric (amplification; target of trastuzumab)"],
        ["BCL-2", "Anti-apoptotic", "Follicular lymphoma (t(14;18))"],
        ["EGFR", "Receptor tyrosine kinase", "Lung adenocarcinoma; glioblastoma"],
        ["BRAF (V600E)", "Serine/threonine kinase", "Melanoma (50%), papillary thyroid cancer, colorectal"],
    ]
    el += [make_table(["Oncogene", "Function", "Key Cancers"], rows, S, [4*cm, 5*cm, 7*cm]), SP(4)]

    el += [H3("Tumour Suppressor Genes", S)]
    el += [P(
        "Tumour suppressors restrain cell growth. Both alleles must be inactivated "
        "(Knudson's 'two-hit hypothesis') — the first hit is inherited or somatic, "
        "the second is somatic loss of heterozygosity (LOH).", S
    )]
    rows = [
        ["RB1 (Retinoblastoma)", "Cell cycle brake at G1/S checkpoint (pocket protein)", "Retinoblastoma; osteosarcoma; SCLC"],
        ["TP53 (p53)", "Guardian of the genome: DNA damage → apoptosis or cell cycle arrest",
         "50% of all human cancers; Li-Fraumeni syndrome (germline)"],
        ["APC", "β-catenin degradation (Wnt pathway suppressor)", "Colorectal cancer; FAP"],
        ["BRCA1/2", "Homologous recombination DNA repair", "Breast (up to 80% lifetime risk), ovarian cancer"],
        ["CDKN2A (p16)", "Inhibits CDK4/6, maintaining RB in active (hypophosphorylated) form",
         "Melanoma, pancreatic cancer, many others"],
        ["PTEN", "Phosphatase; opposes PI3K/AKT signalling", "Endometrial cancer; Cowden syndrome; glioblastoma"],
        ["VHL", "Targets HIF-1α for degradation", "Renal clear cell carcinoma"],
        ["SMAD4 / DPC4", "TGF-β signalling effector (anti-proliferative)", "Pancreatic cancer (55%), colorectal"],
    ]
    el += [make_table(["Tumour Suppressor", "Function", "Key Cancers/Syndromes"], rows, S, [3.5*cm, 6.5*cm, 6*cm]), SP(4)]

    el += [H2("5.5 Invasion and Metastasis", S)]
    el += [P("Metastasis is the spread of tumour cells from the primary site to distant locations. "
             "Only malignant tumours metastasise. Steps in the metastatic cascade:", S)]
    steps_meta = [
        "Detachment from primary tumour — loss of E-cadherin; epithelial-mesenchymal transition (EMT)",
        "Invasion of ECM — MMPs degrade basement membrane and interstitial collagen",
        "Intravasation — entry into lymphatics or blood vessels",
        "Survival in circulation — evasion of immune destruction; tumour cell emboli",
        "Extravasation — arrest at secondary site, adhesion to endothelium, exit from vessel",
        "Formation of micrometastasis — colonisation of distant stroma; depends on 'seed and soil' compatibility",
        "Macrometastasis — angiogenesis in secondary site; clinically detectable disease",
    ]
    for i, step in enumerate(steps_meta, 1):
        el += [B(f"<b>Step {i}:</b> {step}", S)]
    el += [SP(4)]

    el += [H3("Common Metastatic Patterns", S)]
    rows = [
        ["Lung carcinoma", "Adrenal glands, liver, bone, brain"],
        ["Breast carcinoma", "Bone (osteolytic), lung, liver, brain; sentinel LN → axillary LN"],
        ["Prostate carcinoma", "Bone (osteoblastic — 'ivory vertebra')"],
        ["Colorectal carcinoma", "Liver (portal drainage); then lung"],
        ["Gastric carcinoma", "Peritoneum; Virchow's node (left supraclavicular); Krukenberg tumour (ovaries)"],
        ["Renal cell carcinoma", "'Clear cell' — metastasises late but to unusual sites (thyroid, skin)"],
        ["Melanoma", "Brain, liver, skin, bone; haematogenous spread early"],
    ]
    el += [make_table(["Primary Tumour", "Typical Metastatic Sites"], rows, S, [5*cm, 11*cm]), SP(6)]

    el += [H2("5.6 Carcinogenic Agents", S)]
    rows = [
        ["Chemical", "Direct-acting alkylating agents (nitrogen mustard); indirect-acting polycyclic hydrocarbons "
                      "(benzo[a]pyrene in tobacco smoke — metabolised by CYP enzymes to reactive epoxides)",
         "Lung, bladder, skin"],
        ["Radiation (UV)", "UV-B → pyrimidine dimers → C→T transversions in p53; failure of nucleotide excision repair",
         "Skin (BCC, SCC, melanoma)"],
        ["Radiation (ionising)", "Double-strand DNA breaks; chromosomal rearrangements",
         "Leukaemia, thyroid, breast"],
        ["Viral (DNA)", "HPV (E6 inactivates p53, E7 inactivates RB); HBV (HCC); EBV (BL, NPC, Hodgkin); "
                        "KSHV/HHV8 (Kaposi sarcoma)", "Cervical, HCC, lymphomas"],
        ["Viral (RNA — retroviruses)", "HTLV-1 → Tax protein activates NF-κB, cyclin D", "Adult T-cell leukaemia/lymphoma"],
        ["Helicobacter pylori", "Chronic gastritis → metaplasia → gastric adenocarcinoma; also MALT lymphoma", "Stomach"],
        ["Aflatoxin B1 (Aspergillus)", "Highly reactive epoxide → adducts with guanine in p53 codon 249",
         "HCC (Africa, Asia)"],
    ]
    el += [make_table(["Agent", "Mechanism", "Associated Cancer"], rows, S, [3*cm, 9*cm, 4*cm]), SP(8)]

    return el


# ─── Section 6: Haemodynamics ─────────────────────────────────────────────────
def section_haemodynamics(S):
    el = []
    el += [H1("PART IV: HAEMODYNAMICS & THROMBOSIS", S), SP(10)]
    el += [H1("6. Haemodynamic Disorders", S), SP(6)]

    el += [H2("6.1 Oedema", S)]
    el += [P("Accumulation of fluid in interstitial tissue spaces or body cavities. "
             "Two types: <b>Exudate</b> (protein-rich, SG > 1.020, inflammatory) vs "
             "<b>Transudate</b> (protein-poor, SG < 1.012, non-inflammatory).", S)]
    rows = [
        ["↓ Plasma oncotic pressure", "Hypoalbuminaemia (nephrotic syndrome, cirrhosis, malnutrition)", "Transudate; generalised"],
        ["↑ Hydrostatic pressure", "Venous obstruction, cardiac failure, portal hypertension", "Transudate; local/dependent"],
        ["↑ Vascular permeability", "Inflammation, burns, allergic reaction", "Exudate; localised"],
        ["Lymphatic obstruction", "Filariasis, post-mastectomy, tumour infiltration", "Lymphoedema; pitting"],
        ["Sodium/water retention", "Renal failure, hyperaldosteronism", "Transudate; generalised"],
    ]
    el += [make_table(["Mechanism", "Causes", "Features"], rows, S, [4.5*cm, 7*cm, 4.5*cm]), SP(6)]

    el += [H2("6.2 Thrombosis — Virchow's Triad", S)]
    rows = [
        ["Endothelial injury", "Atherosclerosis, hypertension, vasculitis, homocysteinaemia",
         "Exposes subendothelial collagen and tissue factor → platelet adhesion + coagulation cascade"],
        ["Stasis / turbulent flow", "Atrial fibrillation, aneurysm, immobilisation, post-op",
         "Reduces washout of activated clotting factors; hypoxia of endothelium"],
        ["Hypercoagulability", "Factor V Leiden, prothrombin gene mutation, antiphospholipid syndrome, "
                               "malignancy, OCP, antithrombin/protein C/S deficiency",
         "Inherited or acquired thrombophilia"],
    ]
    el += [make_table(["Component", "Causes", "Mechanism"], rows, S, [3.5*cm, 6.5*cm, 6*cm]), SP(4)]

    el += [clinical_note(
        "Factor V Leiden (R506Q mutation) is the most common inherited thrombophilia. "
        "Mutant factor Va is resistant to inactivation by protein C — risk of DVT and PE.", S
    ), SP(6)]

    el += [H2("6.3 Embolism", S)]
    rows = [
        ["Pulmonary thromboembolism", "DVT from lower limb/pelvic veins", "Pleuritic chest pain, dyspnoea; massive PE → sudden death"],
        ["Systemic arterial embolism", "Left atrial thrombus (AF), LV thrombus (post-MI), endocarditis vegetations",
         "Stroke, limb ischaemia, renal/mesenteric infarction"],
        ["Fat embolism", "Long bone fracture, liposuction, bone marrow transplant",
         "Petechiae, altered consciousness, respiratory failure (72h post-trauma)"],
        ["Air embolism", "Iatrogenic (IV lines), decompression sickness",
         "Gas lock in heart; bends in divers"],
        ["Amniotic fluid embolism", "Labour, rupture of foetal membranes",
         "Sudden cardiovascular collapse + DIC; rare but highly lethal"],
        ["Septic embolism", "Infected heart valves, IV drug use",
         "Metastatic abscesses"],
    ]
    el += [make_table(["Type", "Source", "Consequences"], rows, S, [4*cm, 6*cm, 6*cm]), SP(6)]

    el += [H2("6.4 Infarction", S)]
    el += [P("Ischaemic necrosis due to obstruction of arterial supply (or, rarely, venous drainage).", S)]
    rows = [
        ["Red (haemorrhagic) infarct", "Loose tissue (lung); dual blood supply (liver, small bowel); "
                                        "reperfused infarct; venous occlusion",
         "Wedge-shaped, haemorrhagic; lung, small intestine"],
        ["White (pale/anaemic) infarct", "Solid organs with end-arterial supply",
         "Wedge-shaped, pale, coagulative necrosis; heart, kidney, spleen"],
    ]
    el += [make_table(["Type", "Setting", "Examples"], rows, S, [3.5*cm, 7.5*cm, 5*cm]), SP(6)]

    el += [H2("6.5 Disseminated Intravascular Coagulation (DIC)", S)]
    el += [P(
        "DIC is a pathologic activation of the coagulation cascade, consuming clotting factors "
        "and platelets and activating fibrinolysis. Results in simultaneous thrombosis and bleeding.", S
    )]
    el += [B("<b>Causes:</b> Sepsis (most common), obstetric catastrophes (abruption, amniotic fluid embolism), "
             "massive trauma, malignancy (especially APML), burns, incompatible blood transfusion", S)]
    el += [B("<b>Lab findings:</b> ↑ PT, ↑ APTT, ↑ D-dimer, ↓ fibrinogen, ↓ platelets, "
             "microangiopathic haemolytic anaemia (schistocytes)", S)]
    el += [SP(8)]

    return el


# ─── Section 7: Immunopathology ───────────────────────────────────────────────
def section_immunopath(S):
    el = []
    el += [H1("PART V: IMMUNOPATHOLOGY", S), SP(10)]
    el += [H1("7. Hypersensitivity Reactions & Autoimmunity", S), SP(6)]

    el += [H2("7.1 Gell and Coombs Classification", S)]
    rows = [
        ["Type I — Immediate/Anaphylactic", "IgE cross-linking on mast cells/basophils → degranulation",
         "Histamine, leukotrienes (LTC4, LTD4)", "Minutes",
         "Anaphylaxis, atopic asthma, hay fever, urticaria"],
        ["Type II — Cytotoxic", "IgG/IgM bind cell-surface antigens → complement activation or ADCC",
         "Complement, NK cells, macrophages", "Hours",
         "Autoimmune haemolytic anaemia, Goodpasture, haemolytic disease of newborn"],
        ["Type III — Immune Complex", "Ag-Ab complexes deposit in vessels/tissues → complement + neutrophil activation",
         "Complement, neutrophils, PMNs", "Hours–days",
         "Serum sickness, SLE, post-streptococcal GN, Arthus reaction"],
        ["Type IV — Delayed (Cell-Mediated)", "CD4+ Th1 cells activate macrophages; CD8+ CTLs kill target cells",
         "IFN-γ, TNF, perforin/granzymes", "24–72 hours",
         "Contact dermatitis, TB (Mantoux test), graft rejection, Type 1 diabetes"],
    ]
    el += [make_table(
        ["Type", "Mechanism", "Effectors", "Timing", "Examples"],
        rows, S, [3.5*cm, 5.5*cm, 3*cm, 2*cm, 4*cm]
    ), SP(6)]

    el += [H2("7.2 Key Autoimmune Diseases", S)]
    rows = [
        ["Systemic Lupus Erythematosus (SLE)",
         "Anti-dsDNA, anti-Sm (diagnostic); Type III hypersensitivity dominant. "
         "Wire-loop glomerulonephritis; butterfly rash; Libman-Sacks endocarditis; cytopenias",
         "Anti-dsDNA, ANA, anti-Sm, anti-Ro/La"],
        ["Rheumatoid Arthritis",
         "Anti-CCP antibodies; RF. Pannus formation → erosion of articular cartilage. "
         "Rheumatoid nodules; extra-articular vasculitis; Felty's syndrome",
         "RF, anti-CCP"],
        ["Sjögren's Syndrome",
         "Lymphocytic destruction of salivary and lacrimal glands → xerostomia, xerophthalmia. "
         "Risk of NHL (MALT lymphoma)",
         "Anti-Ro (SS-A), anti-La (SS-B)"],
        ["Goodpasture Syndrome",
         "Anti-GBM antibodies (Type II); linear IgG deposition on GBM. "
         "Pulmonary haemorrhage + rapidly progressive GN",
         "Anti-GBM, p-ANCA (some)"],
        ["Myasthenia Gravis",
         "Anti-AChR antibodies block neuromuscular transmission → fatigable weakness. "
         "Thymoma in 15%. Anti-MuSK in seronegative cases",
         "Anti-AChR"],
        ["Hashimoto's Thyroiditis",
         "Lymphocytic thyroiditis; Hürthle cell change; germinal centres in thyroid. "
         "Most common cause of hypothyroidism in iodine-replete regions",
         "Anti-TPO, anti-thyroglobulin"],
        ["Type 1 Diabetes (T1DM)",
         "CD8+ CTL destruction of β-islet cells; HLA-DR3/DR4 association. "
         "Insulitis on histology",
         "Anti-islet cell, anti-GAD, anti-insulin"],
    ]
    el += [make_table(["Disease", "Pathology & Features", "Key Antibodies"], rows, S, [4*cm, 8*cm, 4*cm]), SP(6)]

    el += [H2("7.3 Transplant Rejection", S)]
    rows = [
        ["Hyperacute", "Minutes to hours", "Pre-formed donor-specific antibodies → complement activation",
         "Immediate thrombosis; graft removed intraoperatively"],
        ["Acute (humoral)", "Days–weeks", "Donor-specific antibodies formed post-transplant",
         "C4d deposition on biopsy; arteritis"],
        ["Acute (cellular)", "Days–weeks", "CD4+ and CD8+ T cells recognise alloantigen (direct/indirect)",
         "Mononuclear interstitial infiltrate; tubulitis (kidney)"],
        ["Chronic", "Months–years", "Combined antibody and T-cell mediated; chronic ischaemia",
         "Intimal fibrosis of vessels ('onion-skin'); interstitial fibrosis; organ dysfunction"],
    ]
    el += [make_table(["Type", "Timing", "Mechanism", "Pathology"], rows, S, [3*cm, 3*cm, 5.5*cm, 4.5*cm]), SP(8)]

    return el


# ─── Section 8: Pathologic Calcification & Ageing ────────────────────────────
def section_misc(S):
    el = []
    el += [H1("PART VI: DEPOSITIONS, AGEING & GENETICS", S), SP(10)]
    el += [H1("8. Pathologic Depositions & Calcification", S), SP(6)]

    el += [H2("8.1 Intracellular Accumulations", S)]
    rows = [
        ["Lipids (Steatosis)", "Fatty liver (alcohol, obesity, DM, drugs); foam cells in atherosclerosis",
         "Membrane whorls (myelin figures); lipid vacuoles on Oil Red O stain"],
        ["Proteins", "Russell bodies (immunoglobulin in plasma cells); Mallory-Denk bodies (keratin in alcoholic hepatitis); "
                      "α1-antitrypsin globules in liver",
         "Pink hyaline inclusions on H&E"],
        ["Glycogen", "Glycogen storage diseases (Pompe, Gaucher, Niemann-Pick); diabetic hepatocytes",
         "Clear vacuoles; PAS-positive"],
        ["Lipofuscin", "Wear-and-tear ageing pigment; not harmful; lysosomal residue",
         "Perinuclear golden-brown granules; older patients"],
        ["Melanin", "Normal in melanocytes; excess in Addison's disease, melanoma",
         "Brown-black pigment"],
        ["Haemosiderin", "Iron overload (haemochromatosis, repeated transfusions, local haemorrhage)",
         "Golden-brown granules; Perls' Prussian Blue positive"],
        ["Bilirubin", "Cholestasis; jaundice",
         "Yellow-green pigment in hepatocytes and bile canaliculi"],
        ["Carbon (Anthracosis)", "Coal dust inhalation; tattoo pigment",
         "Black pigment in macrophages; benign; marks draining lymph nodes"],
    ]
    el += [make_table(["Substance", "Context", "Histologic Features"], rows, S, [3*cm, 7.5*cm, 5.5*cm]), SP(4)]

    el += [H2("8.2 Pathologic Calcification", S)]
    rows = [
        ["Dystrophic", "Calcium deposits in dead or damaged tissue; serum calcium NORMAL",
         "Atherosclerotic plaques, heart valves, tuberculous foci, fat necrosis, mature tumours"],
        ["Metastatic", "Calcium deposits in normal tissue; serum calcium ELEVATED (hypercalcaemia)",
         "Kidneys (nephrocalcinosis), lungs, gastric mucosa, blood vessels, cornea"],
    ]
    el += [make_table(["Type", "Mechanism/Context", "Sites"], rows, S, [3*cm, 7*cm, 6*cm]), SP(6)]

    el += [H2("8.3 Cellular Ageing", S)]
    el += [P("Ageing reflects accumulated cellular damage. Key mechanisms:", S)]
    mechanisms = [
        ("Telomere Shortening", "Each cell division shortens telomeres (TTAGGG repeats). "
                                 "When critically short, cells enter replicative senescence (p21-mediated) or apoptosis. "
                                 "Cancer cells re-activate telomerase (hTERT) to achieve immortality."),
        ("Oxidative Damage Accumulation", "ROS from mitochondrial leak accumulate in DNA, lipids, and proteins "
                                           "over decades. Mitochondrial DNA especially vulnerable (no histones, limited repair)."),
        ("Epigenetic Alterations", "Progressive loss of DNA methylation marks and histone acetylation "
                                    "changes alter gene expression patterns, activating pro-ageing genes."),
        ("Decreased DNA Repair", "Fidelity of mismatch repair, nucleotide excision repair, and "
                                   "NHEJ declines with age — increasing mutational burden."),
        ("Inflammaging", "Chronic low-grade sterile inflammation driven by senescent cells that "
                          "secrete a SASP (Senescence-Associated Secretory Phenotype): IL-6, IL-8, TNF, MMPs."),
        ("Protein Homeostasis (Proteostasis) Failure", "Reduced proteasome/autophagy efficiency → accumulation of "
                                                         "misfolded proteins → ER stress → apoptosis."),
    ]
    for name, desc in mechanisms:
        el += [H3(name, S), P(desc, S)]
    el += [SP(8)]

    return el


# ─── Section 9: Key Pathology Mnemonics & Quick Reference ────────────────────
def section_quick_ref(S):
    el = []
    el += [H1("PART VII: QUICK REFERENCE", S), SP(10)]
    el += [H1("9. Mnemonics, Buzzwords & High-Yield Facts", S), SP(6)]

    el += [H2("9.1 Pathology Buzzwords", S)]
    rows = [
        ["Bread-and-butter pericardium", "Fibrinous pericarditis"],
        ["Cheese-like appearance", "Caseous necrosis (TB)"],
        ["Wire-loop glomeruli", "SLE nephritis (WHO Class III/IV)"],
        ["Signet ring cells", "Gastric adenocarcinoma (mucus pushes nucleus to periphery)"],
        ["Psammoma bodies", "Papillary thyroid carcinoma, serous ovarian carcinoma, meningioma, mesothelioma"],
        ["Aschoff bodies", "Rheumatic fever (macrophage nodules in myocardium)"],
        ["Reed-Sternberg cells (owl-eye)", "Hodgkin lymphoma (CD15+, CD30+)"],
        ["Lewy bodies", "Parkinson's disease (α-synuclein aggregates)"],
        ["Negri bodies", "Rabies (neuronal cytoplasmic inclusions)"],
        ["Mallory-Denk bodies", "Alcoholic hepatitis (keratin aggregates)"],
        ["Councilman bodies (acidophilic bodies)", "Viral hepatitis (apoptotic hepatocytes)"],
        ["Rokitansky-Aschoff sinuses", "Chronic cholecystitis"],
        ["Curschmann spirals + Charcot-Leyden crystals", "Bronchial asthma"],
        ["Ivory vertebra", "Osteoblastic metastasis (prostate cancer) or Paget's disease"],
        ["Call-Exner bodies", "Granulosa cell tumour (ovary)"],
        ["Schiller-Duval bodies", "Yolk sac tumour (AFP-secreting)"],
        ["Reinke crystals", "Leydig cell tumour (testis)"],
        ["Verocay bodies", "Schwannoma"],
    ]
    el += [make_table(["Buzzword/Sign", "Diagnosis"], rows, S, [7*cm, 9*cm]), SP(6)]

    el += [H2("9.2 Important Stains in Histopathology", S)]
    rows = [
        ["H&E (Haematoxylin & Eosin)", "Routine stain. Nuclei: blue; cytoplasm, collagen: pink"],
        ["PAS (Periodic Acid-Schiff)", "Glycogen, glycoproteins, fungi (Candida, Histoplasma)"],
        ["Perls' Prussian Blue", "Haemosiderin/iron (sideroblastic anaemia, haemochromatosis)"],
        ["Congo Red", "Amyloid (apple-green birefringence under polarised light)"],
        ["Ziehl-Neelsen (ZN)", "Acid-fast bacilli (TB, leprosy, Nocardia)"],
        ["India Ink", "Cryptococcus neoformans (capsule)"],
        ["Silver stain (Gomori methenamine)", "Fungi, PCP (Pneumocystis), reticulin fibres"],
        ["Alcian Blue", "Acid mucopolysaccharides, mucus"],
        ["Masson's Trichrome", "Collagen (blue/green) vs muscle (red) — fibrosis"],
        ["Oil Red O", "Lipids/fat (frozen sections only — lipids dissolve in paraffin processing)"],
        ["Giemsa", "H. pylori, Leishmania, malaria, lymphoma cells"],
        ["Toluidine Blue", "Mast cell granules"],
        ["Luxol Fast Blue (LFB)", "Myelin (demyelination in MS)"],
        ["Fontana-Masson", "Melanin"],
    ]
    el += [make_table(["Stain", "Use / What it Demonstrates"], rows, S, [5.5*cm, 10.5*cm]), SP(6)]

    el += [H2("9.3 p53 — The Guardian of the Genome", S)]
    el += [P("TP53 is mutated in ~50% of all human cancers — the most frequently mutated gene in human neoplasia.", S)]
    el += [B("Normal function: senses DNA damage → activates p21 (CDK inhibitor) → G1 arrest → DNA repair. "
             "If repair fails → BAX/PUMA upregulation → apoptosis", S)]
    el += [B("Mutant p53 (gain-of-function): acts as oncogene; accumulates in nucleus (IHC positive)", S)]
    el += [B("Germline mutation: Li-Fraumeni syndrome (LFS) — multiple primary malignancies from childhood", S)]
    el += [B("HPV E6 protein binds wild-type p53 and targets it for ubiquitin-mediated degradation", S)]
    el += [SP(4)]

    el += [H2("9.4 High-Yield Associations", S)]
    rows = [
        ["Asbestos exposure", "Mesothelioma (pleura), lung carcinoma, asbestosis (lower lobes)"],
        ["Vinyl chloride", "Hepatic angiosarcoma"],
        ["Aflatoxin B1", "Hepatocellular carcinoma (p53 codon 249 mutation)"],
        ["Benzene", "Aplastic anaemia, AML"],
        ["Cyclophosphamide", "Haemorrhagic cystitis, transitional cell carcinoma of bladder"],
        ["Diethylstilboestrol (DES)", "Clear cell adenocarcinoma of vagina in offspring"],
        ["Tobacco smoke", "Oral, laryngeal, lung, oesophageal, bladder, renal, pancreatic cancer"],
        ["Obesity/NASH", "Hepatocellular carcinoma (via NASH → cirrhosis)"],
        ["Ulcerative colitis", "Colorectal carcinoma (dysplasia-carcinoma sequence; after 10 years)"],
        ["Actinic (solar) keratosis", "Squamous cell carcinoma of skin"],
        ["Villous adenoma (colon)", "High malignant potential; associated with hypokalaemia"],
        ["Cirrhosis (any cause)", "Hepatocellular carcinoma"],
    ]
    el += [make_table(["Risk Factor / Precursor", "Associated Malignancy"], rows, S, [6.5*cm, 9.5*cm]), SP(8)]

    return el


# ─── Assemble document ───────────────────────────────────────────────────────
def build_pdf():
    doc = PathologyDoc(
        OUTPUT,
        pagesize=A4,
        leftMargin=1.5*cm, rightMargin=1.5*cm,
        topMargin=1.8*cm, bottomMargin=1.8*cm,
        title="Comprehensive Pathology Reference",
        author="Orris Medical AI",
        subject="Pathology"
    )

    S = make_styles()
    elements = []

    elements += cover_page(S)
    elements += section_intro(S)
    elements += [PageBreak()]
    elements += section_cell_injury(S)
    elements += [PageBreak()]
    elements += section_inflammation(S)
    elements += [PageBreak()]
    elements += section_repair(S)
    elements += [PageBreak()]
    elements += section_neoplasia(S)
    elements += [PageBreak()]
    elements += section_haemodynamics(S)
    elements += [PageBreak()]
    elements += section_immunopath(S)
    elements += [PageBreak()]
    elements += section_misc(S)
    elements += [PageBreak()]
    elements += section_quick_ref(S)

    doc.build(elements)
    print(f"PDF created: {OUTPUT}")

if __name__ == "__main__":
    build_pdf()
Running Command

cd /tmp/workspace/pathology-reference && python3 build_pdf.py 2>&1

Running Command

ls -lh /tmp/workspace/pathology-reference/Pathology_Reference.pdf && python3 -c " from pypdf import PdfReader r = PdfReader('/tmp/workspace/pathology-reference/Pathology_Reference.pdf') print(f'Pages: {len(r.pages)}') print(f'Title: {r.metadata.title}') "

The PDF built successfully - 22 pages. Here it is:

Pathology Reference

PDF Document · PDF


What's inside (22 pages):
PartSections
Part I – FoundationsIntroduction, Etiology, Pathogenesis, Morphology
Part II – Cell InjuryAdaptations (hypertrophy, hyperplasia, atrophy, metaplasia), Necrosis patterns (6 types), Apoptosis (intrinsic/extrinsic/perforin pathways), Autophagy, Ischaemia-Reperfusion, Molecular mechanisms (ROS, Ca²⁺, mPTP)
Part III – Inflammation & RepairCardinal signs, Mediators table, Acute/Chronic inflammation, Leukocyte recruitment steps, Granulomatous inflammation (7 causes), Acute-phase response, Tissue repair & scarring
Part IV – NeoplasiaBenign vs malignant features, Full tumour nomenclature table, 10 Hallmarks of Cancer, Oncogenes, Tumour suppressors, Metastatic cascade, Carcinogenic agents
Part V – HaemodynamicsOedema mechanisms, Virchow's triad, Embolism types, Infarction, DIC
Part VI – ImmunopathologyGell & Coombs Types I–IV, Autoimmune diseases with antibodies, Transplant rejection
Part VII – Quick Reference18 buzzwords/signs, 14 histologic stains, p53 summary, High-yield carcinogen-cancer associations
The PDF uses colour-coded section banners, styled tables with alternating rows, clinical pearl boxes, and key concept highlights throughout. Based on Robbins & Kumar Basic Pathology and Robbins, Cotran & Kumar Pathologic Basis of Disease.

Deep insight about immunity i have to makes notes on chapetr immunity so cover all the points and make it in point wise manner so i can directly write it down in my notebook

Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Finding Sources
Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
I now have comprehensive material. Let me compile the complete notebook-ready notes.

🧬 IMMUNITY — Complete Notebook Notes


CHAPTER 1: INTRODUCTION TO IMMUNITY

Definition:
  • Immunity = body's ability to resist/destroy foreign substances (microbes, toxins, abnormal cells)
  • Study of immunity = Immunology
  • Two major arms: Innate immunity + Adaptive immunity
Two Key Terms:
  • Host defense = protection against infection
  • Antigen (Ag) = any substance recognized by the immune system (microbial + non-microbial)

CHAPTER 2: THREE LINES OF DEFENSE

Line 1 — Physical & Chemical Barriers (First line)
  • Skin (outer surface) — waterproof, impermeable to microbes
  • Mucus membranes — line respiratory, GI, reproductive tracts
  • Mucus secretions — trap microbes
  • Cilia — sweep microbes upward (mucociliary escalator)
  • Gastric acid (HCl) — kills ingested microbes
  • Tears, saliva, urine — contain antimicrobial enzymes (lysozyme)
  • Normal flora (commensal bacteria) — compete with pathogens
Line 2 — Innate Immunity (Second line)
  • Immediate response (within hours)
  • Non-specific — does not remember previous infection
Line 3 — Adaptive Immunity (Third line)
  • Slower response (days to weeks)
  • Specific and has memory

CHAPTER 3: INNATE IMMUNITY

Definition

  • Also called: Natural / Native immunity
  • Present BEFORE infection occurs (pre-existing mechanisms)
  • Reacts rapidly to invading microbes
  • Does NOT improve with repeated exposure (no memory)

Key Concept — PAMPs and PRRs

  • PAMPs = Pathogen-Associated Molecular Patterns
    • Molecular structures shared by groups of related microbes
    • NOT present on normal host cells
    • Examples: LPS (bacterial), flagellin, viral dsRNA, peptidoglycan
  • DAMPs = Damage-Associated Molecular Patterns
    • Released by damaged/dead host cells
    • Signal "danger" even without infection ("sterile inflammation")
    • Examples: HMGB1, ATP, uric acid, heat shock proteins
  • PRRs = Pattern Recognition Receptors
    • Expressed by innate immune cells
    • Recognize PAMPs and DAMPs
    • Hard-wired (germline-encoded) — same in all individuals of same species
    • Types: Toll-like receptors (TLRs), NOD-like receptors (NLRs), RIG-I-like receptors

Components of Innate Immunity

A. Epithelial Barriers
  • Skin, mucosal epithelia
  • Antimicrobial molecules (defensins, lysozyme, secretory IgA)
  • Intraepithelial lymphocytes (γδ T cells)
B. Cells of Innate Immunity
1. Neutrophils (PMNs — Polymorphonuclear cells)
  • Most abundant white blood cell (~60–70%)
  • First cells recruited to infection site
  • Life span in tissues: 1–2 days
  • Origin: HSCs in bone marrow
  • Function: rapid phagocytosis + killing
    • Respiratory burst (NADPH oxidase) → ROS → kill bacteria
    • Degranulation → release enzymes (elastase, myeloperoxidase)
    • NET formation (Neutrophil Extracellular Traps) — extrude nuclear chromatin to trap bacteria
  • Marker: segmented/multilobed nucleus
2. Macrophages
  • Derived from blood monocytes that enter tissues
  • Life span: days–weeks (inflammatory) OR years (tissue-resident)
  • Types:
    • Tissue-resident macrophages: Kupffer cells (liver), microglia (brain), alveolar macrophages (lung), osteoclasts (bone), Langerhans cells (skin)
    • Inflammatory macrophages: recruited from blood monocytes during infection
  • Functions:
    • Phagocytosis of microbes and debris
    • Antigen presentation (express MHC class II)
    • Cytokine production: TNF, IL-1, IL-6, IL-12
    • Nitric oxide (NO) production via iNOS — microbicidal
    • Activate adaptive immunity (bridge innate → adaptive)
  • Two activation states:
    • M1 (Classical) — activated by IFN-γ and LPS → pro-inflammatory, microbicidal
    • M2 (Alternative) — activated by IL-4, IL-13 → anti-inflammatory, tissue repair
3. Dendritic Cells (DCs)
  • Named for long dendrite-like projections
  • Located in epithelia, lymphoid tissues, organ parenchyma
  • Role: Sentinel cells — detect microbes and LINK innate → adaptive immunity
  • Subsets:
    • cDC1 (Classical DC1) — specialized for cross-presentation to CD8+ T cells
    • cDC2 (Classical DC2) — most numerous; activates CD4+ T cells
    • Plasmacytoid DC (pDC) — major producer of Type I Interferon (IFN-α/β) → antiviral
    • Langerhans cells — in skin epidermis
  • All DCs: express CD11c; dependent on cytokine FLT3L for development
  • Function: capture antigens in tissues → migrate to lymph nodes → present to naïve T cells
4. Natural Killer (NK) Cells
  • Lymphocyte-like but part of innate immunity (no antigen receptor)
  • Kill virus-infected cells and tumour cells WITHOUT prior sensitization
  • Mechanism: detect "missing self" — kill cells that have lost MHC class I expression
    • Activated by: absence of MHC-I + activating ligands (MICA, MICB)
    • Kill by: perforin + granzymes → apoptosis of target cell
  • Produce IFN-γ → activates macrophages
  • CD56+ CD16+ CD3−
5. Mast Cells
  • Tissue-resident (especially skin, GI tract, respiratory mucosa)
  • Rich in granules containing: histamine, heparin, tryptase, TNF, leukotrienes
  • Activated by: IgE cross-linking (allergies), complement (C3a, C5a), PAMPs
  • Role: initiate inflammation; central to allergic reactions (Type I hypersensitivity)
6. Basophils
  • Circulating equivalent of mast cells
  • Express high-affinity IgE receptor (FcεRI)
  • Release histamine and leukotrienes
7. Eosinophils
  • Prominent in parasitic infections and allergic disease
  • Granules contain: major basic protein (MBP), eosinophil cationic protein (ECP) — toxic to parasites
  • Bilobed nucleus, pink granules on H&E
8. Innate Lymphoid Cells (ILCs)
  • Lymphocyte-like cells without antigen receptors
  • Classified ILC1, ILC2, ILC3 (mirror Th1, Th2, Th17 subsets of T cells)
  • Function at mucosal surfaces (gut, lung, skin)
  • ILC3 → important for gut defence, lymphoid tissue organogenesis
C. Soluble Proteins of Innate Immunity
1. Complement System
  • ~20 proteins (C1–C9, B, D)
  • Three activation pathways:
    • Classical — activated by antigen-antibody complex (C1 binding to IgG/IgM)
    • Alternative — activated by microbial surface directly (no antibody needed)
    • Lectin pathway — mannose-binding lectin (MBL) binds microbial carbohydrates
  • All three converge on C3 convertase → cleaves C3 → C3a + C3b
  • Key functions:
    • Opsonization — C3b coats microbes → phagocytosis (up to 100× enhanced)
    • Lysis (MAC) — C5b-9 = Membrane Attack Complex → punches holes in bacterial cell membranes
    • Inflammation — C3a, C4a, C5a (anaphylatoxins) → mast cell degranulation → histamine release
    • Chemotaxis — C5a recruits neutrophils and macrophages to infection site
    • Agglutination — clumps microbes together
    • Viral neutralization — complement attacks viral envelopes
  • Regulation: CD55 (DAF) and CD59 protect host cells from self-destruction
2. Acute-Phase Proteins (produced by liver in response to IL-6, IL-1, TNF)
  • C-Reactive Protein (CRP) — binds phosphocholine on bacteria → opsonization + complement activation
  • Mannose-Binding Lectin (MBL) — activates lectin pathway of complement
  • Serum Amyloid A (SAA) — replaces HDL-associated ApoA1
  • Fibrinogen — clotting factor; elevated in inflammation
  • Albumin, Transferrin — negative acute-phase proteins (decrease during inflammation)
3. Interferons (Type I — IFN-α and IFN-β)
  • Produced by: virus-infected cells (all cells) and pDCs (major source)
  • Trigger: viral dsRNA detected by TLRs (especially TLR-3, TLR-7, TLR-9) and RIG-I
  • Functions:
    • Induce antiviral state in surrounding cells (block viral replication)
    • Upregulate MHC class I expression
    • Activate NK cells
    • Have anti-proliferative and immune-modulating effects

CHAPTER 4: ADAPTIVE IMMUNITY

Definition

  • Also called: Specific / Acquired immunity
  • Develops in response to infection and adapts to it
  • Increases with each successive exposure (immunological memory)
  • Recognizes specific antigens (including non-microbial)

Cardinal Features (KEY EXAM POINTS)

1. Specificity
  • Immune responses specific for distinct antigens and even for different portions (epitopes) of the same molecule
  • Epitope / Determinant = part of antigen recognized by lymphocyte
2. Diversity
  • Lymphocyte repertoire can recognize ~10⁷–10⁹ distinct antigenic determinants
  • Generated by somatic recombination of gene segments (V-D-J recombination) in developing lymphocytes
3. Memory
  • Exposure generates long-lived memory cells
  • Secondary response is: faster, larger in magnitude, qualitatively different (higher affinity antibodies)
  • Why secondary > primary: memory cells are more numerous + more reactive than naïve cells
4. Clonal Selection (Burnet, 1957)
  • Antigen selects from PRE-EXISTING pool of antigen-specific lymphocyte clones
  • Antigen does NOT create new clones — it selects and expands the specific clone
  • Result: clonal expansion → effector cells + memory cells
5. Self-Tolerance (Non-reactivity to self)
  • Immune system does NOT attack self-antigens
  • Mechanisms:
    • Central tolerance: deletion of self-reactive lymphocytes in thymus (T cells) and bone marrow (B cells)
    • Peripheral tolerance: anergy (inactivation), regulatory T cells (Treg), deletion of self-reactive cells
  • Failure → Autoimmune disease
6. Contraction (Homeostasis)
  • After antigen is eliminated, most effector cells die by apoptosis
  • Maintains homeostasis; prevents uncontrolled immune activation
  • Memory cells survive long-term

CHAPTER 5: CELLS OF ADAPTIVE IMMUNITY

A. B Lymphocytes

Origin: Bone marrow (B = Bursa of Fabricius in birds; Bone marrow in humans) Maturation: Bone marrow → periphery (lymph nodes, spleen, MALT) Antigen receptor: BCR (B Cell Receptor) = membrane-bound immunoglobulin (mIg) Surface markers: CD19, CD20, CD21, CD23, MHC class II, Fc receptors
Subsets of B cells:
  1. Follicular B cells — major subset; diverse specificities; T-cell dependent responses
  2. Marginal zone B cells — respond to blood-borne antigens; limited specificities; T-cell independent
  3. B-1 cells — peritoneal and pleural cavities; produce "natural" IgM antibodies; limited specificity
B cell activation:
  • Binds antigen via BCR → signal 1
  • Requires help from CD4+ T helper cells (for protein antigens) → signal 2
  • Result: proliferation + differentiation into:
    • Plasma cells — antibody-secreting factories (short-lived or long-lived in bone marrow)
    • Memory B cells — survive long-term; mount rapid secondary response

B. T Lymphocytes

Origin: Bone marrow Maturation: Thymus (T = Thymus) Antigen receptor: TCR (T Cell Receptor) — αβ heterodimer (majority); or γδ Key feature: TCRs recognize ONLY peptide antigens bound to MHC molecules on other cells Surface markers common to all T cells: CD3 (essential signalling component of TCR complex)
Major T cell subsets:
CellMarkerFunction
Helper T cell (Th)CD4+Secrete cytokines; help B cells and macrophages
Cytotoxic T lymphocyte (CTL)CD8+Kill infected/tumour cells directly
Regulatory T cell (Treg)CD4+ CD25+ FoxP3+Suppress immune responses; maintain tolerance
NKT cellsCD4 or CD8 + NK markersRecognize lipid antigens on CD1d; produce large amounts of cytokines rapidly
CD4+ Helper T cell subsets (differentiated from naïve CD4+ Th0):
  • Th1 — induced by IL-12 + IFN-γ; transcription factor: T-bet
    • Produces: IFN-γ (activates macrophages), IL-2, TNF
    • Defense against: intracellular bacteria, viruses
    • Disease when dysregulated: organ-specific autoimmune disease (MS, T1DM)
  • Th2 — induced by IL-4; transcription factor: GATA-3
    • Produces: IL-4, IL-5, IL-13
    • Defense against: helminths (parasites)
    • Disease when dysregulated: allergy, asthma, atopic dermatitis
  • Th17 — induced by TGF-β + IL-6 + IL-23; transcription factor: RORγt
    • Produces: IL-17, IL-22
    • Defense against: extracellular bacteria, fungi (especially mucosal surfaces)
    • Disease when dysregulated: inflammatory bowel disease, psoriasis, RA
  • Tfh (Follicular Helper T cell) — induced by IL-6 + IL-21; transcription factor: Bcl-6
    • Migrate to germinal centers in lymph nodes
    • Help B cells: class switching, affinity maturation, memory generation
  • Treg (Regulatory T cells) — induced by TGF-β; transcription factor: FoxP3
    • Suppress T and B cell responses
    • Mechanism: produce IL-10, TGF-β; cell contact-mediated suppression via CTLA-4
    • Key role: prevent autoimmunity
CD8+ Cytotoxic T Lymphocytes (CTLs):
  • Recognize peptides on MHC class I (on ALL nucleated cells)
  • Kill mechanism:
    1. Perforin + Granzymes — perforin makes pores in target membrane → granzymes enter → caspase activation → apoptosis
    2. Fas-FasL — CTL expresses FasL → binds Fas (CD95) on target → apoptosis
    3. Secreted TNF — binds TNFR on target → apoptosis
  • Role: eliminate virus-infected cells, tumour cells, intracellular pathogens

CHAPTER 6: ANTIGEN PRESENTATION & MHC

MHC = Major Histocompatibility Complex
  • In humans: called HLA (Human Leukocyte Antigen) system
  • Located on chromosome 6
  • Most polymorphic gene locus in the human genome
MHC Class I
  • Present on: ALL nucleated cells (not RBCs)
  • Present: endogenous peptides (intracellular antigens, e.g., viral proteins, tumour antigens)
  • Recognized by: CD8+ T cells (CTLs)
  • Structure: α-chain + β2-microglobulin
  • Pathway: protein → proteasome degradation → peptide fragments → TAP transporter → ER → loaded onto MHC-I → cell surface
MHC Class II
  • Present on: Professional APCs only — dendritic cells, macrophages, B cells (also thymic epithelium)
  • Present: exogenous peptides (extracellular antigens taken up by endocytosis)
  • Recognized by: CD4+ T cells (helper T cells)
  • Pathway: protein → endosome/lysosome → peptide fragments → CLIP displaced by antigen → MHC-II → cell surface
Memory Rule:
  • Class I → CD8 (1 × 8 = 8)
  • Class II → CD4 (2 × 4 = 8 — same product!)
Antigen-Presenting Cells (APCs):
  • Dendritic cells — most potent; only APCs that can activate NAÏVE T cells
  • Macrophages — activate effector and memory T cells
  • B cells — present antigen to T cells; receive T cell help in return
Cross-presentation:
  • cDC1 subset presents exogenous antigens on MHC class I → activates CD8+ T cells
  • Important for anti-tumour immunity and anti-viral responses

CHAPTER 7: ANTIBODIES (IMMUNOGLOBULINS)

Basic Structure:
  • 4 polypeptide chains: 2 heavy (H) + 2 light (L)
  • Linked by disulfide bonds
  • Variable region (V) — N-terminus — antigen binding
  • Constant region (C) — C-terminus — effector functions
  • Fab region = antigen binding fragment (contains VH + VL)
  • Fc region = crystallisable fragment (contains CH2 + CH3) — binds Fc receptors, complement
Antigen-Binding Site = Paratope
  • Formed by hypervariable regions / Complementarity Determining Regions (CDRs) of both H and L chains
  • 3 CDRs per V domain → 6 CDRs per Fab
Classes of Immunoglobulins (Isotypes):
ClassHeavy ChainFeatures & Functions
IgGγMost abundant in blood (~80%); only Ig to cross placenta (protects newborn); secondary response; 4 subclasses (IgG1–4); longest half-life (21 days)
IgAαMost abundant overall (secreted); present in mucus, saliva, tears, breast milk; prevents mucosal infections; 2 subclasses; exists as dimer with secretory component
IgMμLargest; pentamer (10 antigen-binding sites); first produced in primary response; most efficient complement activator (classical pathway)
IgEεLowest concentration in blood; responsible for immediate hypersensitivity (allergy); binds FcεRI on mast cells and basophils; defense against helminths
IgDδExpressed on surface of mature naïve B cells (with IgM); function largely unknown; co-receptor for B cell activation
Class Switching (Isotype Switching):
  • B cell changes heavy chain class from IgM → IgG, IgA, or IgE
  • Variable region (antigen specificity) stays SAME
  • Driven by: T cell help (CD40L–CD40 interaction) + specific cytokines
    • IL-4 → IgE
    • TGF-β + IL-5 → IgA
    • IFN-γ → IgG2a
Affinity Maturation:
  • Occurs in germinal centres of lymph nodes
  • Somatic hypermutation of variable region genes
  • Selection of B cells with highest affinity antibodies
  • Result: antibodies get stronger/better with each exposure (secondary response)
Functions of Antibodies:
  1. Neutralization — blocks microbe binding to host cells; ONLY mechanism that prevents infection before it starts (basis of vaccines)
  2. Opsonization — IgG coats microbes → phagocytes (Fc receptors) engulf them more efficiently
  3. Complement activation — IgM and IgG activate classical pathway → MAC, opsonization, chemotaxis
  4. ADCC (Antibody-Dependent Cell-Mediated Cytotoxicity) — IgG-coated target cells killed by NK cells
  5. Mucosal protection — IgA in secretions neutralizes microbes before they invade
  6. Neonatal protection — maternal IgG crosses placenta; IgA in breast milk

CHAPTER 8: CYTOKINES

Definition:
  • Small secreted proteins that mediate communication between immune cells
  • Act on specific receptors (autocrine / paracrine / endocrine)
  • Pleiotropic (one cytokine, many effects), redundant (many cytokines, same effect), synergistic, antagonistic
Key Cytokines:
CytokineMajor SourceKey Functions
IL-1MacrophagesFever (endogenous pyrogen), acute-phase response, T cell activation
IL-2T cells (Th1)T cell proliferation and survival (autocrine and paracrine)
IL-4Th2, mast cellsB cell class switching to IgE; Th2 differentiation; inhibits Th1
IL-5Th2, ILC2Eosinophil production and activation; IgA class switching
IL-6Macrophages, T cellsAcute-phase proteins; fever; B cell differentiation; Th17 differentiation
IL-10Treg, macrophagesAnti-inflammatory; inhibits macrophage activation and Th1 responses
IL-12Macrophages, DCsTh1 differentiation; NK cell activation; IFN-γ production
IL-13Th2, ILC2IgE production; mucus secretion; airway hyperresponsiveness (asthma)
IL-17Th17, ILC3Neutrophil recruitment; mucosal defence; contributes to psoriasis, IBD, RA
TNF-αMacrophages, T cellsInflammation, fever, acute-phase; endothelial activation; septic shock at high levels
IFN-γTh1, NK cells, CTLsActivates macrophages (M1); upregulates MHC I and II; antiviral; anti-tumour
IFN-α/β (Type I)All cells (viral infection), pDCsAntiviral state; upregulate MHC I; NK cell activation
TGF-βTreg, macrophages, most cellsAnti-inflammatory; promotes Treg + Th17 differentiation; fibrosis
ChemokinesMany cellsDirect cell migration (chemotaxis); CCL2 recruits monocytes; CXCL8 (IL-8) recruits neutrophils

CHAPTER 9: ACTIVE vs PASSIVE IMMUNITY

FeatureActive ImmunityPassive Immunity
DefinitionHost mounts own immune responseTransfer of antibodies/cells from immune individual
OnsetSlow (days–weeks)Immediate
DurationLong-lasting (years–lifetime)Short-lived (weeks–months)
MemoryYesNo
Examples (Natural)Recovery from infectionMaternal IgG via placenta; IgA in breast milk
Examples (Artificial)VaccinationInjection of immune globulin (e.g., rabies, tetanus antitoxin)

CHAPTER 10: IMMUNOLOGICAL TOLERANCE

Definition: Unresponsiveness to self-antigens = Self-tolerance
  • Essential to prevent autoimmune disease
Central Tolerance (in primary lymphoid organs):
T cell central tolerance (Thymus):
  • Positive selection (cortex): T cells that bind self-MHC with low affinity survive
  • Negative selection (medulla): T cells that bind self-MHC + self-peptide with HIGH affinity → deleted (clonal deletion / apoptosis)
  • Medullary thymic epithelial cells (mTECs) express peripheral self-antigens via AIRE (Autoimmune Regulator gene) — present them to T cells → delete self-reactive T cells
B cell central tolerance (Bone marrow):
  • B cells that bind self-antigen strongly → receptor editing (change receptor specificity) OR clonal deletion
  • Remaining self-reactive B cells that exit: clonal anergy (functionally silenced)
Peripheral Tolerance (in secondary lymphoid organs and tissues):
  1. Anergy — T/B cells that receive signal 1 (antigen) without signal 2 (co-stimulation) → become functionally inactive (anergic)
  2. Regulatory T cells (Tregs) — CD4+ CD25+ FoxP3+ suppress self-reactive T and B cells via IL-10, TGF-β, CTLA-4
  3. Clonal deletion — persistent antigen stimulation → activation-induced cell death (AICD) via Fas-FasL
  4. Immune privilege — some sites (eye, testis, brain, placenta) have reduced immune surveillance; express FasL to kill infiltrating T cells
Failure of tolerance → Autoimmune disease

CHAPTER 11: HYPERSENSITIVITY REACTIONS

Definition: Excessive or inappropriate immune responses that cause tissue damage (Gell & Coombs classification)
TypeNameMechanismTimingExamples
IImmediate / AnaphylacticIgE on mast cells → cross-linking by Ag → degranulation (histamine, leukotrienes)Seconds–minutesAnaphylaxis, asthma, hay fever, urticaria, food allergy
IICytotoxicIgG/IgM bind cell-surface Ag → complement or ADCCHoursAIHA, Goodpasture, haemolytic disease of newborn, myasthenia gravis
IIIImmune complexAg-Ab complexes deposit in tissues → complement + neutrophil damageHours–daysSLE, post-streptococcal GN, serum sickness, Arthus reaction
IVDelayed (Cell-mediated)Sensitised CD4+ Th1 activate macrophages; CD8+ CTLs kill targets24–72 hoursContact dermatitis, TB Mantoux, graft rejection, Type 1 DM, MS
Type I — Mechanism in detail:
  • Sensitisation: Ag → Th2 response → IL-4 → B cell class switch to IgE → IgE binds FcεRI on mast cells
  • Re-exposure: Ag cross-links IgE on mast cells → degranulation
  • Early phase (minutes): histamine, tryptase, PGD2, LTC4/D4/E4 → vasodilation, bronchoconstriction
  • Late phase (hours): cytokines (IL-4, IL-5, TNF) → eosinophil recruitment → sustained inflammation

CHAPTER 12: MEMORY IMMUNE RESPONSE

Primary vs Secondary Response:
FeaturePrimary ResponseSecondary Response
Antibody productionIgM first, then IgGIgG (or IgA, IgE) dominant
Lag period1–2 weeks1–3 days
Peak titreLowerMuch higher
AffinityLowerHigher (affinity maturation)
DurationShorterLonger
Cell responsibleNaïve B and T cellsMemory B and T cells
Memory cells features:
  • Long-lived (survive years without antigen)
  • More numerous than naïve cells specific for same antigen
  • Lower threshold for activation
  • Respond more rapidly and vigorously
  • B memory cells: higher affinity BCRs (due to affinity maturation in germinal centres)
Basis of vaccination:
  • Vaccine mimics primary response → generates memory cells
  • On real infection → memory cells mount rapid, large secondary response → clear infection before symptoms appear

QUICK SUMMARY DIAGRAM

MICROBE ENTERS BODY
         ↓
INNATE IMMUNITY (Hours)
  → Barriers (skin, mucus)
  → Phagocytes (neutrophils, macrophages)
  → NK cells
  → Complement
  → Interferons
         ↓ (if not cleared)
         ↓ Dendritic cells capture antigen
         ↓ Migrate to lymph nodes
ADAPTIVE IMMUNITY (Days–Weeks)
  → Antigen presented on MHC
  → Naïve T cell activation
  → CD4+ (Helper T)      CD8+ (CTL)
        ↓                      ↓
  Help B cells           Kill infected cells
  Activate macrophages
        ↓
  B cells → Plasma cells → ANTIBODIES
        ↓
  Memory B + T cells (long-lived)

HIGH-YIELD EXAM POINTS ⭐

  1. Only lymphocytes express clonally distributed antigen-specific receptors
  2. Innate = germline encoded; Adaptive = somatic recombination (V-D-J)
  3. Clonal selection proposed by Burnet, 1957
  4. Central tolerance — deletion in thymus (T cells) and bone marrow (B cells)
  5. AIRE gene — allows thymus to express peripheral antigens → delete self-reactive T cells
  6. Only IgG crosses the placenta (neonatal protection)
  7. IgM = first antibody produced; pentameric; best complement activator
  8. IgA = most abundant overall; found in secretions; protects mucosal surfaces
  9. IgE = lowest serum level; responsible for allergy; defense against helminths
  10. MHC I → CD8 (endogenous antigens); MHC II → CD4 (exogenous antigens)
  11. Dendritic cells = only APCs that can activate NAÏVE T cells
  12. NK cells = kill cells lacking MHC class I ("missing self")
  13. IFN-γ = major macrophage activator (from Th1, NK cells)
  14. TGF-β = anti-inflammatory; promotes Treg AND Th17 (with IL-6)
  15. IL-12 = Th1 differentiation; IL-4 = Th2 differentiation; IL-6+TGF-β = Th17
  16. Perforin + Granzymes = CTL killing mechanism
  17. FoxP3 mutation = IPEX syndrome (fatal autoimmunity, polyendocrinopathy)
  18. Plasma cells = terminally differentiated B cells; no longer express surface Ig; produce secreted Ig only
  19. Secondary immune response is larger because memory cells are: (a) more numerous, (b) lower activation threshold
  20. Passive immunity = immediate but short-lived (no memory); Active = delayed but long-lasting (has memory)

Source: Cellular and Molecular Immunology (Abbas, Lichtman & Pillai) | Roitt's Essential Immunology | Robbins & Kumar Basic Pathology
This is a shared conversation. Sign in to Orris to start your own chat.