Analyse this and create a blueprint outline for this seminar, give detailed information step to step guide, take references from standard textbooks and articles

Reading File
Running Command

cd /home/daytona/workspace/attachments/8bef5303-385b-40bb-bcfd-4215d2ba4441/ && …

Running Command

cd /home/daytona/workspace/attachments/8bef5303-385b-40bb-bcfd-4215d2ba4441/ && …

Reading File
Searching PubMed

"surgical anatomy" AND "head neck" AND "oral maxillofacial"

Finding Sources
Finding Sources
Searching PubMed

"facial nerve" AND "surgical anatomy" AND "head neck"

Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources

Seminar Blueprint: Surgical Anatomy of the Head and Neck

Department of Oral and Maxillofacial Surgery | Presenter: Dr. Hrushikesh Acharya (JR1) Date: 26 June 2026 | Duration: Recommended 90-120 minutes

SEMINAR OVERVIEW

Topic: Surgical Anatomy of the Head and Neck - a region-by-region, layer-by-layer guide integrating anatomical principles with direct surgical application, complications, and emerging technologies.
Target Audience: Junior residents, senior residents, and faculty in OMFS; interdisciplinary audience from ENT, Plastic Surgery, and Neurosurgery.
Learning Objectives:
  1. Identify the layered anatomy of each region from skin to bone in a consistent, reproducible manner.
  2. Correlate each anatomical layer with the surgical approaches that use it.
  3. Recognize the structures at risk in common OMFS procedures.
  4. Apply anatomical knowledge to prevent, recognize, and manage complications.
Core Textbook References (as cited in the seminar):
  • Fonseca - Oral and Maxillofacial Surgery (multivolume)
  • Miloro - Peterson's Principles of Oral and Maxillofacial Surgery
  • Ellis & Zide - Surgical Approaches to the Facial Skeleton (definitive approach reference)
  • Kademani & Tiwana - Atlas of Oral and Maxillofacial Surgery
  • Brennan - Clinical Head & Neck Anatomy for Surgeons
  • Standring - Gray's Anatomy
  • Norton - Netter's Head and Neck Anatomy for Dentistry
Key Articles:
  • Seddon HJ. Brain 1943 - nerve injury classification (neuropraxia/axonotmesis/neurotmesis)
  • Sunderland S. Brain 1951 - 5-grade nerve injury system
  • Champy M. 1978 - ideal osteosynthesis lines in the mandible
  • Markowitz & Manson. 1991 - NOE fracture classification
  • Pitanguy I & Ramos AS. 1966 - frontal branch course ("Pitanguy's line")
  • Renton T & Van der Cruyssen F. 2020 - nerve injury in oral surgery

STEP-BY-STEP SEMINAR BLUEPRINT


MODULE 1: THE UNIVERSAL TEMPLATE - LAYERS OF HEAD AND NECK (Slides 1-2)

Time: ~10 minutes

1.1 The Seven-Layer Model (Applied top-to-bottom, region-by-region throughout the seminar)

Present a single labeled "master cross-section" of the cheek as the template used for every subsequent region:
LayerContentSurgical Significance
1. SkinVaries: thickest at scalp, thinnest at eyelidIncision design; flap planning
2. Subcutaneous fatFacial fat compartments; superficial vessels; sensory nervesCompartment shifts in aging; graft site
3. SMAS / Muscle layerGalea → TPF → SMAS → platysma (one continuous sheet)The plane of face-lifts; motor nerve protection
4. Deep (investing) fasciaParotid-masseteric fascia (face); deep cervical fascia (neck)Boundary of safe dissection zones
5. Sub-fascial planeMotor nerve branches, ducts, deep vessels, glandsHighest-risk surgical plane
6. PeriosteumElevatable as a vascularized flapPericranial flap harvest
7. BoneCortical tables, buttressesFixation; osteotomy lines
Golden Rule: Motor (facial) nerve branches lie deep to the SMAS. Staying superficial to the SMAS keeps you safe. Reference: Brennan - Clinical Head & Neck Anatomy for Surgeons; Cummings Otolaryngology - SMAS anatomic considerations

1.2 SMAS Continuity - The Superficial Muscular Sheet

  • Galea aponeurotica (scalp) → Temporoparietal fascia / TPF (temple, carries frontal branch CN VII) → SMAS (midface) → Platysma (neck)
  • Deep fascia continuity: deep temporal fascia → parotid-masseteric fascia → investing layer of deep cervical fascia
  • The Danger Space: between alar fascia and prevertebral fascia. Infection here tracks from skull base to mediastinum - descending necrotizing mediastinitis.
Reference: Gray's Anatomy (Standring); Scott-Brown's Otorhinolaryngology Head & Neck Surgery - fascial layers

MODULE 2: THE SCALP (Slides 3-4)

Time: ~7 minutes

2.1 The S-C-A-L-P Mnemonic

LetterLayerKey Applied Point
SSkin - hair-bearing, thickCosmetic incisions, hair restoration
CConnective tissue - dense, richly vascularScalp wounds bleed profusely; fibrous septa hold vessels open - clamp before cutting
AAponeurosis (galea) - tension layerLacerations through galea gape; must close separately
LLoose areolar - the "danger layer"Infection and hematoma spread here; emissary veins link to dural sinuses - risk of intracranial spread
PPericranium (periosteum)Elevatable as a vascularized pericranial flap for frontal sinus obliteration and dural repair

2.2 Calvarium for Graft Harvest

  • Safe harvest zone: parietal bone, posterior to coronal suture, anterior to lambdoid suture; outer table only
  • Avoid: sagittal suture (superior sagittal sinus directly beneath); thin temporal squama
  • Why preferred: membranous bone resists resorption; same operative field; low morbidity
  • Reference: Fonseca - Oral and Maxillofacial Surgery (Reconstruction)

MODULE 3: FOREHEAD, FRONTAL SINUS, AND CORONAL APPROACH (Slides 5-10)

Time: ~12 minutes

3.1 Forehead Layers

Skin → subcutaneous fat → frontalis (continuous with galea) → loose areolar → pericranium → frontal bone
  • Procerus and corrugator at the glabella (relevant to glabellar flap and browlift)
  • Supraorbital and supratrochlear nerves/vessels exit at the supraorbital notch/foramen - located at the junction of the medial 1/3 and lateral 2/3 of the orbital rim. Protect these during coronal dissection and brow surgery.

3.2 Frontal Sinus Anatomy and Fractures

  • Anatomy: anterior and posterior tables; frontonasal duct drains to the middle meatus
  • Fracture classification drives management:
    • Anterior table alone → ORIF
    • Posterior table or duct involvement → obliteration or cranialization
    • Pericranial flap = workhorse for sinus obliteration and dural sealing
  • Reference: Ellis & Zide - Surgical Approaches to the Facial Skeleton

3.3 The Temporal Region - Seven Layers

  1. Skin
  2. Subcutaneous tissue (superficial temporal artery/vein; auriculotemporal nerve)
  3. Temporoparietal fascia (TPF) - contains the frontal branch of CN VII (most important layer to understand)
  4. Loose areolar plane - the safe dissection plane
  5. Deep temporal fascia - splits over the arch enclosing the superficial temporal fat pad
  6. Temporalis muscle
  7. Periosteum → bone
Pitanguy's Line: Tragus → 1.5 cm above the lateral brow = course of the frontal branch of CN VII. Injury occurs because the frontal branch travels superficially within the TPF as it crosses the zygomatic arch.

3.4 Coronal Approach - Safe Plane Protocol

  • Frontal region: subgaleal loose areolar plane (below galea, above pericranium)
  • Temporal region: beneath the superficial layer of deep temporal fascia to keep the frontal branch protected within the reflected flap
  • At the arch: incise the deep temporal fascia obliquely above the arch; the inter-fascial fat pad is the visual guide; strip periosteum off the arch
  • Access gained: frontal sinus, NOE complex, orbital roofs, zygomatic arches, anterior skull base
  • Pitfalls: alopecia (tension on flap), frontal branch palsy, hematoma

3.5 Temporalis Muscle

  • Origin: temporal fossa; insertion: coronoid process
  • Temporalis flap: reconstructs maxillary and orbital defects
  • Reference: Kademani & Tiwana - Atlas of Oral and Maxillofacial Surgery

MODULE 4: EYELID, PERIORBITA, AND ORBITAL ANATOMY (Slides 11-16)

Time: ~10 minutes

4.1 Eyelid Layers

Skin (thinnest in the body) → orbicularis oculi (pretarsal, preseptal, orbital parts) → orbital septum (key barrier - fat lies behind it) → preaponeurotic fat → levator aponeurosis / capsulopalpebral fascia → tarsus → conjunctiva
  • Medial canthal tendon anchors the lid complex medially (critical in NOE fractures)

4.2 Orbital Walls

  • 7 bones form the orbit
  • Thinnest walls: lamina papyracea (medial wall) and orbital floor → why blowout fractures occur here
  • Infraorbital nerve courses within the floor canal → at risk in midface trauma and orbital approaches

4.3 Orbital Fractures

  • Mechanisms: hydraulic (globe pressure transmission) vs. buckling (rim transmission)
  • Result: floor/medial wall defect → fat ± inferior rectus herniation → diplopia, enophthalmos
  • White-eyed blowout (children, trapdoor): surgical emergency due to muscle entrapment and vagal response
  • Forced duction test: distinguishes true muscle entrapment from nerve palsy
  • Reconstruction materials: titanium mesh, porous polyethylene (Medpor), resorbable plates

4.4 Orbital Approaches

ApproachPlaneRisk
Transconjunctival (preferred)Inferior fornix → preseptal or retroseptal → periorbita → floorNo scar; lowest ectropion rate
Subciliary2 mm below lashes → orbicularis → periosteumEctropion risk 5-20%
Lateral browSkin → orbicularis → periosteum → frontozygomatic sutureLimited access
Safety rules: Never dissect past the posterior third of the floor (optic nerve at risk); protect inferior rectus beneath any plate.

4.5 Orbital Emergencies

  • Retrobulbar hemorrhage = blindness emergency → immediate lateral canthotomy + inferior cantholysis
  • Reference: Ellis & Zide - Surgical Approaches to the Facial Skeleton

MODULE 5: MIDFACE - SMAS, BUTTRESSES, LE FORT FRACTURES (Slides 17-22)

Time: ~12 minutes

5.1 Midface Soft Tissue Layers

Skin → subcutaneous fat (nasolabial, malar, jowl compartments) → SMAS (with mimetic muscles: zygomaticus major/minor, levator labii embedded within) → parotid-masseteric fascia → sub-SMAS plane (facial nerve branches, parotid duct, buccal fat pad) → periosteum → bone
  • Key muscles: orbicularis oris (cleft lip surgery), buccinator (pierced by Stensen's duct), mentalis (must be resutured in chin surgery)
SMAS defined: "A condensed fibromuscular layer contiguous with the platysma, situated below the subcutaneous fat and over the mimetic musculature and motor branches of the facial nerve" - Mitz & Peyronie 1974, as cited in Scott-Brown's Otorhinolaryngology

5.2 Midface Skeletal Buttresses

  • Vertical: nasomaxillary, zygomaticomaxillary, pterygomaxillary
  • Horizontal: frontal bar, infraorbital rim, maxillary alveolus
  • Function: transmit/absorb masticatory and traumatic forces; protect the cranium
  • Maxillary sinus: roof = orbital floor; floor = alveolus; ostium in medial wall; Schneiderian membrane lines the sinus

5.3 Le Fort Fractures

PatternLineKey Features
Le Fort IHorizontal "floating palate"Separates alveolus + palate from mid-face
Le Fort IIPyramidalCrosses nasofrontal suture, orbital floor, pterygoids
Le Fort IIICraniofacial disjunctionComplete separation of facial skeleton from cranium
  • Originally from René Le Fort's cadaver experiments; modern high-energy trauma often creates mixed patterns
  • Highest hemorrhage risk: Le Fort II/III (maxillary artery, unfavorable pterygoid fractures)
  • Additional risks: CSF rhinorrhea (Le Fort II/III); commonest long-term complication = malocclusion from imperfect reduction

5.4 The Palate and Pterygomaxillary Region

  • Greater palatine foramen: medial to the 3rd molar (~1 cm from the gingival margin); greater palatine artery runs anteriorly to the incisive canal
  • Pterygopalatine fossa / pterygomaxillary junction: descending palatine, sphenopalatine, and maxillary artery - the Le Fort I danger zone
  • Cleft palate: abnormal levator veli palatini insertion; key repairs - Furlow Z-plasty, Von Langenbeck; Rule of 10s timing

5.5 Le Fort I Osteotomy (Surgical Application)

  • Approach layers: upper buccal sulcus mucosa → submucosa (PSA branches) → buccinator → periosteum → pyriform rim exposure
  • Osteotomy sequence:
    1. Lateral nasal wall
    2. Anterior maxillary wall (5 mm above root apices)
    3. ZM buttress
    4. Pterygomaxillary junction (most dangerous step)
    5. Nasal septum
    6. Downfracture (Rowe forceps)
  • Post-downfracture structures at risk: descending palatine artery, pterygoid plates, greater palatine pedicle
  • Hemorrhage control: precise osteotome placement → packing → maxillary artery ligation → embolization

MODULE 6: THE NOSE AND NOE COMPLEX (Slides 23-26)

Time: ~7 minutes

6.1 Nasal Layers

Skin (thick at tip, thin at dorsum) → subcutaneous/SMAS → nasal muscles → perichondrium/periosteum → cartilage framework (upper lateral, lower lateral, septal cartilages) → nasal bones → mucosa
  • Internal nasal valve = narrowest airway point - key in functional rhinoplasty
  • Blood supply: angular artery (external) + sphenopalatine artery branches internally (epistaxis source)

6.2 NOE Fractures

  • Central fragment bears the medial canthal tendon (MCT)
  • Markowitz-Manson Classification:
    • Type I: single fragment, MCT intact
    • Type II: comminuted, MCT attached to a fragment
    • Type III: comminuted, MCT detached
  • Risks: telecanthus, nasolacrimal duct obstruction, CSF leak
  • Management: transnasal wiring to reposition and secure the MCT
  • Reference: Markowitz & Manson, Plastic and Reconstructive Surgery 1991

MODULE 7: ZYGOMATICOMAXILLARY COMPLEX (Slides 27-28)

Time: ~5 minutes

7.1 ZMC Anatomy

  • Four articulations (tetrapod): frontozygomatic, zygomaticomaxillary, zygomaticotemporal, zygomaticosphenoid
  • Infraorbital nerve most commonly affected sensory structure in midface trauma

7.2 Fracture Classifications

  • Knight & North; Zingg

7.3 Approaches

ApproachAccessRisk
Gillies temporalHairline → TPF → deep temporal fascia → temporalis → elevator under archMinimal; most useful for arch reduction
Keen intraoralUpper buccal sulcus behind ZM buttressPSA artery injury; pterygoid plexus hemorrhage

MODULE 8: PAROTID GLAND AND PAROTIDECTOMY (Slides 29-32)

Time: ~10 minutes

8.1 Parotid Layers (Superficial to Deep)

Skin → subcutaneous → SMAS → parotid capsule (investing fascia) → parenchyma containing:
  1. Facial nerve branches (most superficial within the gland)
  2. Retromandibular vein (the landmark within the deep gland)
  3. External carotid artery (deepest)
  • Auriculotemporal nerve (V3): traverses the gland (carries parasympathetic secretomotor fibers - Frey syndrome pathway)
  • Stensen's duct: opens into the oral cavity opposite the upper 2nd molar

8.2 Why Facial Nerve Injury Occurs

The facial nerve divides the gland into superficial and deep lobes. Surgery demands identification of the main trunk before dissection.

8.3 Parotidectomy - Step-by-Step

  1. Incision: Modified Blair incision (preauricular + submandibular extension)
  2. Flap elevation: Raise superficial flap just superficial to the capsule
  3. Facial nerve trunk identification - three triangulating landmarks:
    • 1 cm deep and inferior to the tragal pointer
    • 6-8 mm deep to the tympanomastoid suture
    • Superior to the posterior belly of digastric
    • (Alternative: retrograde identification from a peripheral branch)
  4. Superficial lobe dissection: dissect off the nerve trunk; meticulous branch dissection
  5. Deep lobe: requires meticulous dissection around nerve branches
  6. Frey syndrome prevention: SMAS or AlloDerm interposition barrier between the skin and the gland bed
  • Reference: Miloro - Peterson's Principles of Oral and Maxillofacial Surgery

MODULE 9: THE TEMPOROMANDIBULAR JOINT (Slides 33-36)

Time: ~8 minutes

9.1 TMJ Surgical Anatomy - Layers

Skin → subcutaneous (superficial temporal vessels, auriculotemporal nerve) → TPF → deep temporal fascia → periosteum → capsule → superior joint space → disc → condyle
  • Disc: biconcave fibrocartilaginous; bilaminar (retrodiscal) zone is vascular and innervated (source of pain in internal derangement)
  • Blood supply: superficial temporal and maxillary arteries
  • Innervation: auriculotemporal nerve (V3)

9.2 TMJ Procedures

ProcedureAccessNotes
ArthrocentesisHolmlund-Hellsing line (tragus-lateral canthus)Needle entry using the line; minimal
ArthroscopySuperior joint spaceAvoid the thin fossa roof
Open surgery / TJRPreauricular or endauralHighest facial nerve risk

9.3 Condylar Fractures

  • Classification: intracapsular / neck / subcondylar
  • Displacement: medial (lateral pterygoid pull on the condylar neck)
  • ORIF approaches:
    • Retromandibular approach (through parotid - highest CN VII risk; retromandibular vein = key landmark)
    • Endoscope-assisted transoral (no cutaneous scar, less nerve risk)
  • Open indications: dislocation into middle cranial fossa; foreign body; lateral displacement; unobtainable occlusion

9.4 Infratemporal Fossa (Adjacent Anatomy)

  • Boundaries: lateral pterygoid plate, greater wing of sphenoid, mandibular ramus
  • Contents: pterygoid muscles, pterygoid venous plexus (most dangerous venous bleed in the region), maxillary artery (variable relation to lateral pterygoid), V3, otic ganglion, chorda tympani, middle meningeal artery (→ epidural hematoma if injured)
  • Lateral pterygoid: superior head → disc; inferior head → condylar neck (driver of disc displacement and fracture direction)

MODULE 10: MANDIBLE AND LOWER FACE (Slides 37-48)

Time: ~15 minutes

10.1 Lower Face Layers

Skin → subcutaneous → platysma / depressor muscles / mentalis → investing fascia → marginal mandibular nerve (superficial to facial vessels at the lower border) → periosteum → mandible
Critical landmark: The marginal mandibular nerve dips 1-2 cm below the inferior border of the mandible in ~20% of patients. Hence submandibular incisions are placed at least 2 cm below the inferior border.

10.2 Mandibular Anatomy and Fracture Biomechanics

  • Key landmarks: mental foramen (below 2nd premolar), mandibular foramen, lingula, antilingula, external oblique ridge
  • Weak zones (frequency): condyle 36% > body 21% > angle 20% > symphysis 14%
  • Pterygomasseteric sling (masseter + medial pterygoid) wraps the angle
  • Displacement vectors:
    • Elevators (masseter, temporalis, medial pterygoid): pull posterior fragment superiorly
    • Depressors (digastric, mylohyoid, geniohyoid): pull anterior fragment inferiorly
    • This defines favorable vs. unfavorable fractures

10.3 Inferior Alveolar and Lingual Nerves

  • IAN: runs in the mandibular canal; exits as the mental nerve below the 2nd premolar; assess buccal/lingual/inter-radicular position on CBCT before third molar surgery, BSSO, ORIF, or implant placement
  • Lingual nerve: lies submucosally on the lingual plate at the third-molar region, only 2-3 mm below the crest of bone; carries taste via chorda tympani + general sensation; injured by lingual flap elevation or elevator slip
  • Reference: Gray's Anatomy for Students - Inferior alveolar nerve; Scott-Brown's Otorhinolaryngology - mandibular nerve V3

10.4 Third Molar and Implant Anatomy

  • Third molar: IAN and lingual nerve relations; coronectomy indicated when IAN is intimate with roots
  • Classifications: Winter's (angulation); Pell & Gregory (depth and ramus relation)
  • Maxillary third molar risks: proximity to sinus; tuberosity fracture; PSA artery; pterygoid plexus
  • Implants: minimum 2 mm above IAN canal; beware the anterior loop of the mental nerve; assess sinus floor and nasopalatine canal in the maxilla; sinus-lift anatomy (Schneiderian membrane, bony septa)

10.5 Mandibular Surgical Approaches

ApproachLayersRisk
Intraoral vestibularMucosa → submucosa → mentalis/buccinator → periosteum → boneMental nerve
Submandibular (Risdon)Skin → subcutaneous → platysma → investing fascia → marginal mandibular nerve (Hayes-Martin maneuver) → pterygomasseteric sling → periosteum → boneMarginal mandibular nerve
  • Hayes-Martin maneuver: ligate the facial vein and retract the nerve superiorly on the vascular stump

10.6 Champy's Ideal Osteosynthesis Lines (1978)

  • Symphysis: 2 plates (bicortical at the inferior border, monocortical at the superior)
  • Body: 1 superior plate along the external oblique ridge
  • Angle: 1 plate along the external oblique ridge; monocortical superiorly, bicortical inferiorly
  • Reference: Champy M et al. 1978 - Journal of Maxillofacial Surgery

10.7 Orthognathic Surgery - BSSO and Genioplasty

  • BSSO (Obwegeser-Dal Pont technique):
    1. Medial cut above the lingula (horizontal)
    2. Sagittal cut along the external oblique ridge
    3. Inferior border cut
    • IAN must stay in the distal segment; risks: IAN injury (13-40% transient), bad/unfavorable split, inferior alveolar artery injury
  • Genioplasty: osteotomy at least 5 mm below the mental foramen; re-suture mentalis to prevent "witch's chin"; protect genioglossus/geniohyoid (tongue support structures)

MODULE 11: FLOOR OF MOUTH, SUBLINGUAL AND SUBMANDIBULAR (Slides 49-56)

Time: ~10 minutes

11.1 Mylohyoid - The Muscular Diaphragm

  • Divides sublingual space (above) from submandibular space (below)
  • Root apex position relative to the mylohyoid line determines abscess location and spread

11.2 Hyoglossus as the Master Landmark

RelationStructures
Superficial to hyoglossusLingual nerve, Wharton's duct, hypoglossal nerve (CN XII), sublingual gland
Deep to hyoglossusLingual artery, CN IX (glossopharyngeal), lingual vein
Lingual artery hemorrhage control: ligate deep to hyoglossus or at the ECA origin. Never ligate bilaterally - the lingual arteries are only ~2 cm apart at the midline; bilateral ligation causes tongue necrosis.

11.3 Sublingual Gland and Ranula

  • Drains via multiple ducts of Rivinus
  • Ranula: simple (marsupialization) vs. plunging (must excise the gland)
  • Wharton's duct: the lingual nerve wraps lateral → deep → medial to it; opens at the sublingual caruncle

11.4 Submandibular Triangle - "Danger Quartet"

Skin → subcutaneous → platysma → investing fascia → marginal mandibular nerve (superficial) → gland → 4 deep structures:
  1. Facial artery (enters deep, exits superficial at the anterior masseter border)
  2. Lingual nerve (superior, wraps Wharton's duct)
  3. Hypoglossal nerve (CN XII) (deepest, on hyoglossus)
  4. (Facial vein)

11.5 Submandibular Gland Excision - Step-by-Step

  1. Incision 2 cm below the mandible
  2. Through skin → subcutaneous → platysma
  3. Identify marginal mandibular nerve (Hayes-Martin: ligate facial vein, retract nerve superiorly on the stump)
  4. Double-ligate and divide the facial artery
  5. Mobilize the superficial lobe
  6. Retract the posterior border of mylohyoid posteriorly
  7. Identify and free the lingual nerve from Wharton's duct
  8. Preserve the hypoglossal nerve
  9. Ligate and divide Wharton's duct at the sublingual caruncle
  10. Remove gland
  11. Layered closure with drain

MODULE 12: NECK ANATOMY, DISSECTION, AND DEEP SPACE INFECTIONS (Slides 57-62)

Time: ~10 minutes

12.1 Cervical Fascial Layers

Skin → subcutaneous (superficial fascia) → platysma → deep cervical fascia (3 layers):
  1. Investing layer (encloses SCM, trapezius, parotid, submandibular gland)
  2. Pretracheal/visceral fascia (thyroid, trachea, esophagus)
  3. Prevertebral fascia
  • Carotid sheath: formed by contributions from all 3 layers; contains carotid artery, IJV, vagus nerve

12.2 Neck Triangles

  • Anterior triangle (4 sub-triangles): submandibular, submental, carotid, muscular
  • Posterior triangle: CN XI (spinal accessory nerve) at risk during posterior triangle dissection

12.3 Neck Vasculature

  • External carotid (8 branches); OMFS key branches: facial, lingual, maxillary, superficial temporal
  • Internal carotid: no neck branches; located in the poststyloid parapharyngeal space - must not be injured
  • Lymph node levels I-VI:
    • Tongue drains to levels IB/II/III
    • IIA/IIB split by CN XI
    • Thoracic duct enters at left level IV → chyle leak if damaged
    • Level I-III = supraomohyoid selective neck dissection (common for oral cavity SCC)

12.4 Neck Dissection Types

  • Radical → Modified radical (preserves SCM / IJV / CN XI) → Selective → Extended
  • Current trend: conservative selective dissection for staged management of oral cancer

12.5 Deep Space Infections

  • Parapharyngeal space: adjacent to carotid sheath → vascular erosion risk
  • Retropharyngeal space → descending necrotizing mediastinitis via the danger space
  • Spread pathway: odontogenic infection → parapharyngeal → retropharyngeal → danger space → mediastinum

MODULE 13: AIRWAY MANAGEMENT - TRACHEOSTOMY AND CRICOTHYROIDOTOMY (Slides 63-64)

Time: ~5 minutes

13.1 Tracheostomy Layers (Outer to Airway)

Skin → subcutaneous (anterior jugular veins) → platysma → investing fascia → strap muscles (separate in midline raphe) → pretracheal fascia → thyroid isthmus (between rings 2-4; retract or divide) → tracheal wall (Björk flap for tracheostomy tube anchoring)
  • Risks:
    • Recurrent laryngeal nerve (RLN): stay strictly in the midline
    • Thyroidea ima artery: present in 3-10%; must recognize and control
    • Brachiocephalic artery: high-riding in children → tracheoinnominate fistula risk

13.2 Cricothyroidotomy (Emergency Airway)

  • Landmarks: thyroid cartilage → cricothyroid membrane → cricoid cartilage
  • Incise the lower half of the cricothyroid membrane (avoid the superior cricothyroid artery superiorly)
  • Contraindicated in children under 12 (risk of subglottic stenosis and growth disruption)

MODULE 14: NERVE INJURY - CLASSIFICATION AND MANAGEMENT (Slides 65-70)

Time: ~8 minutes

14.1 Seddon Classification (Brain, 1943)

GradeNamePathologyRecovery
1NeuropraxiaConduction block only; axon intactFull, spontaneous
2AxonotmesisAxon lost; endoneurium intactGood, spontaneous but slower
3NeurotmesisComplete disruption of all structuresRequires surgical repair

14.2 Sunderland Classification (Brain, 1951)

GradeStructure LostPrognosis
1stConduction blockFull recovery
2ndAxonGood spontaneous recovery
3rdAxon + endoneuriumIncomplete spontaneous recovery
4thAxon + endoneurium + perineuriumPoor; surgery likely needed
5thComplete transectionSurgery required
6th (Mackinnon)Mixed gradeVariable

14.3 Assessment Protocol

  • History and examination: first and most important
  • Neurosensory testing: light touch, two-point discrimination, pinprick
  • Adjunct imaging: MRI or ultrasound for nerve continuity
  • Reassessment schedule: 1, 3, 6, and 12 months

14.4 Management

  • Sunderland 1-2: observation ± medical management (steroids, gabapentin)
  • Surgical:
    • Neurolysis (external or internal)
    • Direct neurorrhaphy for gaps < 5 mm
    • Interpositional graft for larger gaps
    • Decellularized allograft now preferred - avoids a second donor site
    • Repair ideally within 3 months

14.5 Procedure-Specific Nerve Risks

ProcedureNerve at RiskApproximate Incidence
Third molar extractionIAN0.5-5%
Third molar extractionLingual nerve0.5-2%
BSSOIAN (transient)13-40%
Implant placementIAN / mental nerveVaries
Le Fort IInfraorbitalVaries
ParotidectomyFacial nerveVaries by tumor
Submandibular excisionMarginal mandibular / hypoglossalSignificant risk
Condylar ORIFFacial nerve (marginal / frontal)Significant
House-Brackmann grading used for facial nerve function assessment post-parotidectomy and condylar surgery. Trigeminal nerve injuries are often painful (neuropathic pain + numbness), largely preventable, and require mandatory documented informed consent. Reference: Renton T & Van der Cruyssen F. 2020

MODULE 15: FRACTURE CLASSIFICATION SUMMARY (Slide 71)

Time: ~3 minutes
RegionClassification System
MandibleBy site (condyle/body/angle/symphysis) + favorable vs. unfavorable
Le FortI (horizontal) / II (pyramidal) / III (craniofacial disjunction)
ZMCKnight & North; Zingg
NOEMarkowitz-Manson Types I / II / III
CondyleIntracapsular / neck / subcondylar
Frontal sinusAnterior table / posterior table / frontonasal duct involvement

MODULE 16: COMPLICATIONS TABLE (Slide 72)

Time: ~3 minutes
ProcedureComplicationAnatomical BasisManagement
Third molarIAN/lingual nerve injuryNerve proximityObserve → microsurgery
BSSOBad split / IAN injuryThin buccal plateRe-fixate; nerve repair
Le Fort IHemorrhageMaxillary/descending palatine arteryPacking → ligation → embolization
Orbital repairBlindnessRetrobulbar hemorrhageEmergency lateral canthotomy + cantholysis
ParotidectomyFacial palsy / Frey syndromeCN VII / auriculotemporal nerveRepair / botulinum toxin
Neck dissectionChyle leakThoracic duct (left level IV)Pressure → ligation
TracheostomyTracheoinnominate fistulaBrachiocephalic artery erosionHyperinflation → surgery

MODULE 17: ELECTIVE AND NON-ELECTIVE SURGERY SPECTRUM (Slide 73)

Time: ~3 minutes
ElectiveNon-Elective
Dentoalveolar / implantsTrauma (mandible, midface, orbital fractures)
Orthognathic (BSSO, Le Fort I, genioplasty)Infections (Ludwig's angina, deep-space)
TMJ surgeryHemorrhage control
Pathology excisionAirway emergencies
Cleft repairOncologic ablation
Distraction osteogenesis
Aesthetic (rhinoplasty, blepharoplasty, rhytidectomy, bichectomy)

MODULE 18: RECONSTRUCTION, SPECIAL POPULATIONS, AND INNOVATIONS (Slides 74-78)

Time: ~7 minutes

18.1 Free Flap Reconstruction

  • Fibula flap (peroneal pedicle): gold standard for mandibular reconstruction
  • Radial forearm flap: thin, pliable - soft tissue and floor of mouth
  • ALT (anterolateral thigh): large volume defects
  • Scapular flap: composite bone and soft tissue
  • Recipient vessels: facial or superior thyroid artery; external/internal jugular vein; typically 1 artery + 2 veins

18.2 Special Populations

  • Pediatric patients:
    • Tooth buds: avoid with screws and fixation
    • Greenstick fracture pattern
    • Brachiocephalic artery is higher in the neck
    • Resorbable fixation (PLA/PGA) preferred to avoid growth restriction
  • Geriatric patients:
    • Atrophic mandible: IAN lies more superficially; higher perforation risk
    • Osteoporotic bone: use locking plates
    • Sinus pneumatization reduces available bone height
    • Anticoagulation management required

18.3 Innovations and Emerging Technologies

InnovationApplication
Virtual surgical planning (VSP)Pre-operative 3D planning for orthognathic/reconstruction
3D-printed cutting guidesPrecision osteotomy; patient-specific implants
Intraoperative navigationOrbital reconstruction (1-2 mm accuracy)
CBCT intraoperative verificationImplants; fracture reduction
PiezosurgeryNerve-sparing osteotomy
Resorbable fixationPLA/PGA and magnesium alloys
Nerve conduits / allograftsDecellularized allograft for nerve repair
TORS (robotic surgery)Oropharyngeal tumor resection
AI cephalometryAutomated landmark identification; fracture detection

MODULE 19: CLINICAL AND RADIOGRAPHIC LANDMARKS SUMMARY (Slide 79)

Time: ~3 minutes

19.1 Clinical Landmarks (Top to Bottom)

  1. Supraorbital notch
  2. Infraorbital foramen (1 cm below orbital rim, on the pupillary line)
  3. Tragal pointer (CN VII trunk landmark)
  4. Anterior masseter border (facial artery; Stensen's duct opening)
  5. Mental foramen (below 2nd premolar)
  6. Pitanguy's line (tragus → 1.5 cm above lateral brow = frontal branch course)
  7. Hyoid bone (level of C3)
  8. Thyroid cartilage (carotid bifurcation)
  9. Cricothyroid membrane (emergency airway)
  10. Cricoid cartilage (level of C6)
  11. Tracheal rings 2-4 (tracheostomy site)

19.2 Radiographic Landmarks

ModalityKey Landmarks
OPGMandibular canal, mental foramen, lingula, pterygomaxillary fissure; review quadrant by quadrant; check symmetry
CBCTIAN canal position, anterior mental loop, sinus floor septa
CTFrontal sinus tables, orbital walls, Le Fort fracture lines, carotid encasement (>270° = inoperable)
CephalometryS, N, A, B, ANS, PNS, Go, Pog; SNA / SNB / ANB angles

MODULE 20: GRAND SUMMARY TABLE (Slide 80)

Time: ~2 minutes
RegionCritical Layer / StructurePrimary Surgical Approach
ScalpLoose areolar (danger layer)Direct / coronal
TempleFrontal branch within TPFCoronal (sub-fascial)
OrbitOptic nerve, inferior rectusTransconjunctival
MidfaceDescending palatine / maxillary arteryUpper buccal sulcus
Parotid / TMJFacial nerve branchesModified Blair / retromandibular
MandibleIAN, mental, marginal mandibular nervesVestibular / Risdon
Floor of mouthLingual artery (deep to hyoglossus)Transoral
SubmandibularDanger quartet (lingual n., hypo. n., facial a., marginal m. n.)Submandibular
NeckIJV, CN XI, carotid, thoracic ductSelective dissection
AirwayRLN, thyroid isthmusTracheostomy / cricothyroidotomy

SEMINAR DELIVERY GUIDE

Recommended Time Allocation (Total: ~120 minutes)

ModuleTopicTime
1Universal template and SMAS10 min
2Scalp7 min
3Forehead, frontal sinus, coronal approach12 min
4Eyelid and orbit10 min
5Midface, buttresses, Le Fort12 min
6Nose and NOE7 min
7ZMC5 min
8Parotid and parotidectomy10 min
9TMJ, condyle, ITF8 min
10Mandible and lower face15 min
11Floor of mouth, sublingual, submandibular10 min
12Neck, dissection, deep space infections10 min
13Airway5 min
14Nerve injury8 min
15-20Summary tables and innovations10 min
Q&AOpen discussion15 min
Total~154 min (trim modules 15-20 for 120 min)

Pedagogical Tips

  1. Open with the master cross-section of the cheek (the seven-layer template) and reinforce it at the start of every new region.
  2. Use color-coded diagrams: red = danger zone/nerve, green = safe plane, yellow = vascular landmark.
  3. Pitanguy's line on a real lateral face photograph grounds the anatomy in the clinical setting.
  4. Three red flags to emphasize repeatedly: (a) frontal branch in the TPF; (b) facial nerve in relation to parotid; (c) lingual nerve 2-3 mm from the crest.
  5. Quiz-style interludes: After every 3-4 modules, pause and ask the audience "which structure is at risk in this approach?" using a clinical case photograph.
  6. Complication table (Module 16) should be presented as a group discussion - ask residents to fill in the "anatomical basis" column before revealing it.
  7. Cadaveric or surgical video clips for parotidectomy, submandibular excision, and coronal approach significantly improve retention.

Suggested Visual Aids (as indicated in the slides)

  • Master cheek cross-section (7-layer template)
  • Full lateral head-neck illustration with superficial vs. deep fascia color-coded
  • Pitanguy's line on lateral face photo
  • Holmlund-Hellsing line for arthrocentesis
  • Champy's osteosynthesis lines with green (safe) / red (danger) screw zones
  • Sagittal TMJ section
  • Annotated OPG + CBCT + cephalogram with all landmarks labeled
  • Dissection-type comparison table (radical vs. modified vs. selective)
  • Nerve injury Seddon vs. Sunderland side-by-side table
  • Infection spread pathway diagram (dental → mediastinum)

COMPLETE REFERENCE LIST

Textbooks

  1. Fonseca RJ. Oral and Maxillofacial Surgery, 3rd Ed. Elsevier Saunders.
  2. Miloro M. Peterson's Principles of Oral and Maxillofacial Surgery, 3rd Ed. PMPH-USA.
  3. Ellis E, Zide MF. Surgical Approaches to the Facial Skeleton, 2nd Ed. Lippincott Williams & Wilkins.
  4. Kademani D, Tiwana PS. Atlas of Oral and Maxillofacial Surgery. Elsevier Saunders.
  5. Brennan PA. Clinical Head and Neck Anatomy for Surgeons. CRC Press.
  6. Standring S (Ed.). Gray's Anatomy: The Anatomical Basis of Clinical Practice, 41st Ed. Elsevier.
  7. Norton NS. Netter's Head and Neck Anatomy for Dentistry, 3rd Ed. Elsevier.
  8. Cummings CW et al. Cummings Otolaryngology: Head and Neck Surgery, 7th Ed. Elsevier.
  9. Scott-Brown's Otorhinolaryngology Head and Neck Surgery. CRC Press/Taylor & Francis.

Key Articles

  1. Seddon HJ. A classification of nerve injuries. Brain. 1943;66(4):237-288. [PMID foundational text]
  2. Sunderland S. A classification of peripheral nerve injuries producing loss of function. Brain. 1951;74(4):491-516.
  3. Champy M, Lodde JP, Schmitt R, et al. Mandibular osteosynthesis by miniature screwed plates via a buccal approach. J Maxillofac Surg. 1978;6(1):14-21.
  4. Markowitz BL, Manson PN, Sargent L, et al. Management of the medial canthal tendon in nasoethmoid orbital fractures. Plast Reconstr Surg. 1991;87(5):843-853.
  5. Pitanguy I, Ramos AS. The frontal branch of the facial nerve: the importance of its variations in face lifting. Plast Reconstr Surg. 1966;38(4):352-356.
  6. Renton T, Van der Cruyssen F. Diagnosis, pathophysiology, management and prevention of trigeminal nerve injuries. Oral Surg. 2020;13(4):397-423.
  7. Mitz V, Peyronie M. The superficial musculo-aponeurotic system (SMAS) in the parotid and cheek area. Plast Reconstr Surg. 1974;54(1):80-88.

Create a study guide pdf with applied aspects for each topics

Reading File
Reading File
Running Command

mkdir -p /home/daytona/workspace/surgical-anatomy-study-guide

?

Writing File

~/surgical-anatomy-study-guide/generate_study_guide.py


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

# ── Color palette ──────────────────────────────────────────────────────────────
DARK_BLUE   = colors.HexColor("#1A3A5C")
MID_BLUE    = colors.HexColor("#2E6DA4")
LIGHT_BLUE  = colors.HexColor("#D6E8F7")
ACCENT_RED  = colors.HexColor("#C0392B")
ACCENT_GREEN= colors.HexColor("#1E7B4B")
GOLD        = colors.HexColor("#D4A017")
LIGHT_GRAY  = colors.HexColor("#F4F6F9")
MID_GRAY    = colors.HexColor("#BDC3C7")
WHITE       = colors.white
BLACK       = colors.HexColor("#1C1C1C")
WARN_BG     = colors.HexColor("#FFF3CD")
WARN_BORDER = colors.HexColor("#F0A500")
TIP_BG      = colors.HexColor("#E8F5E9")
TIP_BORDER  = colors.HexColor("#2ECC71")

OUTPUT = "/home/daytona/workspace/surgical-anatomy-study-guide/Surgical_Anatomy_HN_Study_Guide.pdf"

# ── Styles ─────────────────────────────────────────────────────────────────────
styles = getSampleStyleSheet()

def S(name, **kw):
    return ParagraphStyle(name, **kw)

COVER_TITLE = S("CoverTitle", fontSize=28, textColor=WHITE,
                fontName="Helvetica-Bold", alignment=TA_CENTER, leading=34)
COVER_SUB   = S("CoverSub",   fontSize=13, textColor=LIGHT_BLUE,
                fontName="Helvetica", alignment=TA_CENTER, leading=18)
COVER_DATE  = S("CoverDate",  fontSize=10, textColor=MID_GRAY,
                fontName="Helvetica", alignment=TA_CENTER)

MOD_TITLE   = S("ModTitle", fontSize=16, textColor=WHITE,
                fontName="Helvetica-Bold", alignment=TA_LEFT,
                leading=20, spaceBefore=2, spaceAfter=2)
SEC_TITLE   = S("SecTitle", fontSize=12, textColor=DARK_BLUE,
                fontName="Helvetica-Bold", leading=16,
                spaceBefore=10, spaceAfter=4)
BODY        = S("Body", fontSize=9.5, textColor=BLACK,
                fontName="Helvetica", leading=14,
                spaceBefore=2, spaceAfter=2, alignment=TA_JUSTIFY)
BULLET      = S("Bullet", fontSize=9.5, textColor=BLACK,
                fontName="Helvetica", leading=14,
                leftIndent=14, firstLineIndent=-10,
                spaceBefore=1, spaceAfter=1)
SUBBULLET   = S("SubBullet", fontSize=9, textColor=BLACK,
                fontName="Helvetica", leading=13,
                leftIndent=28, firstLineIndent=-10,
                spaceBefore=1, spaceAfter=1)
BOLD_INLINE = S("BoldInline", fontSize=9.5, textColor=BLACK,
                fontName="Helvetica-Bold", leading=14)
WARN_TXT    = S("WarnTxt", fontSize=9.5, textColor=colors.HexColor("#7D4E00"),
                fontName="Helvetica-Bold", leading=14,
                leftIndent=8, rightIndent=8,
                spaceBefore=4, spaceAfter=4)
TIP_TXT     = S("TipTxt", fontSize=9.5, textColor=colors.HexColor("#1B5E20"),
                fontName="Helvetica-Bold", leading=14,
                leftIndent=8, rightIndent=8,
                spaceBefore=4, spaceAfter=4)
REF_TXT     = S("RefTxt", fontSize=8.5, textColor=MID_BLUE,
                fontName="Helvetica-Oblique", leading=13,
                leftIndent=10)
TABLE_HDR   = S("TblHdr", fontSize=8.5, textColor=WHITE,
                fontName="Helvetica-Bold", alignment=TA_CENTER, leading=11)
TABLE_CELL  = S("TblCell", fontSize=8.5, textColor=BLACK,
                fontName="Helvetica", leading=12, alignment=TA_LEFT)
TABLE_CELL_C= S("TblCellC", fontSize=8.5, textColor=BLACK,
                fontName="Helvetica", leading=12, alignment=TA_CENTER)
FOOTER_TXT  = S("Footer", fontSize=7.5, textColor=MID_GRAY,
                fontName="Helvetica", alignment=TA_CENTER)

# ── Helpers ────────────────────────────────────────────────────────────────────
def module_header(num, title):
    """Dark blue banner for each module."""
    data = [[Paragraph(f"MODULE {num}  |  {title}", MOD_TITLE)]]
    t = Table(data, colWidths=[17*cm])
    t.setStyle(TableStyle([
        ("BACKGROUND", (0,0), (-1,-1), DARK_BLUE),
        ("TOPPADDING",    (0,0),(-1,-1), 7),
        ("BOTTOMPADDING", (0,0),(-1,-1), 7),
        ("LEFTPADDING",   (0,0),(-1,-1), 10),
        ("RIGHTPADDING",  (0,0),(-1,-1), 10),
        ("ROUNDEDCORNERS",(0,0),(-1,-1), [4,4,4,4]),
    ]))
    return t

def section_rule():
    return HRFlowable(width="100%", thickness=0.5, color=MID_BLUE,
                      spaceAfter=4, spaceBefore=6)

def warn_box(text):
    data = [[Paragraph(f"<b>! CLINICAL PEARL:</b>  {text}", WARN_TXT)]]
    t = Table(data, colWidths=[17*cm])
    t.setStyle(TableStyle([
        ("BACKGROUND",    (0,0),(-1,-1), WARN_BG),
        ("LINEABOVE",     (0,0),(-1, 0), 2, WARN_BORDER),
        ("LINEBELOW",     (0,0),(-1,-1), 2, WARN_BORDER),
        ("LINEBEFORE",    (0,0),(0, -1), 4, WARN_BORDER),
        ("TOPPADDING",    (0,0),(-1,-1), 5),
        ("BOTTOMPADDING", (0,0),(-1,-1), 5),
        ("LEFTPADDING",   (0,0),(-1,-1), 8),
    ]))
    return t

def tip_box(text):
    data = [[Paragraph(f"<b>APPLIED TIP:</b>  {text}", TIP_TXT)]]
    t = Table(data, colWidths=[17*cm])
    t.setStyle(TableStyle([
        ("BACKGROUND",    (0,0),(-1,-1), TIP_BG),
        ("LINEABOVE",     (0,0),(-1, 0), 2, TIP_BORDER),
        ("LINEBELOW",     (0,0),(-1,-1), 2, TIP_BORDER),
        ("LINEBEFORE",    (0,0),(0, -1), 4, TIP_BORDER),
        ("TOPPADDING",    (0,0),(-1,-1), 5),
        ("BOTTOMPADDING", (0,0),(-1,-1), 5),
        ("LEFTPADDING",   (0,0),(-1,-1), 8),
    ]))
    return t

def ref_line(text):
    return Paragraph(f"Ref: {text}", REF_TXT)

def b(t): return f"<b>{t}</b>"
def em(t): return f"<i>{t}</i>"
def red(t): return f'<font color="#C0392B"><b>{t}</b></font>'
def grn(t): return f'<font color="#1E7B4B"><b>{t}</b></font>'
def blu(t): return f'<font color="#2E6DA4"><b>{t}</b></font>'

def make_table(headers, rows, col_widths, alt=True):
    """Generic styled table."""
    hdr_row = [Paragraph(h, TABLE_HDR) for h in headers]
    data = [hdr_row]
    for i, row in enumerate(rows):
        data.append([Paragraph(str(c), TABLE_CELL) for c in row])
    t = Table(data, colWidths=col_widths)
    style = [
        ("BACKGROUND",    (0,0),  (-1,0),  DARK_BLUE),
        ("TEXTCOLOR",     (0,0),  (-1,0),  WHITE),
        ("GRID",          (0,0),  (-1,-1), 0.4, MID_GRAY),
        ("TOPPADDING",    (0,0),  (-1,-1), 4),
        ("BOTTOMPADDING", (0,0),  (-1,-1), 4),
        ("LEFTPADDING",   (0,0),  (-1,-1), 5),
        ("RIGHTPADDING",  (0,0),  (-1,-1), 5),
        ("VALIGN",        (0,0),  (-1,-1), "TOP"),
        ("ROWBACKGROUNDS",(0,1),  (-1,-1), [WHITE, LIGHT_GRAY]),
    ]
    t.setStyle(TableStyle(style))
    return t

def bp(txt):
    return Paragraph(f"&bull;  {txt}", BULLET)

def sbp(txt):
    return Paragraph(f"&#9702;  {txt}", SUBBULLET)

def sp(n=6):
    return Spacer(1, n)

# ── Page layout ────────────────────────────────────────────────────────────────
PAGE_W, PAGE_H = A4
MARGIN = 2*cm

def on_page(canvas, doc):
    canvas.saveState()
    # Footer bar
    canvas.setFillColor(DARK_BLUE)
    canvas.rect(0, 0, PAGE_W, 1.1*cm, fill=1, stroke=0)
    canvas.setFillColor(WHITE)
    canvas.setFont("Helvetica", 7.5)
    canvas.drawCentredString(PAGE_W/2, 0.4*cm,
        f"Surgical Anatomy of Head & Neck  |  OMFS Study Guide  |  Page {doc.page}")
    # Top accent line
    canvas.setFillColor(GOLD)
    canvas.rect(0, PAGE_H-4, PAGE_W, 4, fill=1, stroke=0)
    canvas.restoreState()

def on_first_page(canvas, doc):
    # Full cover background
    canvas.setFillColor(DARK_BLUE)
    canvas.rect(0, 0, PAGE_W, PAGE_H, fill=1, stroke=0)
    canvas.setFillColor(GOLD)
    canvas.rect(0, PAGE_H-6, PAGE_W, 6, fill=1, stroke=0)
    canvas.rect(0, 0, PAGE_W, 6, fill=1, stroke=0)

# ── Build story ────────────────────────────────────────────────────────────────
story = []

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# COVER PAGE
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(Spacer(1, 5*cm))
story.append(Paragraph("SURGICAL ANATOMY", COVER_TITLE))
story.append(Paragraph("OF THE HEAD AND NECK", COVER_TITLE))
story.append(Spacer(1, 0.5*cm))
story.append(HRFlowable(width="60%", thickness=1.5, color=GOLD,
                         hAlign="CENTER", spaceAfter=12))
story.append(Paragraph("Applied Study Guide for OMFS Residents", COVER_SUB))
story.append(Spacer(1, 0.4*cm))
story.append(Paragraph("Department of Oral and Maxillofacial Surgery", COVER_SUB))
story.append(Spacer(1, 0.3*cm))
story.append(Paragraph("Prepared by Dr. Hrushikesh Acharya (JR1) &bull; June 2026", COVER_DATE))
story.append(Spacer(1, 2*cm))

# Quick reference box on cover
cov_data = [[Paragraph(
    "<b>References:</b> Fonseca OMFS &bull; Peterson's Principles &bull; Ellis &amp; Zide Surgical Approaches &bull; "
    "Gray's Anatomy (Standring) &bull; Netter's H&amp;N &bull; Cummings Otolaryngology &bull; "
    "Scott-Brown's &bull; Kademani &amp; Tiwana Atlas &bull; Brennan Clinical H&amp;N Anatomy",
    COVER_DATE)]]
cov_t = Table(cov_data, colWidths=[13*cm])
cov_t.setStyle(TableStyle([
    ("BACKGROUND",(0,0),(-1,-1),colors.HexColor("#0F2A45")),
    ("BOX",(0,0),(-1,-1),1,GOLD),
    ("TOPPADDING",(0,0),(-1,-1),8),
    ("BOTTOMPADDING",(0,0),(-1,-1),8),
    ("LEFTPADDING",(0,0),(-1,-1),10),
]))
story.append(cov_t)
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 1: LAYERS TEMPLATE
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(1, "UNIVERSAL LAYERS TEMPLATE"))
story.append(sp(8))
story.append(Paragraph(b("The Seven-Layer Model (applies to every region — skin to bone)"), SEC_TITLE))
rows = [
    ["1. Skin",            "Thickness varies: thickest at scalp, thinnest at eyelid",    "Incision design; cosmetic units; graft harvest"],
    ["2. Subcutaneous fat","Facial fat compartments; superficial vessels; sensory nerves","Fat grafting; compartment shifts in ageing"],
    ["3. SMAS / Muscle",   "Galea → TPF → SMAS → platysma (one continuous sheet)",       "Face-lift plane; motor nerve lies DEEP to this"],
    ["4. Deep fascia",     "Parotid-masseteric (face); deep cervical fascia (neck)",      "Boundary of safe dissection zones"],
    ["5. Sub-fascial plane","Motor nerve branches, ducts, deep vessels, glands",          "HIGHEST-RISK surgical plane"],
    ["6. Periosteum",      "Vascularised, elevatable",                                   "Pericranial flap harvest; bone healing"],
    ["7. Bone",            "Cortical tables; buttresses",                                "Fixation; osteotomy lines; graft harvest"],
]
story.append(make_table(["Layer","Content","Surgical Significance"],
                        rows, [3*cm, 7.5*cm, 6.5*cm]))
story.append(sp(6))
story.append(warn_box(
    "GOLDEN RULE: Facial (motor) nerve branches lie DEEP to the SMAS. "
    "Dissecting superficial to the SMAS keeps you safe in most facial approaches."))
story.append(sp(6))
story.append(Paragraph(b("SMAS Continuity"), SEC_TITLE))
for txt in [
    f"{b('Superficial sheet:')} Galea aponeurotica (scalp) → Temporoparietal fascia/TPF (temple, {red('carries frontal branch CN VII')}) → SMAS (midface) → Platysma (neck)",
    f"{b('Deep fascia sheet:')} Deep temporal fascia → Parotid-masseteric fascia → Investing layer of deep cervical fascia",
    f"{b('Danger Space:')} Between alar fascia and prevertebral fascia. Infection tracks from skull base to mediastinum — descending necrotizing mediastinitis.",
]:
    story.append(bp(txt))
story.append(sp(4))
story.append(tip_box(
    "SMAS is a condensed fibromuscular layer contiguous with platysma, "
    "situated below subcutaneous fat and OVER the mimetic musculature and motor nerve branches. "
    "(Mitz & Peyronie 1974; confirmed in Cummings Otolaryngology)"))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 2: SCALP
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(2, "THE SCALP"))
story.append(sp(8))
story.append(Paragraph(b("S-C-A-L-P Mnemonic"), SEC_TITLE))
rows = [
    ["S","Skin","Hair-bearing, thick",
     "Cosmetic incisions; hair restoration; graft donor site"],
    ["C","Connective tissue","Dense, fibrous, richly vascular",
     red("Scalp wounds bleed profusely — fibrous septa hold vessels open. Clamp before cutting")],
    ["A","Aponeurosis (Galea)","Tension-bearing layer",
     "Lacerations through galea gape widely — must close galea separately"],
    ["L","Loose areolar","DANGER LAYER — potential space",
     red("Infection/haematoma spreads here; emissary veins → dural sinuses → intracranial spread")],
    ["P","Pericranium (Periosteum)","Vascularised; elevatable",
     grn("Pericranial flap for frontal sinus obliteration, dural repair, scalp reconstruction")],
]
story.append(make_table(["Letter","Layer","Property","Applied Significance"],
                        rows, [1.5*cm, 3.5*cm, 5*cm, 7*cm]))
story.append(sp(8))
story.append(Paragraph(b("Calvarium Bone Graft Harvest"), SEC_TITLE))
for txt in [
    f"{b('Safe zone:')} Parietal bone, posterior to coronal suture, anterior to lambdoid suture; {b('outer table only')}",
    f"{b('Avoid:')} Sagittal suture (superior sagittal sinus directly beneath); thin temporal squama",
    f"{b('Why preferred:')} Membranous bone resists resorption; same operative field; minimal donor morbidity",
]:
    story.append(bp(txt))
story.append(sp(4))
story.append(warn_box(
    "A scalp flap raised in the LOOSE AREOLAR layer can devascularise the pericranium. "
    "Always identify and preserve the layer you are in."))
story.append(sp(4))
story.append(ref_line("Fonseca OMFS (Reconstruction Vol); Gray's Anatomy (Standring) — Scalp"))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 3: FOREHEAD, FRONTAL SINUS, CORONAL APPROACH
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(3, "FOREHEAD, FRONTAL SINUS & CORONAL APPROACH"))
story.append(sp(8))
story.append(Paragraph(b("Forehead Layers"), SEC_TITLE))
for txt in [
    "Skin → Subcutaneous fat → Frontalis muscle (continuous with galea) → Loose areolar → Pericranium → Frontal bone",
    f"{b('Supraorbital notch/foramen:')} junction of medial 1/3 and lateral 2/3 of the orbital rim — supraorbital and supratrochlear nerves/vessels exit here",
    "Protect these during coronal dissection and all brow surgery — inadvertent traction causes forehead numbness",
]:
    story.append(bp(txt))
story.append(sp(6))
story.append(Paragraph(b("Frontal Sinus — Fracture-Driven Management"), SEC_TITLE))
rows = [
    ["Anterior table alone",         "ORIF (plates/screws)",         "Cosmesis; contour"],
    ["Posterior table ± duct injury", "Obliteration or cranialization","CSF leak prevention"],
    ["Frontonasal duct injury",       "Obliteration (pericranial flap)","Prevent mucocele; meningitis"],
]
story.append(make_table(["Fracture Pattern","Management","Goal"],
                        rows, [5*cm, 6*cm, 6*cm]))
story.append(sp(6))
story.append(Paragraph(b("Temporal Region — 7 Layers"), SEC_TITLE))
layers = [
    ("1. Skin","—"),
    ("2. Subcutaneous","Superficial temporal artery/vein; auriculotemporal nerve"),
    (f"3. {red('TPF (Temporoparietal Fascia)')}",f"{red('Contains frontal branch of CN VII')} — most critical layer"),
    (f"4. {grn('Loose areolar')}",f"{grn('SAFE dissection plane')}"),
    ("5. Deep temporal fascia","Splits over arch — encloses superficial temporal fat pad"),
    ("6. Temporalis muscle","Coronoid process insertion — used as a flap"),
    ("7. Periosteum → Bone","—"),
]
rows2 = [[n, d] for n,d in layers]
story.append(make_table(["Layer","Notes"], rows2, [5.5*cm, 11.5*cm]))
story.append(sp(6))
story.append(warn_box(
    "PITANGUY'S LINE: Tragus → 1.5 cm above the lateral brow = course of the FRONTAL BRANCH of CN VII. "
    "The branch crosses the zygomatic arch within the TPF. Dissecting DEEP to the superficial layer of "
    "deep temporal fascia (sub-fascial plane) protects it."))
story.append(sp(6))
story.append(Paragraph(b("Coronal Approach — Safe Plane Protocol"), SEC_TITLE))
rows3 = [
    ["Frontal region","Subgaleal loose areolar plane","Below galea, above pericranium"],
    ["Temporal region","Below superficial layer of deep temporal fascia","Frontal branch stays in reflected flap"],
    ["At the arch","Incise deep temporal fascia obliquely; inter-fascial fat pad = visual guide","Strip periosteum off arch"],
]
story.append(make_table(["Zone","Safe Plane","Key Action"],
                        rows3, [4*cm, 7*cm, 6*cm]))
story.append(sp(4))
for txt in [
    f"{b('Access gained:')} Frontal sinus, NOE complex, orbital roofs, zygomatic arches, anterior skull base",
    f"{b('Pitfalls:')} Alopecia (tension on flap), frontal branch palsy, haematoma",
]:
    story.append(bp(txt))
story.append(sp(4))
story.append(ref_line("Ellis & Zide — Surgical Approaches to the Facial Skeleton; Pitanguy & Ramos, PRS 1966"))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 4: ORBIT
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(4, "EYELID, PERIORBITA & ORBITAL SURGERY"))
story.append(sp(8))
story.append(Paragraph(b("Eyelid Layers (anterior → posterior)"), SEC_TITLE))
for txt in [
    f"Skin ({b('thinnest in the body')}) → Orbicularis oculi (pretarsal / preseptal / orbital) → {b('Orbital septum')} (KEY BARRIER — fat lies behind) → Preaponeurotic fat → Levator aponeurosis / capsulopalpebral fascia → Tarsus → Conjunctiva",
    f"{b('Medial canthal tendon (MCT):')} anchors the lid complex medially — critical in NOE fractures",
]:
    story.append(bp(txt))
story.append(sp(6))
story.append(Paragraph(b("Orbital Walls & Contents"), SEC_TITLE))
for txt in [
    f"7 bones; {b('thinnest:')} lamina papyracea (medial wall) and orbital floor → why blowout fractures occur here",
    "Infraorbital nerve traverses the floor canal → at risk in midface trauma",
    f"Contents: globe, extraocular muscles, optic nerve, ophthalmic vessels",
]:
    story.append(bp(txt))
story.append(sp(6))
story.append(Paragraph(b("Orbital Fractures"), SEC_TITLE))
rows = [
    ["Hydraulic","Globe compressed → pressure transmitted to thin floor/medial wall",
     "Fat ± inferior rectus herniation → diplopia, enophthalmos"],
    ["Buckling","Force along rim → bone buckles inward",
     "Can occur without significant rim deformity"],
    [f"{red('White-eyed blowout (paeds)')}","Trapdoor: muscle entrapped with minimal fat herniation",
     f"{red('SURGICAL EMERGENCY — vagal response, persistent diplopia')}"],
]
story.append(make_table(["Mechanism","Pathophysiology","Clinical Result"],
                        rows, [3.5*cm, 7*cm, 6.5*cm]))
story.append(sp(4))
story.append(warn_box(
    "FORCED DUCTION TEST distinguishes true muscle entrapment from nerve palsy. "
    "Entrapment = positive (restricted passive movement). Must perform under GA in the paediatric white-eyed blowout."))
story.append(sp(6))
story.append(Paragraph(b("Orbital Surgical Approaches"), SEC_TITLE))
rows2 = [
    [grn("Transconjunctival (preferred)"),
     "Inferior fornix → preseptal or retroseptal → periorbita → floor",
     "No cutaneous scar; lowest ectropion rate"],
    ["Subciliary",
     "2 mm below lash line → orbicularis → septum (do NOT open) → periosteum",
     "Ectropion risk 5-20%"],
    ["Lateral brow","Skin → orbicularis → periosteum → frontozygomatic suture","Limited access; FZ fixation"],
]
story.append(make_table(["Approach","Layers","Key Point"],
                        rows2, [4.5*cm, 7.5*cm, 5*cm]))
story.append(sp(6))
story.append(warn_box(
    f"{red('RETROBULBAR HAEMORRHAGE = BLINDNESS EMERGENCY.')}"
    " Signs: proptosis, RAPD, IOP >40 mmHg, pain. "
    "Immediate lateral canthotomy + inferior cantholysis within 90 minutes. "
    "Never dissect past the POSTERIOR THIRD of the floor (optic nerve)."))
story.append(sp(4))
story.append(ref_line("Ellis & Zide — Surgical Approaches to the Facial Skeleton"))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 5: MIDFACE — SMAS, BUTTRESSES, LE FORT
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(5, "MIDFACE: SMAS, BUTTRESSES & LE FORT FRACTURES"))
story.append(sp(8))
story.append(Paragraph(b("Midface Soft-Tissue Layers"), SEC_TITLE))
story.append(bp("Skin → Subcutaneous fat (nasolabial, malar, jowl compartments) → SMAS (with mimetic muscles: zygomaticus major/minor, levator labii embedded within) → Parotid-masseteric fascia → Sub-SMAS plane (facial nerve branches, parotid duct, buccal fat pad) → Periosteum → Bone"))
story.append(sp(4))
rows = [
    ["Orbicularis oris","Sphincter of oral aperture","Cleft lip repair — must reconstruct muscular continuity"],
    ["Buccinator","Cheek compressor; pierced by Stensen's duct","Protect Stensen's duct in buccal approaches"],
    ["Mentalis","Chin elevator; inserts into chin skin","MUST RE-SUTURE in genioplasty — prevents 'witch's chin'"],
]
story.append(make_table(["Muscle","Function","Surgical Significance"],
                        rows,[4*cm, 6*cm, 7*cm]))
story.append(sp(6))
story.append(Paragraph(b("Midface Skeletal Buttresses"), SEC_TITLE))
for txt in [
    f"{b('Vertical buttresses:')} Nasomaxillary, Zygomaticomaxillary, Pterygomaxillary",
    f"{b('Horizontal buttresses:')} Frontal bar, Infraorbital rim, Maxillary alveolus",
    "Function: transmit and absorb masticatory and traumatic forces; dictate fracture lines",
    f"{b('Maxillary sinus:')} Roof = orbital floor; Floor = alveolus; Ostium in medial wall; lined by Schneiderian membrane",
]:
    story.append(bp(txt))
story.append(sp(6))
story.append(Paragraph(b("Le Fort Fracture Classification"), SEC_TITLE))
rows2 = [
    ["I","Horizontal — floating palate",
     "Separates alveolus + palate from mid-face",
     "Malocclusion; maxillary mobility at alveolar level"],
    ["II","Pyramidal",
     "Nasofrontal suture + orbital floor + pterygoids",
     "CSF rhinorrhea; high haemorrhage risk"],
    ["III","Craniofacial disjunction",
     "Complete separation of facial skeleton from cranium",
     "Highest haemorrhage; airway emergency; dural tears"],
]
story.append(make_table(["Type","Name","Fracture Line","Complications"],
                        rows2,[1.5*cm,3.5*cm,5.5*cm,6.5*cm]))
story.append(sp(6))
story.append(Paragraph(b("Le Fort I Osteotomy — Step-by-Step"), SEC_TITLE))
steps = [
    "Upper buccal sulcus mucosa incision (canine to canine bilaterally)",
    "Subperiosteal dissection — expose pyriform rim, infraorbital foramen, ZM buttress",
    "Osteotomy 1: Lateral nasal wall",
    "Osteotomy 2: Anterior maxillary wall — 5 mm above root apices (protect PSA vessels)",
    "Osteotomy 3: ZM buttress (bilateral)",
    f"Osteotomy 4: {red('Pterygomaxillary junction — MOST DANGEROUS')} (descending palatine + maxillary artery)",
    "Osteotomy 5: Nasal septum",
    "Downfracture with Rowe's disimpaction forceps",
    f"After downfracture: protect descending palatine artery, pterygoid plates, greater palatine pedicle",
]
for i, s in enumerate(steps, 1):
    story.append(Paragraph(f"<b>{i}.</b>  {s}", BULLET))
story.append(sp(4))
story.append(warn_box(
    "HAEMORRHAGE CONTROL in Le Fort I/II/III: precise osteotome placement → tight packing → "
    "maxillary artery ligation (in pterygopalatine fossa) → angiographic embolization if needed."))
story.append(sp(4))
story.append(ref_line("Fonseca OMFS; Miloro Peterson's Principles; Markowitz & Manson PRS 1991"))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 6: NOSE & NOE
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(6, "NOSE, NOE COMPLEX & ZMC"))
story.append(sp(8))
story.append(Paragraph(b("Nasal Layers"), SEC_TITLE))
story.append(bp("Skin (thick at tip, thin at dorsum) → Subcutaneous/SMAS → Nasal muscles → Perichondrium/Periosteum → Cartilage framework (upper lateral, lower lateral, septal cartilages) → Nasal bones → Mucosa"))
for txt in [
    f"{b('Internal nasal valve:')} narrowest airway point (angle between upper lateral cartilage and septum) — key in functional rhinoplasty",
    f"{b('Blood supply:')} Angular artery (external carotid system) + Sphenopalatine artery branches (epistaxis source — posterior nasal bleeding)",
]:
    story.append(bp(txt))
story.append(sp(6))
story.append(Paragraph(b("NOE Fractures — Markowitz-Manson Classification"), SEC_TITLE))
rows = [
    ["Type I","Single central fragment","MCT attached and intact",
     "ORIF of single fragment; MCT intact"],
    ["Type II","Comminuted; MCT on a fragment","Comminuted but MCT attached",
     "Fixation of MCT-bearing fragment; no transnasal wiring usually"],
    ["Type III",f"{red('Comminuted; MCT detached')}","MCT avulsed from bone",
     f"{red('Transnasal canthopexy wiring required')}"],
]
story.append(make_table(["Type","Bone Pattern","MCT Status","Management"],
                        rows,[1.5*cm,4*cm,4*cm,7.5*cm]))
story.append(sp(4))
story.append(warn_box(
    "TELECANTHUS (increased intercanthal distance >35 mm) = sign of MCT avulsion. "
    "Bowstring test: pull eyelid laterally and palpate for MCT tightening over the nasal bridge. "
    "Also check for: nasolacrimal duct obstruction, CSF leak."))
story.append(sp(8))
story.append(Paragraph(b("ZMC — The Tetrapod"), SEC_TITLE))
for txt in [
    f"{b('4 articulations:')} Frontozygomatic, Zygomaticomaxillary, Zygomaticotemporal, Zygomaticosphenoid",
    f"{b('Nerve at risk:')} Infraorbital nerve (commonest sensory complication in midface surgery)",
    f"{b('Classification:')} Knight & North (6 types); Zingg (A/B/C)",
]:
    story.append(bp(txt))
story.append(sp(4))
rows2 = [
    ["Gillies temporal","Hairline → TPF → deep temporal fascia → temporalis → elevator under arch",
     "Minimal; only useful for isolated arch reduction"],
    ["Keen intraoral","Upper buccal sulcus behind ZM buttress",
     "PSA artery; pterygoid plexus haemorrhage"],
    ["Transconjunctival + upper buccal + lateral brow","Combination for full ZMC ORIF",
     "Covers all 4 sutures for fixation"],
]
story.append(make_table(["Approach","Layers / Access","Risk"],
                        rows2,[4*cm,7.5*cm,5.5*cm]))
story.append(sp(4))
story.append(ref_line("Ellis & Zide; Markowitz & Manson PRS 1991 (NOE)"))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 7: PAROTID & PAROTIDECTOMY
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(7, "PAROTID GLAND & PAROTIDECTOMY"))
story.append(sp(8))
story.append(Paragraph(b("Parotid Layers — Superficial to Deep"), SEC_TITLE))
layers7 = [
    ("Skin","—"),
    ("Subcutaneous fat","—"),
    ("SMAS","—"),
    ("Parotid capsule (investing fascia)","Derived from investing layer of deep cervical fascia"),
    (f"{red('Facial nerve branches')}","Most superficial structure within gland parenchyma"),
    ("Retromandibular vein","Landmark within the gland — divides superficial/deep lobes"),
    ("External carotid artery","Deepest structure within the gland"),
]
rows7 = [[n, d] for n, d in layers7]
story.append(make_table(["Layer","Key Point"], rows7, [5.5*cm, 11.5*cm]))
story.append(sp(4))
for txt in [
    f"{b('Auriculotemporal nerve (V3):')} traverses gland — carries parasympathetic secretomotor fibres via otic ganglion (Frey syndrome pathway)",
    f"{b('Stensen\\'s duct:')} opens into the oral cavity opposite the upper 2nd molar; pierces buccinator",
    f"{b('Facial nerve divides gland')} into superficial and deep lobes — surgery DEMANDS trunk identification before lobar dissection",
]:
    story.append(bp(txt))
story.append(sp(6))
story.append(Paragraph(b("Parotidectomy — Step-by-Step Approach"), SEC_TITLE))
steps7 = [
    f"Modified Blair incision (preauricular + posterior to the lobule + submandibular extension)",
    "Raise skin flap superficial to the parotid capsule",
    f"{b('Identify facial nerve trunk')} using 3 triangulating landmarks simultaneously:",
    f"{b('Landmark 1:')} 1 cm deep and inferior to the TRAGAL POINTER",
    f"{b('Landmark 2:')} 6-8 mm deep to the TYMPANOMASTOID SUTURE",
    f"{b('Landmark 3:')} Superior to POSTERIOR BELLY OF DIGASTRIC",
    "Alternatively: retrograde identification from a peripheral branch (buccal or marginal)",
    "Dissect superficial lobe off the nerve from trunk to periphery (teasing technique)",
    "Deep lobe: meticulous dissection around all nerve branches with bipolar haemostasis",
    f"{b('Frey syndrome prevention:')} SMAS flap or AlloDerm sheet interposed between skin and gland bed",
]
for i, s in enumerate(steps7, 1):
    story.append(Paragraph(f"<b>{i}.</b>  {s}", BULLET))
story.append(sp(4))
story.append(warn_box(
    "House-Brackmann Grade I-VI for facial nerve function assessment. "
    "Frey syndrome (auriculotemporal nerve misdirection) presents as gustatory sweating weeks to months post-op; "
    "treated with botulinum toxin injections."))
story.append(sp(4))
story.append(ref_line("Miloro Peterson's Principles; Cummings Otolaryngology; Kademani & Tiwana Atlas"))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 8: TMJ, CONDYLE & ITF
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(8, "TMJ, CONDYLAR FRACTURES & INFRATEMPORAL FOSSA"))
story.append(sp(8))
story.append(Paragraph(b("TMJ Layers"), SEC_TITLE))
story.append(bp("Skin → Subcutaneous (superficial temporal vessels, auriculotemporal nerve) → TPF → Deep temporal fascia → Periosteum → Capsule → Superior joint space → Disc → Condyle"))
for txt in [
    f"{b('Disc:')} Biconcave fibrocartilage; bilaminar (retrodiscal) zone is vascular and innervated — source of pain in internal derangement",
    f"{b('Blood supply:')} Superficial temporal and maxillary arteries",
    f"{b('Innervation:')} Auriculotemporal nerve (V3)",
]:
    story.append(bp(txt))
story.append(sp(6))
story.append(Paragraph(b("TMJ Procedures"), SEC_TITLE))
rows8 = [
    ["Arthrocentesis","Holmlund-Hellsing line (tragus-lateral canthus)","Minimal; outpatient"],
    ["Arthroscopy","Superior joint space; avoid thin fossa roof","No open incision"],
    ["Open surgery / TJR","Preauricular or endaural incision",f"{red('Highest facial nerve risk')}"],
]
story.append(make_table(["Procedure","Access / Landmark","Key Risk"],
                        rows8,[4*cm,7*cm,6*cm]))
story.append(sp(6))
story.append(Paragraph(b("Condylar Fracture Management"), SEC_TITLE))
rows9 = [
    ["Retromandibular (transparotid)","Parotid; retromandibular vein = landmark",
     f"{red('CN VII risk (branches)')}","Subcondylar; displaced"],
    ["Endoscope-assisted transoral","No cutaneous scar; transoral endoscopic",
     "Technically demanding","Less nerve risk"],
]
story.append(make_table(["Approach","Anatomy","Risk","Indication"],
                        rows9,[4*cm,5.5*cm,3.5*cm,4*cm]))
story.append(sp(4))
story.append(bp(f"{b('Open ORIF indications:')} dislocation into middle cranial fossa; foreign body; lateral displacement; unobtainable occlusion"))
story.append(sp(6))
story.append(Paragraph(b("Infratemporal Fossa Contents"), SEC_TITLE))
rows10 = [
    ["Pterygoid muscles","Action: lateral pterygoid drives disc displacement and condyle fracture direction"],
    [f"{red('Pterygoid venous plexus')}", f"{red('Most dangerous venous bleed in the region — difficult to control')}"],
    ["Maxillary artery","Variable relation to lateral pterygoid — at risk in Le Fort I and ITF approaches"],
    ["V3 (mandibular nerve)","Motor + sensory; gives IAN and lingual nerve"],
    ["Chorda tympani","Taste from anterior 2/3 tongue; parasympathetics to submandibular gland"],
    [f"{red('Middle meningeal artery')}", f"{red('Enters foramen spinosum — laceration → epidural haematoma')}"],
]
story.append(make_table(["Structure","Applied Significance"], rows10,[5*cm,12*cm]))
story.append(sp(4))
story.append(ref_line("Miloro Peterson's Principles; Ellis & Zide; Kademani & Tiwana Atlas"))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 9: MANDIBLE & LOWER FACE
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(9, "MANDIBLE, LOWER FACE & ORTHOGNATHIC SURGERY"))
story.append(sp(8))
story.append(Paragraph(b("Lower Face Layers"), SEC_TITLE))
story.append(bp(f"Skin → Subcutaneous → Platysma / Depressor muscles / Mentalis → Investing fascia → {red('Marginal mandibular nerve')} (superficial to facial vessels at the lower border) → Periosteum → Mandible"))
story.append(sp(4))
story.append(warn_box(
    "MARGINAL MANDIBULAR NERVE dips 1-2 cm BELOW the inferior border of the mandible in ~20% of patients. "
    "All submandibular incisions must be placed AT LEAST 2 cm below the inferior border. "
    "Hayes-Martin maneuver: ligate the facial vein and retract the nerve superiorly on the vascular stump."))
story.append(sp(6))
story.append(Paragraph(b("Mandibular Fracture Biomechanics"), SEC_TITLE))
rows_m = [
    ["Condyle","36%","Elevators (masseter, temporalis, medial pterygoid)",
     "Medial displacement (lateral pterygoid pull)"],
    ["Body","21%","Elevators vs. depressors",
     "Favorable (medial) vs. unfavorable (lateral) angulation"],
    ["Angle","20%","Pterygomasseteric sling",
     "Unfavorable — sling opens the fracture"],
    ["Symphysis","14%","Depressors (digastric, mylohyoid, geniohyoid)",
     "Anterior fragment pulled inferiorly; lip/chin numbness"],
]
story.append(make_table(["Site","Frequency","Muscle Force","Key Feature"],
                        rows_m,[3*cm,2.5*cm,5.5*cm,6*cm]))
story.append(sp(6))
story.append(Paragraph(b("IAN and Lingual Nerve — Applied Anatomy"), SEC_TITLE))
rows_n = [
    [f"{b('Inferior Alveolar Nerve')}",
     "Runs in mandibular canal; exits as mental nerve below 2nd premolar",
     "Third molars, BSSO, ORIF, implants — assess with CBCT pre-op",
     "0.5-5% (3rd molar); 13-40% transient in BSSO"],
    [f"{b('Lingual Nerve')}",
     "Submucosally on lingual plate; only 2-3 mm below alveolar crest at 3rd molar region",
     "Lingual flap elevation; elevator slip; lingual split technique",
     "0.5-2% (3rd molar)"],
]
story.append(make_table(["Nerve","Position","Risk Scenario","Incidence"],
                        rows_n,[3.5*cm,4.5*cm,5.5*cm,3.5*cm]))
story.append(sp(6))
story.append(Paragraph(b("Mandibular Approaches"), SEC_TITLE))
rows_ap = [
    ["Intraoral vestibular","Mucosa → submucosa → mentalis/buccinator → periosteum → bone","Mental nerve"],
    ["Submandibular (Risdon)","Skin → subcutaneous → platysma → investing fascia → marginal mandibular n. (Hayes-Martin) → pterygomasseteric sling → periosteum → bone","Marginal mandibular nerve"],
]
story.append(make_table(["Approach","Layers","Primary Risk"],
                        rows_ap,[3.5*cm,9.5*cm,4*cm]))
story.append(sp(6))
story.append(Paragraph(b("Champy's Ideal Osteosynthesis Lines (1978)"), SEC_TITLE))
rows_ch = [
    ["Symphysis","2 plates — bicortical inferior; monocortical superior","High torsional stress"],
    ["Body","1 plate — superior border along external oblique","Tension zone superior"],
    ["Angle","1 plate — along external oblique ridge; monocortical superior, bicortical inferior","Sling opens fracture"],
]
story.append(make_table(["Region","Fixation","Rationale"],
                        rows_ch,[3*cm,8.5*cm,5.5*cm]))
story.append(sp(6))
story.append(Paragraph(b("BSSO (Obwegeser-Dal Pont) — Step-by-Step"), SEC_TITLE))
bsso_steps = [
    "Intraoral incision anterior to the ramus",
    f"Medial cut: {b('above the lingula')} (horizontal medial osteotomy) — IAN canal just below",
    f"Sagittal cut: along the {b('external oblique ridge')}",
    "Inferior border cut connecting the two",
    f"{b('IAN must stay in the DISTAL segment')} — confirm with nerve hooks",
    "Split with osteotomes; avoid thin buccal plate (bad split risk)",
    f"{b('Risks:')} IAN injury 13-40% transient; bad/unfavorable split; inferior alveolar artery injury",
]
for i, s in enumerate(bsso_steps, 1):
    story.append(Paragraph(f"<b>{i}.</b>  {s}", BULLET))
story.append(sp(4))
story.append(tip_box(
    "GENIOPLASTY: osteotomy at least 5 mm below the mental foramen (to protect mental nerve). "
    "Always re-suture mentalis in 2 layers — failure causes 'witch's chin' deformity. "
    "Protect genioglossus/geniohyoid (tongue airway support)."))
story.append(sp(4))
story.append(ref_line("Champy et al. J Maxillofac Surg 1978; Miloro Peterson's Principles; Fonseca OMFS"))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 10: FLOOR OF MOUTH & SUBMANDIBULAR
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(10, "FLOOR OF MOUTH, SUBLINGUAL & SUBMANDIBULAR"))
story.append(sp(8))
story.append(Paragraph(b("Mylohyoid — The Muscular Diaphragm"), SEC_TITLE))
for txt in [
    f"{b('Origin:')} Mylohyoid line (internal surface of mandible)",
    "Divides: sublingual space (above) from submandibular space (below)",
    f"{b('Applied:')} Root apex position relative to the mylohyoid line determines whether a dentoalveolar abscess presents in the sublingual or submandibular space",
]:
    story.append(bp(txt))
story.append(sp(6))
story.append(Paragraph(b("Hyoglossus — The Master Landmark"), SEC_TITLE))
rows10a = [
    [grn("Superficial to hyoglossus"),
     "Lingual nerve, Wharton's duct, Hypoglossal nerve (CN XII), Sublingual gland"],
    [red("Deep to hyoglossus"),
     "Lingual artery, CN IX (glossopharyngeal nerve), Lingual vein"],
]
story.append(make_table(["Relation","Structures"], rows10a, [5*cm, 12*cm]))
story.append(sp(4))
story.append(warn_box(
    "LINGUAL ARTERY haemorrhage: ligate deep to hyoglossus or at the ECA origin. "
    "NEVER ligate bilaterally — vessels are only ~2 cm apart at the midline. "
    "Bilateral ligation causes tongue necrosis."))
story.append(sp(6))
story.append(Paragraph(b("Submandibular Triangle — 'Danger Quartet'"), SEC_TITLE))
story.append(bp("Layers: Skin → Subcutaneous → Platysma → Investing fascia → Marginal mandibular nerve (superficial) → Submandibular gland → 4 deep structures:"))
rows10b = [
    ["1. Facial artery","Enters triangle deep; exits superficial at anterior masseter border",
     "Double-ligate before dividing"],
    ["2. Lingual nerve","Superior to gland; wraps lateral→deep→medial around Wharton's duct",
     "Identify and preserve before duct ligation"],
    ["3. Hypoglossal nerve (CN XII)","Deepest; runs on surface of hyoglossus",
     "Preserve — innervates all intrinsic tongue muscles"],
    ["4. Facial vein","Runs superficially; used in Hayes-Martin maneuver",
     "Ligate to retract marginal mandibular nerve safely"],
]
story.append(make_table(["Structure","Anatomy","Applied Action"],
                        rows10b,[3.5*cm,7*cm,6.5*cm]))
story.append(sp(6))
story.append(Paragraph(b("Submandibular Gland Excision — Step-by-Step"), SEC_TITLE))
smg_steps = [
    "Incision 2 cm below the inferior border of the mandible",
    "Divide skin → subcutaneous → platysma",
    f"{b('Hayes-Martin maneuver:')} ligate the facial vein → retract marginal mandibular nerve superiorly on the stump",
    "Double-ligate and divide the facial artery",
    "Mobilise the superficial lobe anteriorly and inferiorly",
    "Retract posterior border of mylohyoid — this opens the deep space",
    "Identify the lingual nerve (superior, wrapping Wharton's duct)",
    "Free lingual nerve from Wharton's duct by blunt dissection",
    "Identify and protect the hypoglossal nerve (deepest — on hyoglossus)",
    "Ligate and divide Wharton's duct flush at the sublingual caruncle",
    "Remove gland — layered closure + drain",
]
for i, s in enumerate(smg_steps, 1):
    story.append(Paragraph(f"<b>{i}.</b>  {s}", BULLET))
story.append(sp(4))
story.append(ref_line("Miloro Peterson's Principles; Cummings Otolaryngology; Brennan Clinical H&N Anatomy"))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 11: NECK
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(11, "NECK ANATOMY, DISSECTION & DEEP SPACE INFECTIONS"))
story.append(sp(8))
story.append(Paragraph(b("Cervical Fascial Layers"), SEC_TITLE))
rows11 = [
    ["Investing layer","SCM, trapezius, parotid, submandibular gland",
     "Opened first in neck dissection; provides structural landmarks"],
    ["Pretracheal / visceral","Thyroid, trachea, esophagus",
     "Opens for tracheostomy; contains pretracheal space"],
    ["Prevertebral","Prevertebral muscles, spine",
     "NEVER breach — posterior to retropharyngeal space"],
    ["Carotid sheath","Carotid artery, IJV, vagus nerve",
     "Contributions from all 3 layers; protect in all neck surgery"],
]
story.append(make_table(["Layer","Encloses","Surgical Significance"],
                        rows11,[3.5*cm,5*cm,8.5*cm]))
story.append(sp(6))
story.append(Paragraph(b("Lymph Node Levels — Drainage Map"), SEC_TITLE))
rows11b = [
    ["I (IA/IB)","Submental / Submandibular",
     "Floor of mouth, lips, anterior gingiva, submandibular gland"],
    ["II (IIA/IIB)","Upper jugular","Tongue, tonsil, oropharynx; IIA/IIB split by CN XI (spinal accessory)"],
    ["III","Middle jugular","Oral cavity, hypopharynx"],
    ["IV","Lower jugular",f"{red('Thoracic duct enters at LEFT level IV — chyle leak if damaged')}"],
    ["V","Posterior triangle",f"{red('CN XI (spinal accessory) at risk — trapezius paralysis')}"],
    ["VI","Central compartment","Thyroid, larynx, subglottis"],
]
story.append(make_table(["Level","Region","Drainage / Key Risk"],
                        rows11b,[2*cm,4*cm,11*cm]))
story.append(sp(6))
story.append(Paragraph(b("Neck Dissection Types"), SEC_TITLE))
rows11c = [
    ["Radical","Removes levels I-V + SCM + IJV + CN XI","Rarely used; significant morbidity"],
    ["Modified Radical","Levels I-V; preserves SCM and/or IJV and/or CN XI","Standard for N+ disease"],
    ["Selective","Level-specific; I-III for oral cavity SCC (supraomohyoid)","Elective N0 neck in oral cancer"],
    ["Extended","Includes additional structures (parotid, skin, carotid)","Extensive disease"],
]
story.append(make_table(["Type","Structures Removed/Preserved","Indication"],
                        rows11c,[3.5*cm,7.5*cm,6*cm]))
story.append(sp(6))
story.append(Paragraph(b("Deep Space Infection Spread Pathway"), SEC_TITLE))
for txt in [
    f"{b('Route:')} Odontogenic infection → Parapharyngeal space (adjacent to carotid sheath) → Retropharyngeal space → DANGER SPACE (alar-prevertebral) → Posterior mediastinum",
    f"{b('Result:')} Descending Necrotizing Mediastinitis — mortality 30-50% if not recognised and drained urgently",
    f"{b('Ludwig\\'s Angina:')} bilateral submandibular + submental + sublingual space infection — floor of mouth elevated, tongue pushed up → airway emergency",
]:
    story.append(bp(txt))
story.append(sp(4))
story.append(warn_box(
    "Any patient with floor of mouth swelling + trismus + dysphagia + stridor has a deep space infection "
    "until proven otherwise. Secure the airway FIRST (awake fibreoptic intubation or tracheostomy). "
    "CT with contrast defines the extent and the spaces involved."))
story.append(sp(4))
story.append(ref_line("Cummings Otolaryngology; Scott-Brown's; Fonseca OMFS"))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 12: AIRWAY
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(12, "AIRWAY: TRACHEOSTOMY & CRICOTHYROIDOTOMY"))
story.append(sp(8))
story.append(Paragraph(b("Tracheostomy Layers (Outer to Airway)"), SEC_TITLE))
trach_layers = [
    ("Skin","—"),
    ("Subcutaneous fat","Anterior jugular veins (avoid; cauterise or retract)"),
    ("Platysma","—"),
    ("Investing fascia","—"),
    ("Strap muscles","Separate in the midline avascular raphe — do NOT cut"),
    ("Pretracheal fascia","—"),
    (f"{b('Thyroid isthmus')}","Lies over rings 2-4; retract superiorly or divide between ligatures"),
    (f"{b('Tracheal wall')}","Enter between rings 2-3 or 3-4; Bjork flap tacked to skin"),
]
rows12 = [[n,d] for n,d in trach_layers]
story.append(make_table(["Layer","Key Action/Risk"], rows12, [5.5*cm, 11.5*cm]))
story.append(sp(6))
story.append(Paragraph(b("Tracheostomy Complications"), SEC_TITLE))
rows12b = [
    [f"{red('Tracheoinnominate fistula')}","Brachiocephalic artery erosion by tube tip",
     f"{red('Hyperinflate cuff → emergency sternotomy')}"],
    ["RLN injury","Lateral dissection away from midline","Stay strictly midline below cricoid"],
    ["Thyroidea ima artery","Variant; present in 3-10%","Identify and ligate — can cause significant haemorrhage"],
    ["Subglottic stenosis","Cuff over-inflation; ischaemia","High-volume low-pressure cuffs; keep <20 cmH2O"],
]
story.append(make_table(["Complication","Mechanism","Prevention / Management"],
                        rows12b,[4.5*cm,5.5*cm,7*cm]))
story.append(sp(6))
story.append(Paragraph(b("Cricothyroidotomy"), SEC_TITLE))
for txt in [
    f"{b('Landmarks:')} Thyroid cartilage → palpate downward → cricothyroid membrane → cricoid cartilage",
    f"{b('Incision:')} Horizontal stab through the LOWER half of the cricothyroid membrane (avoid superior cricothyroid artery superiorly)",
    f"{red('CONTRAINDICATED in children <12')} — risk of subglottic stenosis and growth disturbance; use needle cricothyroidotomy instead",
    "Convert to formal tracheostomy within 24-72 hours",
]:
    story.append(bp(txt))
story.append(sp(4))
story.append(ref_line("Miloro Peterson's Principles; Fonseca OMFS; Cummings Otolaryngology"))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 13: NERVE INJURY
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(13, "NERVE INJURY: CLASSIFICATION & MANAGEMENT"))
story.append(sp(8))
story.append(Paragraph(b("Classification Systems"), SEC_TITLE))
rows13 = [
    ["Neuropraxia","1st","Conduction block; axon intact","Full, spontaneous","Observation"],
    ["Axonotmesis","2nd","Axon lost; endoneurium intact","Good, spontaneous","Observation"],
    ["—","3rd","Axon + endoneurium lost","Incomplete","Medical ± surgical"],
    ["—","4th","Axon + endo + perineurium lost","Poor","Surgery usually needed"],
    ["Neurotmesis","5th","Complete transection","None","Surgery required"],
    ["—","6th (Mackinnon)","Mixed grade injury","Variable","Case-by-case"],
]
story.append(make_table(["Seddon","Sunderland","Pathology","Spontaneous Recovery","Management"],
                        rows13,[2.5*cm,3.5*cm,5.5*cm,3.5*cm,3*cm]))
story.append(sp(6))
story.append(Paragraph(b("Assessment Protocol"), SEC_TITLE))
for txt in [
    "History and examination: first and most important",
    f"{b('Neurosensory testing:')} light touch (cotton wool), two-point discrimination (2PD normal <6 mm), pinprick, thermal",
    f"{b('Imaging:')} MRI or high-resolution ultrasound for nerve continuity assessment",
    f"{b('Timeline:')} reassess at 1, 3, 6, and 12 months; most neuropraxia resolves by 3 months",
]:
    story.append(bp(txt))
story.append(sp(6))
story.append(Paragraph(b("Procedure-Specific Nerve Risks"), SEC_TITLE))
rows13b = [
    ["Third molar extraction","IAN","0.5-5%","CBCT pre-op; coronectomy if intimate"],
    ["Third molar extraction","Lingual nerve","0.5-2%","Avoid lingual flap; careful elevator placement"],
    ["BSSO","IAN (transient)","13-40%","Keep IAN in distal segment; avoid excessive retraction"],
    ["Le Fort I","Infraorbital nerve","Varies","Careful periosteal elevation; limit traction"],
    ["Parotidectomy","Facial nerve (all branches)","Varies by tumour","Trunk identification first; bipolar dissection"],
    ["Condylar ORIF","Marginal mandibular / frontal","Significant","Approach selection; nerve monitoring"],
    ["Submandibular excision","Marginal mandibular + hypoglossal","Significant","Hayes-Martin; identify and preserve CN XII"],
    ["Implant placement","IAN / mental nerve","Varies","2 mm clearance from IAN; assess anterior loop"],
]
story.append(make_table(["Procedure","Nerve at Risk","Incidence","Prevention"],
                        rows13b,[4*cm,3.5*cm,2.5*cm,7*cm]))
story.append(sp(4))
story.append(warn_box(
    "Trigeminal nerve injuries are LARGELY PREVENTABLE. They are often mixed "
    "(numbness + neuropathic pain), significantly impact quality of life, and carry medicolegal implications. "
    "Mandatory documented informed consent is required before every procedure where nerve risk exists. "
    "(Renton & Van der Cruyssen, Oral Surgery 2020)"))
story.append(sp(4))
story.append(ref_line("Seddon Brain 1943; Sunderland Brain 1951; Renton & Van der Cruyssen Oral Surg 2020"))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 14: COMPLICATIONS
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(14, "COMPLICATIONS — ANATOMICAL BASIS & MANAGEMENT"))
story.append(sp(8))
rows14 = [
    ["Third molar","IAN / lingual nerve injury",
     "Proximity — IAN in canal, lingual nerve 2-3 mm from crest",
     "Observe → medical (gabapentin/steroids) → microsurgery (<3 months)"],
    ["BSSO","Bad split / IAN injury",
     "Thin buccal plate; IAN intimacy with medial cortex",
     "Re-fixate; intraoperative nerve decompression; repair if transected"],
    ["Le Fort I","Haemorrhage",
     "Maxillary artery / descending palatine artery at pterygomaxillary junction",
     "Packing → maxillary artery ligation → embolisation"],
    ["Orbital repair","Blindness",
     "Retrobulbar haemorrhage; optic nerve posterior floor",
     "IMMEDIATE lateral canthotomy + inferior cantholysis"],
    ["Parotidectomy","Facial palsy / Frey syndrome",
     "CN VII in gland; auriculotemporal misdirection",
     "Nerve repair; botulinum toxin for Frey"],
    ["Neck dissection","Chyle leak",
     "Thoracic duct at left level IV",
     "Low-fat diet + pressure → surgical ligation"],
    ["Tracheostomy","Tracheoinnominate fistula",
     "Brachiocephalic artery erosion by cuff / tube tip",
     "Hyperinflate cuff → digital compression → emergency sternotomy"],
    ["BSSO / genioplasty","'Witch's chin'",
     "Mentalis not re-sutured; chin ptosis",
     "Prevention: 2-layer mentalis closure; late: revision surgery"],
    ["Orbital blowout repair","Inferior rectus entrapment post-plate",
     "Plate placed over inferior rectus",
     "Protect muscle; place mesh posterior to muscle bulk"],
]
story.append(make_table(["Procedure","Complication","Anatomical Basis","Management"],
                        rows14,[3.5*cm,3.5*cm,5*cm,5*cm]))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# MODULE 15: GRAND SUMMARY
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header(15, "GRAND SUMMARY — LANDMARKS & QUICK REFERENCE"))
story.append(sp(8))
story.append(Paragraph(b("Region-by-Region Summary Table"), SEC_TITLE))
rows15 = [
    ["Scalp","Loose areolar (danger layer)","Direct / coronal approach"],
    ["Temple","Frontal branch within TPF","Coronal — sub-fascial plane"],
    ["Orbit","Optic nerve; inferior rectus","Transconjunctival approach"],
    ["Midface","Descending palatine / maxillary artery","Upper buccal sulcus"],
    ["Parotid / TMJ","Facial nerve branches","Modified Blair / retromandibular"],
    ["Mandible","IAN, mental, marginal mandibular nerves","Vestibular / Risdon"],
    ["Floor of mouth","Lingual artery (deep to hyoglossus)","Transoral"],
    ["Submandibular","Danger quartet","Submandibular (Hayes-Martin)"],
    ["Neck","IJV, CN XI, carotid, thoracic duct","Selective neck dissection"],
    ["Airway","RLN, thyroid isthmus","Tracheostomy / cricothyroidotomy"],
]
story.append(make_table(["Region","Critical Structure","Primary Approach"],
                        rows15,[3.5*cm,7*cm,6.5*cm]))
story.append(sp(8))
story.append(Paragraph(b("Clinical Landmarks — Top to Bottom"), SEC_TITLE))
landmarks = [
    ("Supraorbital notch","Junction medial 1/3 : lateral 2/3 of orbital rim","Supraorbital / supratrochlear nerves + vessels"),
    ("Infraorbital foramen","1 cm below orbital rim on the pupillary line","Infraorbital nerve; injections; ORIF approach"),
    ("Tragal pointer","Tip of tragal cartilage","1 cm deep & inferior = CN VII trunk"),
    ("Pitanguy's line","Tragus → 1.5 cm above lateral brow","Frontal branch CN VII course"),
    ("Stensen's duct orifice","Opposite upper 2nd molar; anterior masseter border","Parotid duct; salivary calculi"),
    ("Mental foramen","Below 2nd premolar, 1 cm above lower border","Mental nerve; implant planning"),
    ("Hyoid bone","C3","Floor of mouth; tongue base attachment"),
    ("Thyroid cartilage","C4-C5","Carotid bifurcation level"),
    ("Cricothyroid membrane","Between thyroid and cricoid cartilages","Emergency airway"),
    ("Cricoid cartilage","C6","RLN enters larynx here; tracheostomy reference"),
    ("Tracheal rings 2-4","Below cricoid","Tracheostomy insertion site"),
]
rows_l = [[n,pos,sig] for n,pos,sig in landmarks]
story.append(make_table(["Landmark","Level / Location","Applied Significance"],
                        rows_l,[4.5*cm,4.5*cm,8*cm]))
story.append(sp(8))
story.append(Paragraph(b("Radiographic Landmarks"), SEC_TITLE))
rows_r = [
    ["OPG","Mandibular canal, mental foramen, lingula, pterygomaxillary fissure",
     "Review quadrant by quadrant; check symmetry; assess IAN proximity to roots"],
    ["CBCT","IAN canal 3D position, anterior mental loop, sinus septa, implant bone",
     "Mandatory before BSSO, complex extractions, implants"],
    ["CT","Frontal sinus tables, orbital walls, Le Fort lines, carotid encasement",
     "Carotid >270 encasement = inoperable; assess posterior table fractures"],
    ["Cephalometry","S, N, A, B, ANS, PNS, Go, Pog; SNA / SNB / ANB",
     "Orthognathic planning; ANB normal 2 degrees; class III <0 degrees"],
]
story.append(make_table(["Modality","Key Landmarks","Applied Use"],
                        rows_r,[2.5*cm,8*cm,6.5*cm]))
story.append(PageBreak())

# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# REFERENCES
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
story.append(module_header("—", "REFERENCES"))
story.append(sp(8))
story.append(Paragraph(b("Standard Textbooks"), SEC_TITLE))
books = [
    "Fonseca RJ. Oral and Maxillofacial Surgery, 3rd Ed. Elsevier Saunders.",
    "Miloro M. Peterson's Principles of Oral and Maxillofacial Surgery, 3rd Ed. PMPH-USA.",
    "Ellis E, Zide MF. Surgical Approaches to the Facial Skeleton, 2nd Ed. Lippincott Williams & Wilkins.",
    "Kademani D, Tiwana PS. Atlas of Oral and Maxillofacial Surgery. Elsevier Saunders.",
    "Brennan PA. Clinical Head and Neck Anatomy for Surgeons. CRC Press.",
    "Standring S (Ed.). Gray's Anatomy: The Anatomical Basis of Clinical Practice, 41st Ed. Elsevier.",
    "Norton NS. Netter's Head and Neck Anatomy for Dentistry, 3rd Ed. Elsevier.",
    "Cummings CW et al. Cummings Otolaryngology: Head and Neck Surgery, 7th Ed. Elsevier.",
    "Scott-Brown's Otorhinolaryngology Head and Neck Surgery. CRC Press/Taylor & Francis.",
]
for b_ in books:
    story.append(bp(b_))
story.append(sp(8))
story.append(Paragraph(b("Key Articles"), SEC_TITLE))
articles = [
    "Seddon HJ. A classification of nerve injuries. Brain. 1943;66(4):237-288.",
    "Sunderland S. A classification of peripheral nerve injuries producing loss of function. Brain. 1951;74(4):491-516.",
    "Champy M, Lodde JP, Schmitt R, et al. Mandibular osteosynthesis by miniature screwed plates via a buccal approach. J Maxillofac Surg. 1978;6(1):14-21.",
    "Markowitz BL, Manson PN, Sargent L, et al. Management of the medial canthal tendon in nasoethmoid orbital fractures. Plast Reconstr Surg. 1991;87(5):843-853.",
    "Pitanguy I, Ramos AS. The frontal branch of the facial nerve: importance of its variations in face lifting. Plast Reconstr Surg. 1966;38(4):352-356.",
    "Renton T, Van der Cruyssen F. Diagnosis, pathophysiology, management and prevention of trigeminal nerve injuries. Oral Surg. 2020;13(4):397-423.",
    "Mitz V, Peyronie M. The superficial musculo-aponeurotic system (SMAS) in the parotid and cheek area. Plast Reconstr Surg. 1974;54(1):80-88.",
]
for a_ in articles:
    story.append(bp(a_))
story.append(sp(12))
story.append(HRFlowable(width="100%", thickness=1, color=GOLD, spaceAfter=8))
story.append(Paragraph(
    "Department of Oral and Maxillofacial Surgery  |  "
    "Prepared by Dr. Hrushikesh Acharya (JR1)  |  June 2026  |  "
    "For educational use only",
    FOOTER_TXT))

# ── Build document ──────────────────────────────────────────────────────────────
doc = BaseDocTemplate(
    OUTPUT,
    pagesize=A4,
    leftMargin=MARGIN, rightMargin=MARGIN,
    topMargin=MARGIN+0.5*cm, bottomMargin=MARGIN+0.5*cm,
)

frame_cover = Frame(0, 0, PAGE_W, PAGE_H, leftPadding=MARGIN,
                    rightPadding=MARGIN, topPadding=MARGIN,
                    bottomPadding=MARGIN, id="cover")
frame_body  = Frame(MARGIN, 1.5*cm, PAGE_W-2*MARGIN, PAGE_H-3.5*cm,
                    id="body")

doc.addPageTemplates([
    PageTemplate(id="First", frames=[frame_cover], onPage=on_first_page),
    PageTemplate(id="Later", frames=[frame_body],  onPage=on_page),
])

from reportlab.platypus import NextPageTemplate
story.insert(0, NextPageTemplate("Later"))
story.insert(0, NextPageTemplate("First"))

# Shift cover elements to use cover frame properly
# Re-insert page template switch after cover PageBreak
# Find the PageBreak after cover and insert the template switch
for i, el in enumerate(story):
    if isinstance(el, PageBreak) and i > 3:
        story.insert(i+1, NextPageTemplate("Later"))
        break

doc.build(story)
print("PDF created:", OUTPUT)
Running Command

cd /home/daytona/workspace/surgical-anatomy-study-guide && python3 generate_stud…

Editing File

~/surgical-anatomy-study-guide/generate_study_guide.py

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/surgical-anatomy-study-guide/generate_study_guide.py'
Running Command

cd /home/daytona/workspace/surgical-anatomy-study-guide && python3 generate_stud…

Editing File

~/surgical-anatomy-study-guide/generate_study_guide.py

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/surgical-anatomy-study-guide/generate_study_guide.py'
Running Command

cd /home/daytona/workspace/surgical-anatomy-study-guide && python3 generate_stud…

Running Command

ls -lh /home/daytona/workspace/surgical-anatomy-study-guide/Surgical_Anatomy_HN_…

Your study guide PDF is ready:

Surgical Anatomy HN Study Guide

PDF Document · PDF


Here is what the PDF contains across 15 colour-coded modules:
ModuleTopicApplied Highlights
1Universal 7-layer templateGolden rule: stay superficial to SMAS
2Scalp (SCALP mnemonic)Danger layer, calvarium graft harvest
3Forehead, frontal sinus, coronal approachPitanguy's line, safe-plane protocol
4Eyelid, orbit, orbital surgeryRetrobulbar haemorrhage emergency, transconjunctival approach
5Midface, buttresses, Le Fort fracturesLe Fort I osteotomy step-by-step, haemorrhage control
6Nose, NOE, ZMCMarkowitz-Manson classification, telecanthus detection
7Parotid gland, parotidectomy3-landmark nerve trunk identification, Frey syndrome
8TMJ, condylar fractures, ITFHolmlund-Hellsing line, pterygoid plexus danger
9Mandible, lower face, BSSO, genioplastyChampy's lines, BSSO step-by-step, IAN/lingual risks
10Floor of mouth, submandibularHyoglossus landmark, SMG excision 11-step guide
11Neck, neck dissection, deep space infectionsLudwig's pathway, node levels with drain map
12Airway (tracheostomy, cricothyroidotomy)Layer-by-layer, tracheoinnominate fistula
13Nerve injury classification & managementSeddon/Sunderland comparison, procedure-specific incidence table
14Complications tableAnatomical basis + management for every major procedure
15Grand summary + landmarks + referencesTop-to-bottom clinical landmarks, OPG/CBCT/CT/cephalometry
Design features: dark blue module banners, amber clinical pearls boxes, green applied tips boxes, colour-coded danger (red) and safe (green) structures in every table, and a complete reference list covering all 9 standard textbooks and 7 key articles cited in the seminar.
This is a shared conversation. Sign in to Orris to start your own chat.