explain the joints of the upper limb with detailed explanation and mnemonics to learn, secondly, explain the landmarks of the upper limb - quadrangular space, upper/lower triangular space, cubital fossa, ulnar tunnel, bicipital aponeurosis, anatomical snuff box, compartments & potential spaces of hand, and axilla. make sure to write their clinicals (if present) respectively, and if there are any distinction-scoring points, do explain them as well. all this for the level of MS1 so make it easy too

Reading File
Now let me run parallel searches across all the topics needed.
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Reading File
Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Finding Sources
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Now let me get the shoulder joint details and the Guyon's canal (ulnar tunnel) information:
Reading File
Reading File
I now have enough textbook information to compile a comprehensive, well-structured answer. Let me also get the shoulder joint ligaments and glenohumeral joint details:
Reading File
I now have comprehensive data from the textbooks. Let me compile the full structured answer.Here is your complete MS1-level guide. It is long - grab a coffee.

Upper Limb: Complete MS1 Anatomy Guide


PART 1 - JOINTS OF THE UPPER LIMB


Overview Mnemonic - "SAW + MCPs + IPs"

Shoulder (glenohumeral, AC, SC) | Acromic region | Wrist (radiocarpal + intercarpal + CMC) | Metacarpophalangeal | Interphalangeal joints (Proximal + Distal)

1. THE SHOULDER JOINT (Glenohumeral Joint)

What type of joint is it?

Synovial ball-and-socket (spheroidal) joint - the most mobile joint in the body, but also the most commonly dislocated.

Bones

  • Head of the humerus (ball) articulates with the glenoid cavity of the scapula (socket)
  • The glenoid is 3-4x SMALLER than the humeral head - hence the instability
  • A ring of fibrocartilage called the glenoid labrum deepens the socket by ~5 mm at its base

Capsule & Ligaments

The joint capsule is loose (especially inferiorly) to allow wide range of motion.
LigamentWhere it goesWhat it does
Superior glenohumeral ligamentUpper glenoid rim → lesser tubercle / intertubercular grooveLimits inferior translation
Middle glenohumeral ligamentUpper glenoid rim → anatomical neckLimits external rotation at <45° abduction
Inferior glenohumeral ligamentLower glenoid rim → surgical neck (forms a hammock = axillary recess)Most important - limits inferior translation in abduction
Coracohumeral ligamentBase of coracoid process → greater and lesser tuberclesStabilizes long head of biceps in the groove
Distinction point: The inferior glenohumeral ligament is the most important stabilizer against anterior-inferior dislocation, especially at 90° abduction. It acts like a "hammock" catching the humeral head.

Rotator Cuff (SITS)

Mnemonic: SITS (Supraspinatus, Infraspinatus, Teres minor, Subscapularis)
MuscleNerveAction
SupraspinatusSuprascapularInitiates abduction (first 15°)
InfraspinatusSuprascapularExternal rotation
Teres minorAxillaryExternal rotation
SubscapularisUpper + Lower subscapularInternal rotation
Function as a unit: The SITS muscles compress the humeral head into the glenoid (like a "press-stud"), creating a "concavity compression" mechanism. They are the primary stabilizers of the glenohumeral joint.

Movements & Ranges

  • Flexion/Extension (sagittal)
  • Abduction/Adduction (coronal)
  • Medial/Lateral rotation (transverse)
  • Circumduction

Clinical Pearl: Shoulder Dislocation

  • Anterior dislocation = 95-97% of all shoulder dislocations (arm in forcible external rotation + abduction)
  • Head dislocates anteroinferiorly (subcoracoid position most common)
  • Two classic injury patterns:
    • Bankart lesion = torn glenoid labrum (anterior-inferior rim avulsion) - predisposes to recurrent dislocation
    • Hill-Sachs lesion = impaction fracture of posterolateral humeral head caused by glenoid rim
  • Complications: axillary nerve injury (test sensation over regimental badge area / lateral deltoid), axillary artery injury, rotator cuff tear
Distinction point: In posterior dislocation (rare, <3%), the arm is forced into internal rotation. Classic causes = electric shock and epileptic seizures (strong internal rotators overpower weak external rotators). The X-ray shows the "light bulb sign" (humeral head looks spherical on AP view).

2. ACROMIOCLAVICULAR (AC) JOINT

  • Type: Synovial plane joint (small amount of gliding)
  • Bones: Lateral clavicle + acromion
  • Stabilized by:
    • AC ligament (horizontal stability)
    • Coracoclavicular ligament = trapezoid (lateral) + conoid (medial) - these are vertical stabilizers
  • Mnemonic for coracoclavicular ligaments: "Trapezoid is Lateral; Conoid is Medial" - TL, CM

Clinical Pearl

AC joint dislocation from a fall on the shoulder ("shoulder separation"). Classified by Rockwood grades I-VI:
  • Grade I = sprain only
  • Grade II = AC ligament torn, coracoclavicular intact
  • Grade III = both ligaments torn → visible step deformity
  • Grades IV-VI = severe displacement

3. STERNOCLAVICULAR (SC) JOINT

  • Type: Synovial saddle joint (functionally acts like ball-and-socket due to an articular disc)
  • Bones: Medial clavicle + manubrium sterni + 1st costal cartilage
  • Unique feature: Has an articular disc (fibrocartilage) that divides the joint into two cavities - this is a distinction-scoring point
  • Stabilizers: Anterior and posterior SC ligaments, costoclavicular ligament, interclavicular ligament

Clinical Pearl

Only bony joint connecting the upper limb to the axial skeleton. The posterior SC dislocation is rare but dangerous - the medial clavicle can compress the trachea, esophagus, or great vessels.

4. ELBOW JOINT

Types within one synovial cavity (shared cavity = key!)

Mnemonic: "3 joints, 1 cavity, 2 movements"
ArticulationJoint typeMovement
HumeroulnarHingeFlexion/Extension
HumeroradialHingeFlexion/Extension
Proximal radioulnarPivotPronation/Supination
All three share one common synovial cavity - this is a high-yield fact.

Capsule

  • Anterior and posterior parts are thin (fat pads sit in anterior/posterior/radial fossae)
  • Medial (UCL) and lateral (RCL) collateral ligaments are thick = major stabilizers

Collateral Ligaments

  • Medial (Ulnar) Collateral Ligament (UCL): Three bundles (anterior, posterior, transverse). The anterior bundle is the primary restraint to valgus stress. Commonly injured in overhead throwing athletes (pitcher's elbow).
  • Lateral (Radial) Collateral Ligament (RCL): Includes the annular ligament of the radius which wraps around the radial neck like a cuff - this holds the radial head in place without attaching to it.

Fat pads (important for X-ray interpretation!)

Fat pads sit in the coronoid fossa (anterior), olecranon fossa (posterior), and radial fossa. On a lateral elbow X-ray:
  • Normal = only a small anterior fat pad visible
  • A visible posterior fat pad = hemarthrosis until proven otherwise = look for occult fracture!
  • A displaced/elevated anterior fat pad (sail sign) also suggests joint effusion

Clinical Pearls

Supracondylar fracture (children): Most common pediatric elbow fracture. The distal fragment is pulled posteriorly by the triceps, "bowstringing" the brachial artery over the sharp proximal fragment. Leads to Volkmann's ischemic contracture of anterior compartment muscles.
Pulled elbow / Nursemaid's elbow (children <5 years): Sharp pull on child's outstretched hand causes the radial head to sublux from under the annular ligament (the radial head is not yet fully developed). Treated by simple supination + compression - pain disappears immediately.
Golfer's elbow: Medial epicondylitis (flexor-pronator origin) Tennis elbow: Lateral epicondylitis (extensor carpi radialis brevis origin at lateral epicondyle)
Distinction point: The carrying angle = normal valgus angulation at the elbow (~7° from the shaft). Increased in cubitus valgus (associated with late ulnar nerve palsy), decreased in cubitus varus ("gunstock deformity" after malunited supracondylar fracture).

5. WRIST JOINT (Radiocarpal Joint)

  • Type: Synovial condyloid (ellipsoid) joint - allows movement in 2 axes
  • Proximal articulating surface: Distal end of radius + articular disc covering distal ulna
    • Note: the ulna does NOT directly articulate with the carpals - covered by the triangular fibrocartilage complex (TFCC) / articular disc
  • Distal articulating surface: Scaphoid + Lunate + Triquetrum (proximal row of carpals)
  • Movements: Flexion, extension, abduction (radial deviation), adduction (ulnar deviation)
Distinction point: Because the radial styloid extends more distally than the ulnar styloid, ulnar deviation (adduction) is greater than radial deviation (abduction) at the wrist.

Ligaments

  • Palmar and dorsal radiocarpal ligaments
  • Palmar and dorsal ulnocarpal ligaments
  • Radial and ulnar collateral ligaments

Carpal Joints

  • Intercarpal joints share a common synovial cavity (separated from radiocarpal joint)
  • The midcarpal joint (between proximal and distal rows) contributes especially to extension

6. CARPOMETACARPAL (CMC) JOINTS

CMCJoint typeMobility
CMC of thumb (1st)Saddle jointFull: flex/ext/abd/add/rotation/circumduction
CMC 2nd-5thPlane joints (limited gliding)Progressively more mobile from 2nd → 5th
Distinction point: The thumb CMC is a saddle joint (between trapezium and 1st metacarpal) - this is why the thumb has such a wide range of movement. The 5th metacarpal has the most mobility of the finger CMC joints.

7. METACARPOPHALANGEAL (MCP) JOINTS

  • Type: Synovial condylar joints
  • Movements: Flexion, extension, abduction, adduction, circumduction, limited rotation
  • Stabilized by palmar ligament and medial/lateral collateral ligaments
  • Deep transverse metacarpal ligaments link the palmar plates of MCPs 2-5, restricting spread of metacarpal heads

8. INTERPHALANGEAL (IP) JOINTS

  • Type: Synovial hinge joints (only flexion/extension)
  • Each finger has a proximal IP (PIP) and distal IP (DIP)
  • Thumb only has one IP joint
  • Stabilized by palmar ligament + collateral ligaments

Quick Revision Table - Joint Types Mnemonic

"Ball, Saddle, Hinge, Pivot, Plane, Condyle"
  • Ball = Glenohumeral (shoulder)
  • Saddle = CMC of thumb; SC joint (functionally)
  • Hinge = Humeroulnar, IP joints
  • Pivot = Proximal and distal radioulnar joints
  • Plane = AC joint, intercarpal joints
  • Condyle = MCP, wrist (radiocarpal)


PART 2 - LANDMARKS OF THE UPPER LIMB


1. THE AXILLA

Think of it as a 3D pyramid with apex pointing upward into the neck.

Boundaries - Mnemonic: "4 Walls + Apex + Floor"

BoundaryWhat forms it
Anterior wallPectoralis major (front), pectoralis minor + subclavius (behind it)
Posterior wallSubscapularis (top), teres major + latissimus dorsi (bottom)
Medial wallUpper 4-5 ribs + intercostal muscles + serratus anterior
Lateral wallIntertubercular sulcus (bicipital groove) of humerus - narrowest wall
Apex (inlet)Formed by: lateral border of rib I (medial), posterior surface of clavicle (anterior), superior border of scapula up to coracoid process (posterior)
Floor (base)Axillary fascia + dome of skin
Distinction point: The axillary inlet is continuous with the neck. Everything supplying the upper limb crosses the lateral border of rib I - here is where the subclavian artery becomes the axillary artery and the axillary vein becomes the subclavian vein.

Contents - Mnemonic: "BALMS"

Brachial plexus | Axillary artery (and vein) | Lymphnodes (axillary) | Muscles (coracobrachialis, biceps brachii proximal) | Subscapular vessels

Axillary Artery - Three Parts (divided by pectoralis minor)

Mnemonic: "1,2,3" = number of branches from each part
  • Part 1 (medial to pec minor): 1 branch = Superior thoracic artery
  • Part 2 (posterior to pec minor): 2 branches = Thoracoacromial artery + Lateral thoracic artery
  • Part 3 (lateral to pec minor): 3 branches = Subscapular artery + Anterior circumflex humeral + Posterior circumflex humeral artery

Axillary Lymph Nodes - Mnemonic: "PAPICAL"

Pectoral (anterior group) | Apical | Posterior (subscapular) | Internal mammary | Central | Anterolateral (lateral group) | Lateral
The apical group drains all other axillary groups → subclavian lymphatic trunk.

Apertures in the posterior wall of the axilla

These are the 3 spaces between the posterior wall muscles - HIGH YIELD (see dedicated sections below):
  1. Quadrangular space
  2. Triangular space
  3. Triangular interval

Clinical Pearls

Winged scapula: The long thoracic nerve (C5,6,7 - "C567 breathes the sky to heaven") runs down the external surface of serratus anterior, just deep to skin. It is vulnerable in:
  • Mastectomy / axillary lymph node dissection
  • Carrying heavy bags on the shoulder
  • Direct trauma Loss of serratus anterior = medial border of scapula lifts off the chest wall on pushing forward = "winging."
Axillary vein access: Most clinicians puncturing the "subclavian vein" are actually entering the first part of the axillary vein. Enter at midclavicular line or lateral to avoid the subclavius muscle (which can kink and fracture pacemaker wires).

2. QUADRANGULAR SPACE

Think: a "window" in the posterior wall of the axilla/shoulder

Boundaries (4 sides = quadrangular)

SideBoundary
SuperiorInferior margin of subscapularis (and teres minor)
InferiorSuperior margin of teres major
MedialLateral margin of long head of triceps brachii
LateralSurgical neck of humerus
Mnemonic: "Sub-Teres M-L" → Subscapularis (top), Teres major (bottom), Medial = long head triceps, Lateral = surgical neck

Contents

  • Axillary nerve
  • Posterior circumflex humeral artery and vein

Clinical Pearl

Quadrangular space syndrome: Compression of the axillary nerve (+ posterior circumflex humeral artery) in this space, usually by fibrous bands or in overhead athletes. Presents with:
  • Pain in the posterolateral shoulder
  • Weakness/atrophy of the deltoid and teres minor
  • Sensory loss over the "regimental badge area" (lateral arm - autonomous zone of axillary nerve)
  • Also seen with shoulder dislocations (axillary nerve most commonly injured nerve)
Distinction point: The axillary nerve tests: sensory loss over the lateral deltoid (patch-like area) = autonomous zone. Motor = deltoid abduction (test at 15-90°) and teres minor (weak external rotation).

3. TRIANGULAR SPACE

Boundaries (3 sides = triangular)

SideBoundary
SuperiorInferior margin of subscapularis (or teres minor)
InferiorSuperior margin of teres major
LateralMedial margin of long head of triceps
Mnemonic: Same as quadrangular space but no lateral boundary (no humerus) = it's medial to the long head of triceps

Contents

  • Circumflex scapular artery and vein (branch of subscapular artery)
  • This space communicates between the axilla and the posterior scapular region
Memory trick: "Triangular space = Scapular circumflex vessels" (think T for Triangular and T for Three-sided and Teres branches)

4. TRIANGULAR INTERVAL (Lower Triangular Space)

Where is it?

Below and lateral to the quadrangular space - it is the most inferior and lateral of the three spaces.

Boundaries

SideBoundary
SuperiorInferior margin of teres major
MedialLateral margin of long head of triceps
LateralShaft of humerus

Contents

  • Radial nerve
  • Profunda brachii artery (deep brachial artery)
  • These then enter the posterior compartment of the arm via the spiral groove
Mnemonic for all 3 spaces: "QTT" → Quadrangular (Axillary nerve), Triangular (sCirumflex scapular), Triangular interval (Radial nerve) Or: "Axillary goes Quadrangularly | Scapular is in the Triangle | Radial goes down the Interval"
Distinction point (high yield!): From Miller's Review of Orthopaedics: "Three important testable spaces around the posteromedial shoulder: quadrangular space, triangular space, and triangular interval. The triangular interval is the most distal of the three."

Radial nerve clinical relevance

The radial nerve enters the spiral groove from the triangular interval, winding around the posterior humerus. Midshaft humeral fractures can injure the radial nerve as it lies in the spiral groove → wrist drop (inability to extend wrist, fingers, and thumb).

5. CUBITAL FOSSA

The cubital fossa is the triangular "antecubital" depression at the front of the elbow - the gateway between arm and forearm.

Boundaries

FeatureWhat forms it
Base (superior)Imaginary line between medial and lateral epicondyles
Medial borderPronator teres muscle (from medial epicondyle)
Lateral borderBrachioradialis muscle (from lateral supraepicondylar ridge)
Floor (bed)Mainly brachialis muscle (+ supinator laterally)
RoofSkin + superficial fascia + bicipital aponeurosis deep to it
Mnemonic for borders: "Really Need Beer To Be At My Best"
  • R = bRachioRadialis (lateral border)
  • P = Pronator teres (medial border)
  • (or simply: "Pronator Teres Medial, Brachioradialis Lateral")

Contents (from lateral to medial) - Mnemonic: "TAN" or "TRIBE"

Tendon of biceps brachii | Brachial artery | Median nerve
TAN = Tendon, Artery, Nerve (lateral to medial)
Or: TRIBE = Tendon, Radial nerve (deep to brachioradialis - NOT inside fossa proper), In the Brachioradialis shadow, Brachial artery, and Extra (median) nerve
Key fact: The radial nerve is NOT truly inside the cubital fossa - it lies under the lip of the brachioradialis. The ulnar nerve also does NOT pass through the cubital fossa - it goes posterior to the medial epicondyle.

Roof (superficial to deep)

  1. Skin
  2. Superficial fascia containing the median cubital vein (runs diagonally between cephalic and basilic veins)
  3. Bicipital aponeurosis (just deep to the median cubital vein) - protects the brachial artery underneath

Key events in the fossa

  • Brachial artery bifurcates into radial + ulnar arteries at the apex of the fossa (sometimes this bifurcation occurs much higher - even in the axilla)
  • Median nerve exits medially by passing between two heads of pronator teres
  • Radial nerve divides into superficial branch (continues under brachioradialis) and deep branch / posterior interosseous nerve (pierces supinator)

Clinical Pearls

Blood pressure measurement: The brachial artery pulse is auscultated in the cubital fossa (medial to the biceps tendon) when measuring BP.
Venepuncture: The median cubital vein in the roof is the most common site for IV access and blood draws - why? It is relatively immobile (tethered by the bicipital aponeurosis underneath).
Median nerve entrapment (pronator syndrome): The median nerve can be compressed between the two heads of pronator teres as it exits the cubital fossa.

6. BICIPITAL APONEUROSIS (Lacertus Fibrosus)

What is it?

A flat, sheet-like fibrous expansion arising from the medial side of the biceps brachii tendon at the elbow. It fans out medially and blends with the deep fascia of the forearm over the flexor muscles.

Exact position

  • Arises just before the biceps tendon inserts into the radial tuberosity
  • Passes medially over the cubital fossa
  • Lies directly superficial to the brachial artery and median nerve in the cubital fossa

Function

  1. Protects the brachial artery and median nerve in the cubital fossa from direct trauma
  2. Helps anchor the biceps tendon, distributing pull across the forearm fascia
  3. Can be used to feel as a landmark - its sharp medial margin can be palpated

Clinical Pearls

Clinical importance when taking blood pressure or venepuncture:
  • The bicipital aponeurosis holds the median cubital vein slightly in place (makes venepuncture easier)
  • When assessing for a brachial artery laceration after trauma, the bicipital aponeurosis may initially prevent a large hematoma from expanding - masking significant arterial injury
Distinguishing the biceps tendon from the aponeurosis:
  • The tendon is cord-like and goes to the radial tuberosity
  • The aponeurosis is sheet-like and goes medially into the forearm fascia
  • Both can be palpated with the elbow semiflexed against resistance
Distinction point: In the cubital fossa, from superficial to deep: median cubital vein → bicipital aponeurosis → brachial artery → median nerve → floor (brachialis). This layering is testable.

7. ULNAR TUNNEL (Guyon's Canal)

What is it?

A fibro-osseous tunnel on the medial side of the wrist through which the ulnar nerve and ulnar artery pass into the hand.

Boundaries

WallStructure
FloorFlexor retinaculum + pisohamate ligament
RoofPalmar carpal ligament (extension of deep fascia)
MedialPisiform bone
LateralHook of hamate
Mnemonic: "Pisiform-Hamate = Ulnar tunnel frame" (P-H = Ulnar Highway)

Contents

  • Ulnar nerve (medial)
  • Ulnar artery (lateral)
  • No flexor tendons pass through here (unlike carpal tunnel) - distinction point!

The ulnar nerve divides inside the tunnel:

  • Superficial branch: Sensory to medial 1.5 fingers (little + medial ring), palmaris brevis
  • Deep branch: Motor - winds around hook of hamate → all hypothenar muscles, interossei, medial 2 lumbricals, adductor pollicis, deep head of flexor pollicis brevis

Clinical Pearl: Ulnar Tunnel Syndrome (Guyon's Canal Syndrome)

Compression of the ulnar nerve in Guyon's canal. Causes:
  • Ganglion cyst (most common)
  • Hook of hamate fracture (e.g., fall on outstretched hand, racquet sports)
  • Repetitive pressure ("cyclist's palsy" from handlebar pressure)
Depending on where the compression is within the canal:
  • Proximal to bifurcation: Both motor and sensory loss
  • At deep branch: Motor only (all intrinsic hand muscles except thenar + 2 lateral lumbricals) = "claw hand" of ring + little fingers, weak grip, no sensory loss
  • At superficial branch: Sensory only
Distinction vs. carpal tunnel syndrome:
  • Carpal tunnel = median nerve compression → sensory loss thumb/index/middle/radial half of ring; thenar wasting
  • Guyon's canal = ulnar nerve compression → sensory loss little + medial ring; hypothenar and interossei wasting

8. ANATOMICAL SNUFF BOX

What is it?

A small triangular depression on the lateral (radial) side of the wrist, visible when the thumb is fully extended and abducted.

Boundaries

BorderStructure
Medial (posterior) borderTendon of extensor pollicis longus
Lateral (anterior) borderTendons of abductor pollicis longus + extensor pollicis brevis
Proximal endRadial styloid process
FloorScaphoid bone + trapezium (and radial artery lies on them)
RoofSkin + superficial fascia (cephalic vein crosses superficially)
Mnemonic for floor bones: "S-T" → Scaphoid (proximal) + Trapezium (distal)
Mnemonic for tendons: "Longer one Medially" = EPL is the medial/posterior border; APL + EPB are lateral/anterior

Contents

  • Radial artery (palpable as a pulse in the floor)
  • Radial nerve (superficial branch) crossing the roof
  • Cephalic vein (roof)

Clinical Significance

Scaphoid fracture (most high-yield point):
  • Most common carpal bone fracture (~70% of all carpal fractures)
  • Mechanism: Fall on outstretched hand (FOOSH)
  • Tenderness in the anatomical snuff box = scaphoid fracture until proven otherwise - even with normal X-rays
  • If suspected but X-ray negative → immobilize and repeat X-ray at 10-14 days, or get MRI/CT
Avascular necrosis of the scaphoid proximal pole:
  • In ~10% of people, the scaphoid's only blood supply enters distally via the radial artery (through the snuff box)
  • A fracture through the waist of the scaphoid cuts off this supply to the proximal pole → AVN
  • The proximal fragment appears sclerotic (white) on X-ray
Distinction point: Tenderness specifically in the snuff box (not just the wrist generally) distinguishes scaphoid tenderness from other wrist pathology. The scaphoid also has a tubercle on the palmar surface - both sites of tenderness suggest scaphoid fracture.
De Quervain's tenosynovitis: Inflammation of APL + EPB tendons and their sheath in the 1st extensor compartment (forms the lateral border of the snuff box). Finkelstein's test is positive. Common in new mothers lifting infants.

9. COMPARTMENTS OF THE HAND

Overview

The hand has compartmental anatomy relevant to infection spread and high-pressure injuries.

Thenar Compartment

  • Contains the 3 thenar muscles: Abductor pollicis brevis, Opponens pollicis, Flexor pollicis brevis (superficial head)
  • All innervated by the recurrent branch of the median nerve
  • Bounded by the 1st metacarpal and thenar fascia

Hypothenar Compartment

  • Contains 3 hypothenar muscles: Abductor digiti minimi, Opponens digiti minimi, Flexor digiti minimi brevis
  • All innervated by the deep branch of the ulnar nerve
  • Bounded by the 5th metacarpal and hypothenar fascia

Central Compartment / Palmar Compartment

  • Contains the flexor tendons (in their sheaths), lumbricals, and the superficial palmar arch + nerves

Adductor Compartment

  • Contains adductor pollicis (innervated by deep branch of ulnar nerve)
  • Clinically important: Froment's sign (paper sign) tests adductor pollicis

Interosseous Compartments (4)

  • 4 dorsal interossei (DAB - Dorsals ABduct)
  • 3 palmar interossei (PAD - Palmars ADduct)
  • All innervated by deep branch of ulnar nerve

10. POTENTIAL SPACES OF THE HAND (Fascial Spaces)

These are clinically critical because infections can spread through them.

Palm - Major Spaces (deep to palmar fascia and flexor tendons)

Mnemonic: "Two Deep Palmar Spaces separated by the 3rd MC"

Thenar Space

  • Location: Deep to the flexor tendons of the index finger, superficial to the adductor pollicis
  • Lateral boundary: 1st metacarpal/thenar muscles
  • Medial boundary: Oblique septum attached to 3rd metacarpal

Middle Palmar Space

  • Location: Deep to flexor tendons of middle + ring + little fingers, superficial to 3rd/4th/5th metacarpals and interossei
  • Medial boundary: Hypothenar fascia/5th metacarpal
  • Lateral boundary: Oblique septum from 3rd metacarpal
The two spaces are separated by an oblique fibrous septum attached posteriorly to the 3rd metacarpal and anteriorly to the flexor tendon sheath between index and middle fingers.

Parona's Space

  • Located in the distal forearm, anterior to pronator quadratus, posterior to flexor tendons
  • Both palmar spaces communicate proximally with Parona's space
  • Infection of either palmar space can track proximally into Parona's space = "horseshoe abscess" if ulnar bursa is also involved

Dorsal Spaces

  1. Dorsal subcutaneous space (superficial to extensor expansion)
  2. Dorsal subaponeurotic space (deep to extensor expansion, superficial to metacarpals)

Clinical Significance of Palmar Spaces

Thenar space infection ("Ballooning of thenar eminence"):
  • Presents with painful swollen thenar eminence, finger held in slight flexion
  • Thumb abducted and fixed (protective position)
Middle palmar space infection:
  • Flat palm appearance (normal concavity of palm is lost)
  • Dorsal edema (edema tracks to the dorsum because palmar skin is tough)
  • Tenderness at the palm
Collar-stud abscess: Infection of the subaponeurotic space can push through the palmar fascia to form a superficial pocket - creating a dumbbell/collar-stud shaped abscess communicating deep to superficial.
Horseshoe abscess: Infection of ulnar bursa (around the little finger flexor tendon) can spread to the radial bursa (around flexor pollicis longus) through Parona's space - creating a horseshoe-shaped infection.
Distinction point: Dorsal hand swelling does NOT mean dorsal infection - because the dorsal skin is loose, even palmar space infections present with marked dorsal edema. Always examine the palm.

Quick Revision Summary Table

Space / StructureContentsClinical Correlation
AxillaAxillary a/v, brachial plexus, lymph nodesLymphadenopathy, axillary nerve injury with shoulder dislocation
Quadrangular spaceAxillary nerve, post. circumflex humeral a/vAxillary nerve injury → deltoid wasting + lateral arm sensory loss
Triangular spaceCircumflex scapular a/vLess clinical, but separates axilla from post. scapular region
Triangular intervalRadial nerve, profunda brachii aMidshaft humeral fracture → wrist drop
Cubital fossaBiceps tendon, brachial artery, median nerveBP auscultation, venepuncture (median cubital vein in roof)
Bicipital aponeurosisProtects brachial a + median nMasks arterial laceration; used in venepuncture
Ulnar tunnel (Guyon)Ulnar nerve, ulnar arteryCyclist's palsy, hamate hook fracture → claw hand
Anatomical snuff boxRadial artery, scaphoid floorScaphoid fracture (snuff box tenderness)
Thenar spacePotential space deep to flexorsThenar space infection - "ballooning"
Middle palmar spacePotential space deep to flexorsLoss of palmar concavity; dorsal swelling

Top Distinction-Scoring Points for MS1

  1. The SC joint is the only bony connection between the upper limb skeleton and the axial skeleton - and it has an articular disc.
  2. The shoulder joint is the most mobile yet most commonly dislocated joint - stability comes from SITS, not the bony architecture.
  3. All three elbow articulations share one synovial cavity - injecting one treats all.
  4. The ulna does NOT articulate with carpals - the TFCC/articular disc intervenes.
  5. The ulnar nerve does NOT pass through the cubital fossa - it goes posterior to the medial epicondyle (ulnar groove). Testable!
  6. Radial nerve is NOT inside the cubital fossa - it lies deep to brachioradialis, at the lateral margin.
  7. Snuff box tenderness = scaphoid fracture until proven otherwise, even with normal X-rays - because of distal blood supply and risk of AVN.
  8. Dorsal hand swelling is NOT dorsal infection - palmar infections cause dorsal edema because palmar skin is thick and unyielding.
  9. The posterior fat pad on lateral elbow X-ray is always abnormal - indicates hemarthrosis/effusion.
  10. Posterior shoulder dislocation = electric shock / seizure = "light bulb sign" on AP X-ray - rare but classic.
  11. The triangular interval is the MOST DISTAL of the 3 posterior shoulder spaces and carries the radial nerve.
  12. The oblique septum separating the thenar and middle palmar spaces is attached to the 3rd metacarpal - infections on each side of this septum behave differently clinically.

*Sources: Gray's Anatomy for Students (9780323934237), THIEME Atlas General Anatomy & Musculoskeletal System (9781626237186), Miller's Review of Orthopaedics 9th Ed (9780443112140), S Das Manual on Clinical Surgery 13th Ed (9788190568104)*That is the full guide. Here is a quick orientation of what is covered and how to use it:

How to Use This Guide

Part 1 (Joints) covers all 8 joint groups in order from proximal to distal: Glenohumeral → AC → SC → Elbow → Wrist → CMC → MCP → IP. Each entry gives you joint type, bones, ligaments, movements, and clinicals.
Part 2 (Landmarks) covers the 10 landmarks/spaces you asked for, structured as: boundaries → contents → clinical significance.

Your Best Mnemonics to Learn First

MnemonicWhat it remembers
SITSRotator cuff muscles (Supraspinatus, Infraspinatus, Teres minor, Subscapularis)
1-2-3Branches of axillary artery parts (1, 2, 3 branches per part)
TANCubital fossa contents lateral to medial: Tendon → Artery → Nerve
QTT3 posterior shoulder spaces: Quadrangular (Axillary n.) → Triangular (Scapular circumflex) → Triangular interval (Radial n.)
P-H (Pisiform-Hamate)Ulnar tunnel/Guyon's canal walls
S-TSnuff box floor = Scaphoid + Trapezium
DAB/PADDorsal interossei Abduct, Palmar interossei Adduct

Generate a PowerPoint presentation on upper limb joints and landmarks with clinical cases

Reading File
Reading File
Reading File
Running Command

ls -la /home/daytona/workspace/ && mkdir -p /home/daytona/workspace/upper-limb-ppt

Writing File

~/upper-limb-ppt/generate.js

const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Upper Limb: Joints & Landmarks";
pres.author = "Anatomy MS1";

// ─── PALETTE ───────────────────────────────────────────────────────────────
const C = {
  navy:    "0D1B2A",   // primary dark
  cobalt:  "1A4C8E",   // accent blue
  teal:    "0E7490",   // section accent
  gold:    "E9A319",   // highlight
  red:     "C0392B",   // clinical/danger
  light:   "EAF2FB",   // light bg
  white:   "FFFFFF",
  grey:    "6B7280",
  lgrey:   "D1D5DB",
  midgrey: "374151",
};

// ─── HELPERS ────────────────────────────────────────────────────────────────
function addSlideBg(slide, color) {
  slide.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 10, h: 5.625, fill: { color }, line: { width: 0 }
  });
}

function sectionHeader(slide, num, title) {
  addSlideBg(slide, C.cobalt);
  // accent bar left
  slide.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 0.12, h: 5.625, fill: { color: C.gold }, line: { width: 0 }
  });
  slide.addText(`0${num}`, {
    x: 0.4, y: 1.2, w: 2, h: 1.4, fontSize: 80, bold: true,
    color: "FFFFFF", transparency: 20, fontFace: "Calibri"
  });
  slide.addText(title, {
    x: 2.8, y: 1.7, w: 6.8, h: 1.8, fontSize: 36, bold: true,
    color: C.white, fontFace: "Calibri", valign: "middle"
  });
}

function contentSlide(slide, title, accent) {
  addSlideBg(slide, C.light);
  // top bar
  slide.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 10, h: 0.75, fill: { color: accent || C.cobalt }, line: { width: 0 }
  });
  slide.addText(title, {
    x: 0.35, y: 0.08, w: 9.3, h: 0.6, fontSize: 18, bold: true,
    color: C.white, fontFace: "Calibri", valign: "middle", margin: 0
  });
}

function clinicalSlide(slide, title) {
  addSlideBg(slide, C.navy);
  slide.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 10, h: 0.75, fill: { color: C.red }, line: { width: 0 }
  });
  slide.addText("🩺  " + title, {
    x: 0.35, y: 0.08, w: 9.3, h: 0.6, fontSize: 17, bold: true,
    color: C.white, fontFace: "Calibri", valign: "middle", margin: 0
  });
}

function infoBox(slide, x, y, w, h, header, lines, headerColor, isLight) {
  const bgColor = isLight ? C.white : C.navy;
  const textColor = isLight ? C.midgrey : C.lgrey;
  const hColor = isLight ? (headerColor || C.cobalt) : (headerColor || C.gold);
  slide.addShape(pres.shapes.ROUNDED_RECTANGLE, {
    x, y, w, h, fill: { color: bgColor }, rectRadius: 0.08,
    shadow: { type: "outer", color: "000000", blur: 5, offset: 2, angle: 135, opacity: 0.12 }
  });
  slide.addText(header, {
    x: x + 0.12, y: y + 0.05, w: w - 0.24, h: 0.34,
    fontSize: 10.5, bold: true, color: hColor, fontFace: "Calibri", margin: 0
  });
  const textItems = lines.map((l, i) => ({
    text: l,
    options: { bullet: { type: "bullet" }, breakLine: i < lines.length - 1, fontSize: 9.5, color: textColor, fontFace: "Calibri" }
  }));
  slide.addText(textItems, {
    x: x + 0.12, y: y + 0.42, w: w - 0.18, h: h - 0.5,
    fontFace: "Calibri", fontSize: 9.5, color: textColor, valign: "top"
  });
}

function tagBadge(slide, x, y, label, color) {
  slide.addShape(pres.shapes.ROUNDED_RECTANGLE, {
    x, y, w: 2.1, h: 0.3, fill: { color }, rectRadius: 0.06, line: { width: 0 }
  });
  slide.addText(label, {
    x, y, w: 2.1, h: 0.3, fontSize: 9, bold: true, color: C.white,
    align: "center", valign: "middle", fontFace: "Calibri", margin: 0
  });
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 1 — TITLE
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addSlideBg(s, C.navy);
  // gradient-like side accent
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 3.5, h: 5.625, fill: { color: C.cobalt }, line: { width: 0 }
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: C.gold }, line: { width: 0 }
  });
  // anatomical cross icon (simple circle + lines)
  s.addShape(pres.shapes.OVAL, {
    x: 0.5, y: 0.6, w: 2.5, h: 2.5,
    fill: { color: C.teal, transparency: 30 }, line: { color: C.gold, width: 2 }
  });
  s.addText("✦", { x: 0.5, y: 0.6, w: 2.5, h: 2.5, fontSize: 48, color: C.white, align: "center", valign: "middle" });
  s.addText("UPPER LIMB", {
    x: 3.8, y: 0.7, w: 6, h: 0.7, fontSize: 28, bold: true,
    charSpacing: 5, color: C.gold, fontFace: "Calibri", valign: "middle"
  });
  s.addText("Joints & Landmarks", {
    x: 3.8, y: 1.4, w: 6, h: 0.9, fontSize: 34, bold: true,
    color: C.white, fontFace: "Calibri", valign: "middle"
  });
  s.addText("with Clinical Cases", {
    x: 3.8, y: 2.25, w: 6, h: 0.5, fontSize: 17, italic: true,
    color: C.lgrey, fontFace: "Calibri", valign: "middle"
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x: 3.8, y: 2.85, w: 2.2, h: 0.04, fill: { color: C.gold }, line: { width: 0 }
  });
  s.addText("MS1 Anatomy  •  Upper Limb Module", {
    x: 3.8, y: 3.05, w: 6, h: 0.4, fontSize: 12, color: C.lgrey,
    fontFace: "Calibri", valign: "middle"
  });
  const topics = ["Joints of the Upper Limb", "Axilla & Apertures", "Cubital Fossa", "Wrist Landmarks", "Hand Spaces", "Clinical Cases"];
  topics.forEach((t, i) => {
    s.addText("→  " + t, {
      x: 3.8, y: 3.6 + i * 0.29, w: 6, h: 0.28,
      fontSize: 10.5, color: C.lgrey, fontFace: "Calibri", valign: "middle"
    });
  });
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 2 — SECTION: JOINTS
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  sectionHeader(s, 1, "Joints of the Upper Limb");
  s.addText("From shoulder to fingertip — 8 joint groups", {
    x: 2.8, y: 3.2, w: 7, h: 0.5, fontSize: 15, italic: true,
    color: C.lgrey, fontFace: "Calibri"
  });
  const mnems = [
    { t: "SITS", sub: "Rotator Cuff" },
    { t: "TAN", sub: "Cubital Fossa" },
    { t: "QTT", sub: "3 Spaces" },
  ];
  mnems.forEach((m, i) => {
    s.addShape(pres.shapes.OVAL, {
      x: 0.4 + i * 0.85, y: 3.8, w: 0.6, h: 0.6,
      fill: { color: C.gold }, line: { width: 0 }
    });
    s.addText(m.t, { x: 0.4 + i * 0.85, y: 3.8, w: 0.6, h: 0.6, fontSize: 7.5, bold: true, color: C.navy, align: "center", valign: "middle" });
  });
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 3 — SHOULDER JOINT
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "Shoulder (Glenohumeral) Joint", C.cobalt);

  infoBox(s, 0.2, 0.9, 3.0, 2.0, "JOINT TYPE & BONES", [
    "Ball-and-socket (spheroidal) synovial joint",
    "Head of humerus (ball) + glenoid cavity (socket)",
    "Most MOBILE joint — but most commonly DISLOCATED",
    "Glenoid labrum deepens socket by ~5 mm",
    "Glenoid is 3-4x SMALLER than humeral head",
  ], C.cobalt, true);

  infoBox(s, 3.35, 0.9, 3.3, 2.0, "LIGAMENTS (3 GH + 1 CHL)", [
    "Superior GHL — limits inferior translation",
    "Middle GHL — limits ER at <45° abduction",
    "Inferior GHL — most important; 'hammock' at 90° abd",
    "Coracohumeral lig — stabilizes biceps tendon",
  ], C.teal, true);

  infoBox(s, 6.8, 0.9, 3.0, 2.0, "ROTATOR CUFF — SITS", [
    "S — Supraspinatus (suprascapular n.) — initiates abduction",
    "I — Infraspinatus (suprascapular n.) — ext. rotation",
    "T — Teres minor (axillary n.) — ext. rotation",
    "S — Subscapularis (subscapular n.) — int. rotation",
  ], C.gold, true);

  infoBox(s, 0.2, 3.05, 4.5, 2.35, "MOVEMENTS", [
    "Flexion / Extension",
    "Abduction / Adduction",
    "Medial / Lateral rotation",
    "Circumduction",
    "NB: Scapulothoracic rhythm — 2:1 ratio (2° glenohumeral : 1° scapular rotation)",
  ], C.cobalt, true);

  infoBox(s, 4.85, 3.05, 4.95, 2.35, "★ DISTINCTION POINTS", [
    "Inferior GHL = most important stabilizer (forms 'hammock')",
    "SITS = primary stabilizers — NOT bony architecture",
    "SC joint is the ONLY bony link to axial skeleton",
    "Post. dislocation = electric shock / seizure = 'light bulb sign'",
  ], C.gold, true);
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 4 — ELBOW JOINT
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "Elbow Joint — 3 Articulations, 1 Synovial Cavity", C.teal);

  // key concept box across top
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.2, y: 0.9, w: 9.6, h: 0.5, fill: { color: C.teal }, line: { width: 0 }
  });
  s.addText("KEY CONCEPT: Three joints share ONE common synovial cavity — injection of one treats all three.", {
    x: 0.2, y: 0.9, w: 9.6, h: 0.5, fontSize: 11, bold: true,
    color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0
  });

  infoBox(s, 0.2, 1.55, 3.1, 1.7, "HUMEROULNAR (HINGE)", [
    "Trochlea of humerus + trochlear notch of ulna",
    "Allows: Flexion & Extension",
    "Primary articulation of elbow",
  ], C.cobalt, true);
  infoBox(s, 3.45, 1.55, 3.1, 1.7, "HUMERORADIAL (HINGE)", [
    "Capitulum of humerus + head of radius",
    "Allows: Flexion & Extension",
    "Also participates in prono-supination",
  ], C.cobalt, true);
  infoBox(s, 6.7, 1.55, 3.1, 1.7, "PROXIMAL RADIOULNAR (PIVOT)", [
    "Head of radius + radial notch of ulna",
    "Annular ligament wraps radial neck",
    "Allows: Pronation & Supination",
  ], C.cobalt, true);

  infoBox(s, 0.2, 3.4, 4.5, 2.0, "COLLATERAL LIGAMENTS", [
    "UCL (medial) — anterior bundle = primary valgus restraint",
    "    Pitcher's elbow = UCL injury in throwers",
    "RCL (lateral) — includes annular ligament",
    "    Pulled elbow — radial head subluxes from annular lig.",
    "    Occurs in children <5 yrs after sharp pull on hand",
  ], C.teal, true);

  infoBox(s, 4.85, 3.4, 4.95, 2.0, "FAT PADS & X-RAY SIGNS", [
    "Anterior fat pad — small, normal on lateral X-ray",
    "Posterior fat pad — ALWAYS abnormal = effusion / fracture",
    "'Sail sign' = elevated anterior fat pad = effusion",
    "Carrying angle = 7° valgus (normal)",
    "Cubitus varus (gunstock) after malunited supracondylar fracture",
  ], C.gold, true);
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 5 — WRIST & HAND JOINTS
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "Wrist & Hand Joints", C.cobalt);

  // table-style joint overview
  const joints = [
    ["Radiocarpal (Wrist)", "Condyloid (ellipsoid)", "Flexion, Extension, Abd, Add", "Radius + articular disc + scaphoid/lunate/triquetrum"],
    ["Intercarpal", "Plane", "Limited gliding — contributes to extension", "Proximal & distal carpal rows"],
    ["CMC of Thumb", "SADDLE", "Flex/Ext/Abd/Add/Rotation/Circumduction", "Trapezium + 1st metacarpal"],
    ["CMC 2nd-5th", "Plane", "Limited gliding; 5th most mobile", "Distal carpals + metacarpals II-V"],
    ["MCP joints", "Condyloid", "Flex/Ext/Abd/Add/Circumduction", "Metacarpal heads + proximal phalanges"],
    ["IP joints", "Hinge", "Flexion & Extension only", "Between phalanges (PIP & DIP)"],
  ];

  const headers = ["JOINT", "TYPE", "MOVEMENTS", "BONES"];
  const colW = [2.2, 1.7, 3.2, 2.7];
  const colX = [0.2, 2.42, 4.12, 7.32];

  // Header row
  headers.forEach((h, ci) => {
    s.addShape(pres.shapes.RECTANGLE, {
      x: colX[ci], y: 0.88, w: colW[ci] - 0.06, h: 0.35,
      fill: { color: C.cobalt }, line: { width: 0 }
    });
    s.addText(h, {
      x: colX[ci] + 0.06, y: 0.88, w: colW[ci] - 0.12, h: 0.35,
      fontSize: 9, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0
    });
  });

  joints.forEach((row, ri) => {
    const rowY = 1.28 + ri * 0.55;
    const bg = ri % 2 === 0 ? C.white : "F0F7FF";
    row.forEach((cell, ci) => {
      s.addShape(pres.shapes.RECTANGLE, {
        x: colX[ci], y: rowY, w: colW[ci] - 0.06, h: 0.5,
        fill: { color: bg }, line: { color: C.lgrey, width: 0.5 }
      });
      s.addText(cell, {
        x: colX[ci] + 0.07, y: rowY + 0.02, w: colW[ci] - 0.14, h: 0.46,
        fontSize: 8.5, color: ci === 0 ? C.cobalt : C.midgrey, bold: ci === 0,
        fontFace: "Calibri", valign: "middle", wrap: true
      });
    });
  });

  // highlight CMC saddle
  s.addShape(pres.shapes.RECTANGLE, {
    x: colX[1], y: 1.28 + 2*0.55, w: colW[1] - 0.06, h: 0.5,
    fill: { color: C.gold, transparency: 20 }, line: { color: C.gold, width: 1 }
  });

  s.addText("★  Ulna does NOT articulate with carpals — TFCC/articular disc intervenes   |   Ulnar deviation > Radial deviation (radial styloid extends more distally)", {
    x: 0.2, y: 5.1, w: 9.6, h: 0.35, fontSize: 9, italic: true, bold: true,
    color: C.cobalt, fontFace: "Calibri", align: "center"
  });
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 6 — SECTION: LANDMARKS
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  sectionHeader(s, 2, "Upper Limb Landmarks");
  s.addText("Axilla · Spaces · Fossa · Tunnel · Snuff box · Hand", {
    x: 2.8, y: 3.2, w: 7, h: 0.5, fontSize: 14, italic: true,
    color: C.lgrey, fontFace: "Calibri"
  });
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 7 — AXILLA
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "The Axilla — Pyramidal Gateway to the Upper Limb", C.cobalt);

  infoBox(s, 0.2, 0.9, 4.6, 2.65, "BOUNDARIES", [
    "Anterior wall: Pectoralis major (front); pec minor + subclavius (behind)",
    "Posterior wall: Subscapularis (top); teres major + lat. dorsi (bottom)",
    "Medial wall: Ribs 1-4 + intercostals + serratus anterior",
    "Lateral wall: Intertubercular sulcus of humerus (narrowest)",
    "Apex (inlet): Lat. border rib I + post. surface clavicle + sup. border scapula",
    "Floor: Axillary fascia + skin dome",
  ], C.cobalt, true);

  infoBox(s, 5.0, 0.9, 4.8, 2.65, "CONTENTS — BALMS", [
    "B — Brachial plexus (cords surround axillary artery)",
    "A — Axillary artery & vein",
    "L — Lymph nodes (5 groups) — drain breast + upper limb",
    "M — Muscles (proximal biceps brachii, coracobrachialis)",
    "S — Subscapular vessels + axillary process of breast",
    "Subclavian → Axillary artery at lateral border of rib I",
  ], C.teal, true);

  infoBox(s, 0.2, 3.7, 9.6, 1.75, "AXILLARY ARTERY — 3 PARTS (Divided by Pectoralis Minor) — Mnemonic: 1, 2, 3 branches", [
    "Part 1 (medial to pec minor): 1 branch — Superior thoracic artery",
    "Part 2 (posterior to pec minor): 2 branches — Thoracoacromial artery + Lateral thoracic artery",
    "Part 3 (lateral to pec minor): 3 branches — Subscapular artery + Anterior circumflex humeral artery + Posterior circumflex humeral artery",
  ], C.gold, true);
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 8 — THREE POSTERIOR SHOULDER SPACES
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "3 Posterior Shoulder Spaces — Mnemonic: QTT (Axillary · Scapular · Radial)", C.teal);

  // numbered badges
  const spaces = [
    {
      num: "1", color: C.cobalt, label: "QUADRANGULAR SPACE",
      bounds: ["Superior: Inferior border of subscapularis + teres minor", "Inferior: Superior border of teres major", "Medial: Long head of triceps (lateral margin)", "Lateral: Surgical neck of humerus"],
      contents: ["Axillary nerve", "Posterior circumflex humeral a/v"],
      clin: "Quadrangular space syndrome — axillary nerve compression → deltoid + teres minor atrophy, lateral arm numbness"
    },
    {
      num: "2", color: C.teal, label: "TRIANGULAR SPACE",
      bounds: ["Superior: Inferior border of subscapularis / teres minor", "Inferior: Superior border of teres major", "Lateral: MEDIAL margin of long head of triceps"],
      contents: ["Circumflex scapular artery & vein", "Communicates axilla ↔ post. scapular region"],
      clin: "Less clinically significant; landmark for scapular anastomosis"
    },
    {
      num: "3", color: C.gold, label: "TRIANGULAR INTERVAL",
      bounds: ["Superior: Inferior border of teres major", "Medial: Long head of triceps (lateral margin)", "Lateral: Shaft of humerus"],
      contents: ["Radial nerve", "Profunda brachii artery (deep brachial a.)"],
      clin: "Midshaft humeral fracture → radial nerve injury → WRIST DROP (can't extend wrist/fingers/thumb)"
    }
  ];

  spaces.forEach((sp, i) => {
    const x = 0.18 + i * 3.27;
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
      x, y: 0.9, w: 3.1, h: 4.55,
      fill: { color: C.white }, rectRadius: 0.1,
      shadow: { type: "outer", color: "000000", blur: 6, offset: 2, angle: 135, opacity: 0.12 }
    });
    // number badge
    s.addShape(pres.shapes.OVAL, {
      x: x + 0.1, y: 0.97, w: 0.5, h: 0.5,
      fill: { color: sp.color }, line: { width: 0 }
    });
    s.addText(sp.num, { x: x + 0.1, y: 0.97, w: 0.5, h: 0.5, fontSize: 14, bold: true, color: C.white, align: "center", valign: "middle" });
    s.addText(sp.label, {
      x: x + 0.68, y: 0.99, w: 2.35, h: 0.46,
      fontSize: 9.5, bold: true, color: sp.color, fontFace: "Calibri", valign: "middle"
    });
    // Borders
    s.addText("BOUNDARIES:", {
      x: x + 0.12, y: 1.55, w: 2.86, h: 0.25,
      fontSize: 8.5, bold: true, color: C.midgrey, fontFace: "Calibri"
    });
    const bItems = sp.bounds.map((b, bi) => ({
      text: b,
      options: { bullet: { type: "bullet" }, breakLine: bi < sp.bounds.length - 1, fontSize: 8, color: C.midgrey }
    }));
    s.addText(bItems, { x: x + 0.12, y: 1.8, w: 2.86, h: 1.4, fontFace: "Calibri", valign: "top" });

    // Contents
    s.addShape(pres.shapes.RECTANGLE, {
      x: x + 0.12, y: 3.25, w: 2.86, h: 0.22,
      fill: { color: sp.color }, line: { width: 0 }
    });
    s.addText("CONTENTS", { x: x + 0.12, y: 3.25, w: 2.86, h: 0.22, fontSize: 8, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
    const cItems = sp.contents.map((c, ci) => ({
      text: c,
      options: { bullet: { type: "bullet" }, breakLine: ci < sp.contents.length - 1, fontSize: 8.5, color: sp.color, bold: true }
    }));
    s.addText(cItems, { x: x + 0.12, y: 3.5, w: 2.86, h: 0.6, fontFace: "Calibri", valign: "top" });

    // Clinical
    s.addText("⚕ " + sp.clin, {
      x: x + 0.1, y: 4.15, w: 2.9, h: 1.2,
      fontSize: 7.8, italic: true, color: C.red, fontFace: "Calibri", wrap: true, valign: "top"
    });
  });
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 9 — CUBITAL FOSSA
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "Cubital Fossa — Triangular Gateway: Arm → Forearm", C.cobalt);

  infoBox(s, 0.2, 0.9, 3.0, 2.3, "BOUNDARIES", [
    "Base (superior): Line between medial + lateral epicondyles",
    "Medial border: Pronator teres",
    "Lateral border: Brachioradialis",
    "Floor/bed: Brachialis muscle (mainly); supinator laterally",
    "Roof: Skin + superficial fascia + bicipital aponeurosis",
  ], C.cobalt, true);

  // TAN diagram (visual)
  s.addShape(pres.shapes.RECTANGLE, {
    x: 3.35, y: 0.9, w: 3.2, h: 2.3,
    fill: { color: C.light }, line: { color: C.lgrey, width: 0.5 }
  });
  s.addText("CONTENTS (Lateral → Medial)", {
    x: 3.35, y: 0.92, w: 3.2, h: 0.3, fontSize: 10, bold: true, color: C.cobalt, align: "center", valign: "middle", margin: 0
  });
  const tanItems = [
    { label: "T", name: "Tendon of Biceps Brachii", col: C.cobalt, note: "goes to radial tuberosity" },
    { label: "A", name: "Brachial Artery", col: C.teal, note: "bifurcates at apex → radial + ulnar" },
    { label: "N", name: "Median Nerve", col: C.red, note: "exits between heads of pronator teres" },
  ];
  tanItems.forEach((item, i) => {
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
      x: 3.42, y: 1.3 + i * 0.6, w: 3.06, h: 0.52,
      fill: { color: item.col, transparency: 85 }, rectRadius: 0.06, line: { color: item.col, width: 1 }
    });
    s.addShape(pres.shapes.OVAL, {
      x: 3.42, y: 1.3 + i * 0.6, w: 0.52, h: 0.52,
      fill: { color: item.col }, line: { width: 0 }
    });
    s.addText(item.label, {
      x: 3.42, y: 1.3 + i * 0.6, w: 0.52, h: 0.52,
      fontSize: 16, bold: true, color: C.white, align: "center", valign: "middle"
    });
    s.addText(item.name, {
      x: 3.98, y: 1.3 + i * 0.6, w: 2.5, h: 0.28,
      fontSize: 9.5, bold: true, color: item.col, fontFace: "Calibri", valign: "middle"
    });
    s.addText(item.note, {
      x: 3.98, y: 1.55 + i * 0.6, w: 2.5, h: 0.26,
      fontSize: 8, italic: true, color: C.grey, fontFace: "Calibri", valign: "middle"
    });
  });

  infoBox(s, 6.68, 0.9, 3.12, 2.3, "KEY NERVES (NOT in fossa!)", [
    "Radial nerve — deep to brachioradialis lip (NOT inside fossa)",
    "  → divides into superficial branch + deep branch (PIN)",
    "  → deep branch pierces supinator",
    "Ulnar nerve — posterior to medial epicondyle",
    "  → does NOT pass through cubital fossa",
  ], C.red, true);

  infoBox(s, 0.2, 3.35, 4.5, 2.1, "BICIPITAL APONEUROSIS (Lacertus Fibrosus)", [
    "Fibrous sheet from medial side of biceps tendon",
    "Fans medially over cubital fossa into forearm fascia",
    "Lies DEEP to median cubital vein; SUPERFICIAL to brachial a + median n",
    "Protects artery from direct trauma",
    "Tethers median cubital vein → better for venepuncture",
    "May mask brachial artery laceration!",
  ], C.gold, true);

  infoBox(s, 4.85, 3.35, 4.95, 2.1, "CLINICAL APPLICATIONS", [
    "Blood pressure: Brachial artery auscultated medial to biceps tendon",
    "Venepuncture: Median cubital vein in roof (stabilized by bicipital aponeurosis)",
    "Superficial to deep in roof: Median cubital vein → Bicipital aponeurosis → Brachial artery → Median nerve",
    "Pronator syndrome: Median n. entrapped between pronator teres heads",
  ], C.cobalt, true);
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 10 — ULNAR TUNNEL & ANATOMICAL SNUFF BOX
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "Ulnar Tunnel (Guyon's Canal) & Anatomical Snuff Box", C.teal);

  // Divider line
  s.addShape(pres.shapes.RECTANGLE, {
    x: 4.9, y: 0.88, w: 0.04, h: 4.6, fill: { color: C.lgrey }, line: { width: 0 }
  });

  s.addText("ULNAR TUNNEL (GUYON'S CANAL)", {
    x: 0.2, y: 0.9, w: 4.55, h: 0.35, fontSize: 11, bold: true, color: C.teal, fontFace: "Calibri"
  });
  infoBox(s, 0.2, 1.3, 4.55, 1.3, "BOUNDARIES", [
    "Floor: Flexor retinaculum + pisohamate ligament",
    "Roof: Palmar carpal ligament",
    "Medial: Pisiform bone",
    "Lateral: Hook of hamate",
  ], C.teal, true);
  infoBox(s, 0.2, 2.75, 4.55, 1.2, "CONTENTS", [
    "Ulnar nerve (medial) — divides inside tunnel",
    "Ulnar artery (lateral)",
    "NO flexor tendons — unlike carpal tunnel (key distinction!)",
  ], C.cobalt, true);
  infoBox(s, 0.2, 4.05, 4.55, 1.35, "CLINICAL: Guyon's Canal Syndrome", [
    "Causes: ganglion cyst (MC), hook of hamate # (racquet sports), cyclist's palsy",
    "Proximal compression: motor + sensory loss",
    "Deep branch only: motor (claw hand, no sensory loss)",
    "Superficial branch only: sensory (medial 1½ fingers), no motor loss",
  ], C.red, true);

  s.addText("ANATOMICAL SNUFF BOX", {
    x: 5.1, y: 0.9, w: 4.7, h: 0.35, fontSize: 11, bold: true, color: C.cobalt, fontFace: "Calibri"
  });
  infoBox(s, 5.1, 1.3, 4.7, 1.3, "BOUNDARIES", [
    "Posterior/medial border: Extensor pollicis longus tendon",
    "Anterior/lateral border: Abductor pollicis longus + Extensor pollicis brevis",
    "Proximal end: Radial styloid process",
    "Floor: Scaphoid (proximal) + Trapezium (distal)",
  ], C.cobalt, true);
  infoBox(s, 5.1, 2.75, 4.7, 1.2, "CONTENTS", [
    "Radial artery — palpable pulse in the floor",
    "Superficial branch of radial nerve (roof)",
    "Cephalic vein crosses the roof",
  ], C.teal, true);
  infoBox(s, 5.1, 4.05, 4.7, 1.35, "CLINICAL PEARLS", [
    "Snuff box tenderness = SCAPHOID FRACTURE until proven otherwise",
    "Even with normal X-ray → immobilize + repeat/MRI",
    "AVN of proximal scaphoid: blood supply enters distally → fracture at waist cuts off proximal pole",
    "De Quervain's tenosynovitis: APL + EPB inflammation (Finkelstein's test)",
  ], C.red, true);
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 11 — HAND COMPARTMENTS & SPACES
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "Compartments & Potential Spaces of the Hand", C.cobalt);

  infoBox(s, 0.2, 0.9, 2.2, 2.3, "THENAR COMPARTMENT", [
    "Abductor pollicis brevis",
    "Opponens pollicis",
    "Flexor pollicis brevis (sup. head)",
    "Nerve: Recurrent branch of median n.",
  ], C.cobalt, true);

  infoBox(s, 2.55, 0.9, 2.2, 2.3, "HYPOTHENAR COMPARTMENT", [
    "Abductor digiti minimi",
    "Opponens digiti minimi",
    "Flexor digiti minimi brevis",
    "Nerve: Deep branch of ulnar n.",
  ], C.teal, true);

  infoBox(s, 4.9, 0.9, 2.3, 2.3, "INTEROSSEOUS COMPARTMENTS", [
    "4 Dorsal interossei — DAB (Dorsals ABduct)",
    "3 Palmar interossei — PAD (Palmars ADduct)",
    "All: deep branch of ulnar nerve",
    "Adductor pollicis also in this zone",
  ], C.gold, true);

  infoBox(s, 7.35, 0.9, 2.45, 2.3, "CENTRAL/PALMAR COMPARTMENT", [
    "Flexor tendons + synovial sheaths",
    "Lumbricals (1,2: median; 3,4: ulnar)",
    "Superficial palmar arch",
    "Median + ulnar nerve branches",
  ], C.cobalt, true);

  // Palmar spaces
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.2, y: 3.32, w: 9.6, h: 0.28,
    fill: { color: C.cobalt }, line: { width: 0 }
  });
  s.addText("POTENTIAL SPACES (Deep Palmar Spaces — clinically critical for infection spread)", {
    x: 0.2, y: 3.32, w: 9.6, h: 0.28, fontSize: 10.5, bold: true, color: C.white, align: "center", valign: "middle", margin: 0
  });

  infoBox(s, 0.2, 3.72, 3.0, 1.75, "THENAR SPACE", [
    "Deep to flexor tendon of index finger",
    "Superficial to adductor pollicis",
    "Infection: 'Ballooning' of thenar eminence",
    "Thumb held abducted, index fixed",
  ], C.cobalt, true);

  infoBox(s, 3.35, 3.72, 3.0, 1.75, "MIDDLE PALMAR SPACE", [
    "Deep to flexor tendons of middle/ring/little",
    "Superficial to 3rd-5th metacarpals + interossei",
    "Infection: Loss of palmar concavity",
    "Dorsal edema (NOT dorsal infection!)",
  ], C.teal, true);

  infoBox(s, 6.5, 3.72, 3.3, 1.75, "PARONA'S SPACE & HORSESHOE ABSCESS", [
    "Parona's space: distal forearm, anterior to pronator quadratus",
    "Both palmar spaces communicate proximally with Parona's space",
    "Horseshoe abscess: ulnar bursa infection tracks to radial bursa via Parona's space",
    "Collar-stud abscess: subaponeurotic infection perforates palmar fascia",
  ], C.gold, true);

  s.addText("★  Septum between thenar + middle palmar space is attached to the 3rd METACARPAL — know which side of this septum an infection lies", {
    x: 0.2, y: 5.42, w: 9.6, h: 0.3, fontSize: 9, italic: true, color: C.red, align: "center", fontFace: "Calibri"
  });
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 12 — SECTION: CLINICAL CASES
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  sectionHeader(s, 3, "Clinical Cases");
  s.addText("Test your anatomy with real-world scenarios", {
    x: 2.8, y: 3.2, w: 7, h: 0.5, fontSize: 15, italic: true,
    color: C.lgrey, fontFace: "Calibri"
  });
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 13 — CLINICAL CASE 1: SHOULDER DISLOCATION
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  clinicalSlide(s, "Case 1 — Shoulder Dislocation After a Fall");

  // Case vignette
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.2, y: 0.9, w: 9.6, h: 0.9,
    fill: { color: "1A1A2E" }, line: { color: C.red, width: 1.5 }
  });
  s.addText("A 24-year-old male falls on his outstretched arm during a rugby tackle. He presents with the arm held in slight abduction and external rotation, shoulder looks 'flat,' and there is a palpable hollow below the acromion. Axillary nerve territory numbness is noted.", {
    x: 0.35, y: 0.93, w: 9.3, h: 0.84,
    fontSize: 10.5, color: C.white, fontFace: "Calibri", italic: true, valign: "middle"
  });

  infoBox(s, 0.2, 1.95, 3.0, 3.45, "DIAGNOSIS & TYPE", [
    "Anterior (subcoracoid) dislocation — 95% of all shoulder dislocations",
    "Mechanism: Forcible external rotation + abduction",
    "Head moves anteroinferiorly",
    "Posterior dislocation (rare, <3%): electric shock / seizure",
    "  → 'light bulb sign' on AP X-ray",
    "  → arm in internal rotation",
  ], C.red, false);

  infoBox(s, 3.35, 1.95, 3.2, 3.45, "COMPLICATIONS", [
    "Axillary nerve (most common) → deltoid atrophy + lateral arm sensory loss",
    "Bankart lesion: torn anterior-inferior glenoid labrum → recurrent dislocation",
    "Hill-Sachs lesion: posterolateral humeral head impaction fracture",
    "Axillary artery injury (rare) — check radial pulse",
    "Rotator cuff tear (esp. in elderly)",
  ], C.gold, false);

  infoBox(s, 6.7, 1.95, 3.1, 3.45, "ANATOMY LINKS", [
    "Inferior GHL most important stabilizer (torn in anterior dislocation)",
    "Test axillary nerve: sensation over 'regimental badge area' (lateral deltoid)",
    "Test motor: deltoid abduction (15-90°)",
    "Quadrangular space: axillary n + post. circumflex humeral a",
    "Recurrent dislocation → Bankart repair (labral reattachment)",
  ], C.teal, false);

  s.addText("KEY POINT: Axillary nerve = most commonly injured nerve in shoulder dislocation. Always test before and after reduction.", {
    x: 0.2, y: 5.38, w: 9.6, h: 0.35, fontSize: 10, bold: true,
    color: C.gold, fontFace: "Calibri", align: "center"
  });
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 14 — CLINICAL CASE 2: SUPRACONDYLAR FRACTURE
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  clinicalSlide(s, "Case 2 — Child with Elbow Injury After FOOSH");

  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.2, y: 0.9, w: 9.6, h: 0.9,
    fill: { color: "1A1A2E" }, line: { color: C.red, width: 1.5 }
  });
  s.addText("A 7-year-old child falls on an outstretched hand. The elbow is swollen, painful, and held slightly flexed. X-ray shows a posterior fat pad sign and a transverse fracture above the epicondyles. Radial pulse is diminished. The forearm appears pale and painful on passive finger extension.", {
    x: 0.35, y: 0.93, w: 9.3, h: 0.84,
    fontSize: 10.5, color: C.white, fontFace: "Calibri", italic: true, valign: "middle"
  });

  infoBox(s, 0.2, 1.95, 3.0, 3.45, "DIAGNOSIS", [
    "Supracondylar fracture of humerus",
    "Most common elbow fracture in children",
    "Extension type (98%): distal fragment displaces POSTERIORLY",
    "Mechanism: triceps pull + momentum",
    "FOOSH = Fall on Outstretched Hand",
  ], C.red, false);

  infoBox(s, 3.35, 1.95, 3.2, 3.45, "COMPLICATIONS", [
    "Brachial artery injury (bowstrings over proximal fragment)",
    "Anterior interosseous nerve injury (branch of median n.)",
    "Volkmann's ischemic contracture: forearm flexor muscles necrose → fixed contracture",
    "Cubitus varus (gunstock deformity) after malunion",
    "Posterior fat pad ALWAYS abnormal → occult fracture",
  ], C.gold, false);

  infoBox(s, 6.7, 1.95, 3.1, 3.45, "ANATOMY LINKS", [
    "Elbow fat pads: coronoid fossa (ant.), olecranon fossa (post.), radial fossa",
    "Posterior fat pad visible on lateral X-ray = EMERGENCY",
    "Brachial artery lies in cubital fossa medial to biceps tendon",
    "Carrying angle: normal 7° valgus; cubitus varus after malunion",
    "Check CRITOE ossification centers in children",
  ], C.teal, false);

  s.addText("CRITOE mnemonic (age of ossification): Capitellum 1 · Radial head 3 · Internal (medial) epicondyle 5 · Trochlea 7 · Olecranon 9 · External (lateral) epicondyle 11", {
    x: 0.2, y: 5.38, w: 9.6, h: 0.35, fontSize: 9.5, bold: true,
    color: C.gold, fontFace: "Calibri", align: "center"
  });
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 15 — CLINICAL CASE 3: SCAPHOID FRACTURE
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  clinicalSlide(s, "Case 3 — Wrist Pain After FOOSH (Normal X-ray)");

  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.2, y: 0.9, w: 9.6, h: 0.9,
    fill: { color: "1A1A2E" }, line: { color: C.red, width: 1.5 }
  });
  s.addText("An 18-year-old skateboarder falls and braces with his outstretched hand. He has wrist pain, with point tenderness in the anatomical snuff box and over the scaphoid tubercle. X-rays are reported as normal. He is discharged without treatment. He returns 6 weeks later with worsening pain.", {
    x: 0.35, y: 0.93, w: 9.3, h: 0.84,
    fontSize: 10.5, color: C.white, fontFace: "Calibri", italic: true, valign: "middle"
  });

  infoBox(s, 0.2, 1.95, 3.1, 3.45, "DIAGNOSIS & LESSON", [
    "Scaphoid fracture (most common carpal fracture ~70%)",
    "Normal X-ray does NOT rule out scaphoid fracture",
    "ACTION: Immobilize in scaphoid cast → repeat X-ray at 10-14 days or MRI/CT",
    "Failure to diagnose = AVN of proximal pole",
    "Never dismiss snuff box tenderness!",
  ], C.red, false);

  infoBox(s, 3.45, 1.95, 3.1, 3.45, "ANATOMY OF AVN RISK", [
    "Radial artery enters scaphoid DISTALLY",
    "In ~10%: sole blood supply is distal → proximal",
    "Fracture at waist cuts off blood to proximal pole",
    "Proximal pole appears SCLEROTIC (white) on X-ray = AVN",
    "Kienbock's disease = same mechanism for LUNATE",
  ], C.gold, false);

  infoBox(s, 6.7, 1.95, 3.1, 3.45, "SNUFF BOX & DE QUERVAIN'S", [
    "Snuff box boundaries: EPL (posterior), APL + EPB (anterior)",
    "Floor: Scaphoid (proximal) + Trapezium (distal)",
    "Radial artery pulse palpable in floor",
    "De Quervain's: inflammation of APL + EPB in 1st extensor compartment",
    "  → Finkelstein's test positive",
    "  → Common in new mothers",
  ], C.teal, false);

  s.addText("KEY POINT: Snuff box tenderness = scaphoid fracture UNTIL PROVEN OTHERWISE — even with normal X-ray. Always immobilize and follow up.", {
    x: 0.2, y: 5.38, w: 9.6, h: 0.35, fontSize: 10, bold: true,
    color: C.gold, fontFace: "Calibri", align: "center"
  });
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 16 — CLINICAL CASE 4: ULNAR NERVE / HAND SPACES
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  clinicalSlide(s, "Case 4 — Cyclist with Hand Weakness & Palmar Infection");

  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.2, y: 0.9, w: 9.6, h: 0.9,
    fill: { color: "1A1A2E" }, line: { color: C.red, width: 1.5 }
  });
  s.addText("Case A: A 35-year-old cyclist has progressive weakness of grip and intrinsic muscles of the right hand after a cycling tour. No sensory loss. Pinch grip weak. Froment's sign positive.  |  Case B: A laborer presents with a swollen, tender palm, loss of normal palmar concavity, and marked dorsal hand edema. He had a puncture wound to his palm 5 days ago.", {
    x: 0.35, y: 0.93, w: 9.3, h: 0.84,
    fontSize: 10, color: C.white, fontFace: "Calibri", italic: true, valign: "middle"
  });

  infoBox(s, 0.2, 1.95, 4.6, 3.45, "CASE A: CYCLIST'S PALSY (Guyon's Canal Syndrome)", [
    "Handlebar pressure compresses ulnar nerve at deep branch level",
    "Motor loss only (deep branch): all interossei, hypothenar muscles, adductor pollicis, medial 2 lumbricals",
    "Froment's sign: patient uses FPL (median n.) to substitute for adductor pollicis (ulnar n.)",
    "Claw deformity: ring + little fingers (MCP hyperextension, IP flexion)",
    "No sensory loss = deep branch only affected (branching distal to sensory fibers)",
    "vs. Carpal tunnel syndrome: median n., sensory loss (thumb/index/middle), thenar wasting",
  ], C.red, false);

  infoBox(s, 5.0, 1.95, 4.8, 3.45, "CASE B: MIDDLE PALMAR SPACE INFECTION", [
    "Puncture wound → infection of middle palmar space",
    "Loss of palmar concavity (normal palm curves inward — infection obliterates this)",
    "Dorsal swelling is MISLEADING — palmar skin is thick, so pus tracks dorsally",
    "Management: surgical drainage through palmar approach",
    "Thenar space infection: 'ballooning' of thenar eminence; thumb held abducted",
    "Horseshoe abscess: infection in ulnar bursa tracks via Parona's space to radial bursa — surgical emergency",
    "Collar-stud abscess: deep pus perforates palmar fascia → bilobed abscess",
  ], C.teal, false);

  s.addText("★  Dorsal hand swelling does NOT mean dorsal infection. Palpate the palm. Track infection spread: palmar space → Parona's space → forearm.", {
    x: 0.2, y: 5.38, w: 9.6, h: 0.35, fontSize: 9.5, bold: true,
    color: C.gold, fontFace: "Calibri", align: "center"
  });
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 17 — DISTINCTION POINTS SUMMARY
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addSlideBg(s, C.navy);
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 10, h: 0.72, fill: { color: C.gold }, line: { width: 0 }
  });
  s.addText("★  TOP DISTINCTION-SCORING POINTS", {
    x: 0.3, y: 0.1, w: 9.4, h: 0.52, fontSize: 18, bold: true,
    color: C.navy, fontFace: "Calibri", valign: "middle", charSpacing: 1
  });

  const points = [
    ["1", "The SC joint is the ONLY bony connection between the upper limb skeleton and the axial skeleton — and it has an articular DISC (fibrocartilage)."],
    ["2", "The shoulder joint is the most mobile yet most commonly dislocated joint. Stability is provided by SITS, not bone architecture."],
    ["3", "All 3 elbow articulations share ONE synovial cavity. Injecting one treats all."],
    ["4", "Ulna does NOT directly articulate with carpals. TFCC/articular disc intervenes."],
    ["5", "Ulnar nerve does NOT pass through cubital fossa — it goes posterior to medial epicondyle (ulnar groove)."],
    ["6", "Radial nerve is NOT inside the cubital fossa — it lies deep to brachioradialis."],
    ["7", "Posterior fat pad on lateral elbow X-ray is ALWAYS abnormal — hemarthrosis / effusion."],
    ["8", "Snuff box tenderness = scaphoid fracture even with NORMAL X-rays. Immobilize."],
    ["9", "Dorsal hand swelling ≠ dorsal infection. Even palmar space infections cause dorsal edema."],
    ["10", "Posterior shoulder dislocation = electric shock / seizure → 'light bulb sign' on AP X-ray."],
    ["11", "Triangular interval is the MOST DISTAL of the 3 posterior shoulder spaces → carries radial nerve."],
    ["12", "Thenar + middle palmar spaces are separated by a septum attached to the 3rd METACARPAL."],
  ];

  const mid = Math.ceil(points.length / 2);
  points.forEach((p, i) => {
    const col = i < mid ? 0 : 1;
    const row = i < mid ? i : i - mid;
    const x = 0.2 + col * 4.95;
    const y = 0.88 + row * 0.57;

    s.addShape(pres.shapes.OVAL, {
      x, y: y + 0.05, w: 0.38, h: 0.38,
      fill: { color: C.gold }, line: { width: 0 }
    });
    s.addText(p[0], {
      x, y: y + 0.05, w: 0.38, h: 0.38,
      fontSize: 10, bold: true, color: C.navy, align: "center", valign: "middle"
    });
    s.addText(p[1], {
      x: x + 0.44, y, w: 4.35, h: 0.55,
      fontSize: 9, color: C.lgrey, fontFace: "Calibri", valign: "middle", wrap: true
    });
  });
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 18 — MNEMONICS REFERENCE
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "Mnemonics Quick Reference — Upper Limb", C.cobalt);

  const mnems = [
    { mnem: "SITS", full: "Rotator Cuff Muscles", detail: "Supraspinatus · Infraspinatus · Teres minor · Subscapularis", color: C.cobalt },
    { mnem: "TAN", full: "Cubital Fossa Contents (Lat→Med)", detail: "Tendon of biceps · Artery (brachial) · Nerve (median)", color: C.teal },
    { mnem: "QTT", full: "3 Posterior Shoulder Spaces", detail: "Quadrangular (axillary n.) · Triangular (circumflex scapular) · Triangular Interval (radial n.)", color: C.gold },
    { mnem: "1-2-3", full: "Axillary Artery Branches", detail: "Part 1: 1 branch · Part 2: 2 branches · Part 3: 3 branches", color: C.cobalt },
    { mnem: "BALMS", full: "Contents of Axilla", detail: "Brachial plexus · Axillary a/v · Lymph nodes · Muscles · Subscapular vessels", color: C.teal },
    { mnem: "P-H", full: "Ulnar Tunnel (Guyon's Canal)", detail: "Pisiform (medial) · Hook of Hamate (lateral) = walls of the tunnel", color: C.cobalt },
    { mnem: "S-T", full: "Anatomical Snuff Box Floor", detail: "Scaphoid (proximal) · Trapezium (distal)", color: C.gold },
    { mnem: "DAB / PAD", full: "Interossei Actions", detail: "Dorsal interossei ABduct · Palmar interossei ADduct", color: C.teal },
    { mnem: "CRITOE", full: "Elbow Ossification Centers (children)", detail: "Capitellum 1 · Radial head 3 · Internal epicondyle 5 · Trochlea 7 · Olecranon 9 · External epicondyle 11", color: C.cobalt },
    { mnem: "FOOSH", full: "Mechanism of Common UL Fractures", detail: "Fall On OutStretched Hand → scaphoid, radial head, supracondylar, Colles' fracture", color: C.red },
  ];

  const cols = 2;
  const rows = Math.ceil(mnems.length / cols);
  mnems.forEach((m, i) => {
    const col = i % cols;
    const row = Math.floor(i / cols);
    const x = 0.2 + col * 4.95;
    const y = 0.92 + row * 0.88;

    s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
      x, y, w: 4.7, h: 0.8,
      fill: { color: C.white }, rectRadius: 0.07,
      shadow: { type: "outer", color: "000000", blur: 4, offset: 1, angle: 135, opacity: 0.1 }
    });
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
      x, y, w: 1.1, h: 0.8,
      fill: { color: m.color, transparency: 10 }, rectRadius: 0.07, line: { width: 0 }
    });
    s.addText(m.mnem, {
      x, y, w: 1.1, h: 0.8,
      fontSize: 14, bold: true, color: C.white, fontFace: "Calibri",
      align: "center", valign: "middle"
    });
    s.addText(m.full, {
      x: x + 1.15, y: y + 0.04, w: 3.5, h: 0.28,
      fontSize: 9.5, bold: true, color: m.color, fontFace: "Calibri", valign: "middle"
    });
    s.addText(m.detail, {
      x: x + 1.15, y: y + 0.35, w: 3.5, h: 0.42,
      fontSize: 8.5, color: C.midgrey, fontFace: "Calibri", valign: "middle", wrap: true
    });
  });
}

// ═══════════════════════════════════════════════════════════════════════════
//  SLIDE 19 — THANK YOU / END
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addSlideBg(s, C.navy);
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: C.gold }, line: { width: 0 }
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 4.5, w: 10, h: 1.125, fill: { color: C.cobalt }, line: { width: 0 }
  });
  s.addText("Upper Limb Anatomy", {
    x: 1, y: 0.8, w: 8, h: 0.7, fontSize: 18, bold: true, charSpacing: 3,
    color: C.gold, fontFace: "Calibri", align: "center"
  });
  s.addText("Joints · Landmarks · Clinical Applications", {
    x: 1, y: 1.55, w: 8, h: 0.55, fontSize: 22, bold: true,
    color: C.white, fontFace: "Calibri", align: "center"
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x: 3.5, y: 2.28, w: 3, h: 0.04, fill: { color: C.gold }, line: { width: 0 }
  });

  const recap = [
    "8 Joint groups: GH · AC · SC · Elbow · Wrist · CMC · MCP · IP",
    "3 Posterior spaces: Quadrangular · Triangular · Triangular Interval",
    "Cubital fossa: TAN (Tendon · Artery · Nerve)",
    "Ulnar tunnel: Pisiform–Hamate frame",
    "Snuff box tenderness = scaphoid fracture (even with normal X-ray)",
    "Dorsal swelling ≠ dorsal infection — always examine the palm",
  ];
  recap.forEach((r, i) => {
    s.addText("✓  " + r, {
      x: 1.5, y: 2.5 + i * 0.31, w: 7, h: 0.3,
      fontSize: 11, color: C.lgrey, fontFace: "Calibri", valign: "middle"
    });
  });

  s.addText("MS1 Anatomy  •  Upper Limb Module  •  Good luck!", {
    x: 0, y: 4.55, w: 10, h: 0.55,
    fontSize: 13, bold: true, italic: true, color: C.white,
    fontFace: "Calibri", align: "center", valign: "middle"
  });
}

// ─── WRITE ──────────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/upper-limb-ppt/Upper_Limb_Joints_and_Landmarks.pptx" })
  .then(() => console.log("DONE"))
  .catch(e => { console.error(e); process.exit(1); });
Running Command

cd /home/daytona/workspace/upper-limb-ppt && node generate.js 2>&1

Running Command

ls -lh /home/daytona/workspace/upper-limb-ppt/

Your presentation is ready - 461 KB, 19 slides:

Upper Limb Joints and Landmarks

Presentation · PPTX


What's inside (19 slides):

SlidesContent
1Title slide - Navy + cobalt + gold palette with topic outline
2Section break - Joints of the Upper Limb
3Shoulder (GH) Joint - ligaments, SITS rotator cuff, distinction points
4Elbow Joint - 3 articulations, shared synovial cavity, fat pads, X-ray signs
5Wrist & Hand Joints - full table (all 6 joint types, movements, bones)
6Section break - Landmarks
7Axilla - all 6 boundaries, BALMS contents, axillary artery 1-2-3 rule
83 Posterior Shoulder Spaces - QTT side-by-side with boundaries, contents, clinicals
9Cubital Fossa - TAN diagram, bicipital aponeurosis, clinical layering
10Ulnar Tunnel + Anatomical Snuff Box - boundaries, contents, clinicals side by side
11Hand Compartments & Spaces - all 4 compartments + palmar spaces + Parona's + horseshoe abscess
12Section break - Clinical Cases
13Case 1 - Shoulder dislocation + axillary nerve injury
14Case 2 - Supracondylar fracture + Volkmann's + CRITOE mnemonic
15Case 3 - Scaphoid fracture with normal X-ray + AVN
16Case 4 - Cyclist's palsy (Guyon's canal) + palmar space infection
1712 Distinction-scoring points summary
18Mnemonics reference - all 10 mnemonics (SITS, TAN, QTT, CRITOE, etc.)
19Closing recap slide
This is a shared conversation. Sign in to Orris to start your own chat.