/* --- THE ICONIC NAVBAR (Final Polish) --- */
.navbar-brand {
  display: flex !important;
  align-items: center;
  padding-left: 10px; /* Moves the 'o' away from the very edge */
}

.navbar-brand img {
  content: url('favicon1.png') !important;
  /*  height: 52px !important; /* Increased from 42px to make it less 'shy' */
  width: auto;
  /*  filter: drop-shadow(0 0 6px rgba(6, 111, 184, 0.7)); /* Stronger brand glow */
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05); /* A subtle 'living' response to the mouse */
}

/* Ensure the duplicate text remains hidden */
.navbar-title {
  display: none !important;
}

/* 3. WHITE LINKS -> BLUE ON HOVER */
.navbar-nav .nav-link {
  color: #f2f2f2 !important; /* Clean white for the 'Milkman' look */
  font-family: 'Encode Sans Condensed', sans-serif !important;
  font-weight: 600 !important;
  transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: #066fb8 !important; /* The blue reveal */
}
/* --- 0. LOAD FONTS (Local Files) --- */
/* Note: The <link> tag for Typekit must go in _quarto.yml, not here! */

/* Encode Sans Condensed (Sidebars) */
@font-face {
    font-family: 'Encode Sans Condensed';
    src: url('fonts/EncodeSansCondensed-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Encode Sans Condensed';
    src: url('fonts/EncodeSansCondensed-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}



/* Rosario (Headings - Sans) */
@font-face {
  font-family: 'Rosario-Light';
  src: url('fonts/Rosario-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Rosario';
  src: url('fonts/Rosario-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'Rosario';
  src: url('fonts/Rosario-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  
}

/* Cormorant (Backup Serif) */
@font-face {
  font-family: 'Cormorant';
  src: url('fonts/Cormorant-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Cormorant';
  src: url('fonts/Cormorant-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* Cormorant SC (Headings/Small Caps) */
@font-face {
  font-family: 'Cormorant SC';
  src: url('fonts/CormorantSC-Medium.ttf') format('truetype');
  font-weight: normal; /* Map file's bold to normal usage if needed */
  font-style: normal;
}

/* Adobe Caslon Pro (Primary Body) */
@font-face {
  font-family: 'Adobe Caslon Pro';
  src: url('fonts/ACaslonPro-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Adobe Caslon Pro';
  src: url('fonts/ACaslonPro-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'Adobe Caslon Pro';
  src: url('fonts/ACaslonPro-Italic.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
}

/* Plantin (Secondary Body) */
@font-face {
  font-family: 'Plantin MT Pro';
  src: url('fonts/PlantinMTProLight.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'SecretaryHand';
  src: url('fonts/SecretaryRegular.ttf') format('truetype');
}

.manuscript-hand {
  font-family: 'SecretaryHand', serif;
  font-size: 1.5rem; /* Secretary hand often needs to be slightly larger to be legible */
  line-height: 1.4;
  color: #2c2c2c;
}

/* --- 1. GLOBAL TYPOGRAPHY --- */



body {
  /* Prioritizes Adobe Caslon, falls back to Plantin, then Cormorant */
  font-family: "Adobe Caslon Pro", "Plantin MT Pro", "Cormorant", serif; 
  font-size: 1.05em;      
  color: #333333;
  line-height: 1.2;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Cormorant SC", "Encode Sans Condensed", sans-serif;
  font-weight: normal;
  color: #2c3e50;
  margin-top: 1.0em;
}


.manuscript-hand {
  font-family: 'SecretaryHand', serif;
  font-size: 1.5rem; /* Secretary hand often needs to be slightly larger to be legible */
  line-height: 1.4;
  color: #2c2c2c;
}



.verse {
    font-family: 'Encode Sans Condensed', sans-serif !important;
    font-size: 15px;
    line-height: 0.75; /* Tight leading for that 'Manuscript' feel */
    margin-left: 10%;  /* Responsive inset */
    margin-right: 5%;
    margin-top: 1.0em;
    margin-bottom: 1.5em;
    white-space: pre-line; /* CRUCIAL: Honors your line breaks in the code */
    color: #333;
    border-left: 2px solid #eee;
    padding-left: 20px;
    white-space: pre-line !important;
    display: block;
}

.manuscript-exhibit {
  margin: 3rem 0;
  max-width: 900px;
}

.hand-d-caption {
  font-family: 'Encode Sans Condensed', sans-serif !important;
  font-size: 0.7rem;
  font-weight: 700;
  color: #066fb8 !important;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: block;
}

.hand-d-verse {
  font-family: 'SecretaryHand', serif !important;
  font-size: 1.9rem; 
  line-height: 1.5 !important; 
  color: #1a1a1a; /* Deep 'Iron Gall' black */
  
  background-image: url("images/paper_texture_13.jpg") !important;
  background-size: cover;
  background-position: center;
  
  margin: 2.5rem 0;
  padding: 50px 70px; /* Extra 'breathing room' for the paper edges */
  border-left: 5px solid var(--pfc-blue); 
  box-shadow: 2px 5px 15px rgba(0,0,0,0.15); /* Gives the paper some 'weight' */
  white-space: pre-wrap;
  display: block;
}
/* For line numbers or marginalia */
.line-num {
  font-family: 'Encode Sans Condensed', sans-serif;
  font-size: 0.8rem;
  color: #066fb8;
  position: absolute;
  left: -40px;
}


/* --- 2. UTILITY CLASSES --- */

/* The Unbridgeable Divider */
hr.pfc-divider {
    border: 0;
    border-top: 4px double #444; /* Two solid lines, dark grey */
    height: 4px;                  /* Occupies space */
    margin-top: 1 rem;             /* Big gap above */
    margin-bottom: 2rem;          /* Big gap below */
    opacity: 1;                   /* Force full visibility */
    width: 100%;                  /* Span the full width */
}

.sc {
  font-family: 'Cormorant SC', serif; 
  font-variant: small-caps; 
  /* FIXED: Removed '#' which breaks CSS, use proper CSS comments */
  /* text-transform: lowercase; */ 
  font-size: 1.05em; /* FIXED: removed space between number and 'em' */
  letter-spacing: 0.00em; 
}

/* Sidebars, Margins, Captions */
.aside, 
.margin-note, 
.column-margin,
figcaption,
.callout-note, 
.figure-caption {
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 0.75rem;      
    line-height: 1.4;        
    text-align: left;        
    hyphens: auto;           
    letter-spacing: 0.01em;  
    color: #444;             
}

/* Figure Captions Bold Label */
.figure-caption strong {
    font-weight: 500;
    color: #222;
}

/* --- 3. LAYOUT & NAVIGATION --- */

.sidebar {
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
}

.sidebar-title {
  font-family: "Encode Sans Condensed", sans-serif;
  font-weight: bold;
}

.quarto-title-meta {
  display: none; 
}

a {
  color: #0056b3;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Image Flow Helpers */
.hero-top {
  margin-top: -3.5rem; 
  margin-bottom: 2rem; 
}

.flow-left {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
  max-width: 40%; 
  height: auto;
}

.flow-right {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
  max-width: 40%; 
  height: auto;
}



/*Colour the TOC links in the right sidebar to match the image's tone

/* Body Links */
a {
  color: var(--pfc-link-blue);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  text-decoration: underline;
  color: #055a96; /* A slightly deeper shade for the hover state */
}

/* Sidebar Active Items */
.sidebar nav[role="doc-toc"] ul li a.active,
.sidebar .sidebar-item-text.active {
  color: var(--pfc-link-blue) !important;
  font-weight: 600;
}



/* --- THE MOST IMPORTANT PART --- */
/* Quarto's modern layout engine (Grid/Flex) breaks old-school floats.
   We must turn the main page container back into a simple block 
   for floats to work. */
main.content, .page-columns .main, .main-container {
    display: block !important;
}


/* --- 4. NAVIGATION & TOC TYPOGRAPHY --- */

/* Target the Left Sidebar (Navigation) & Right Sidebar (Table of Contents) */
#quarto-sidebar .sidebar-item-text,   /* The actual links in the left menu */
#quarto-sidebar .sidebar-title,       /* The section headers in the left menu */
#quarto-margin-sidebar .nav-link,     /* The links in the Right TOC */
nav[role="doc-toc"] {                 /* The TOC container */
    font-family: 'Encode Sans Condensed', sans-serif !important;
    font-size: 0.85em;                 /* Matches your other sidebars */
    letter-spacing: 0.00em;
}

/* Optional: Target the Top Navigation Bar links too if you want them condensed */
.navbar-nav .nav-link {
    font-family: 'Encode Sans Condensed', sans-serif !important;
    font-weight: 700; /* Make them slightly bolder for readability on the image */
}


/* --- Adjust Gallery Spacing --- */
/* This targets the grid container inside Quarto layout panels */
.quarto-layout-panel .quarto-layout-row {
    /* Change 1em to whatever you like. e.g., 5px for tight, 2em for wide. */
    gap: 0.25em !important; 
}


/* Force 3-column layout on wide screens */
@media (min-width: 768px) {
  .article-snapshots {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 20px !important;
  }
}

/* Stack vertically only on very narrow screens (Z Fold front) */
@media (max-width: 767px) {
  .article-snapshots {
    display: block !important;
  }
  .snapshot-card {
    margin-bottom: 30px;
  }
}

.snapshot-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Keeps all images uniform in the 'Gallery' */
    filter: grayscale(100%);
}



/* Make the Hypothesis triggers match the site's professional tone */
.hypothesis-trigger {
    background-color: rgba(0, 0, 0, 0.05) !important; /* Almost transparent */
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.hypothesis-trigger:hover {
    background-color: #000 !important; /* Goes black on hover to match your nav bar */
    color: #fff !important;
}
}

.snapshot-card {
    padding: 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.snapshot-card:hover {
    background: #fcfcfc;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.snapshot-card h4 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    color: #000;
}

.snapshot-card img {
    border-radius: 2px;
    margin-bottom: 10px;
    filter: grayscale(100%); /* Keeps the B&W Masterpiece aesthetic */
    transition: filter 0.5s ease;
}

.snapshot-card:hover img {
    filter: grayscale(0%); /* Brings them to life on hover */
}

/* Nudge Hypothesis out of the way on the Fold */
@media (max-width: 600px) {
    .hypothesis-trigger {
        transform: scale(0.8); /* Make the icons slightly smaller */
        right: 0 !important;   /* Hug the edge of the screen */
    }
}


/* The Wax Seal Button */
.wax-seal-btn {
    display: inline-block;
    margin-top:  5 px;
    padding: 10px 20px 10px 45px; /* Extra room on the left for the seal */
    position: relative;
    font-family: 'Encode Sans Condensed', sans-serif;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.wax-seal-btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #8b0000; /* Deep Wax Red */
    border-radius: 50%;
    /* The 3D 'Poured Wax' Effect */
    box-shadow: 
        inset -2px -2px 4px rgba(0,0,0,0.4),
        inset 2px 2px 4px rgba(255,255,255,0.2),
        2px 2px 5px rgba(0,0,0,0.2);
    border: 1px solid #700000;
}

/* The 'Seal' Insignia - A stylized 'O' for Oxford */
.wax-seal-btn::after {
    content: "O";
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-family: serif;
    pointer-events: none;
}

/* Subordinate text for the Snapshot Gallery */
.snapshot-card p, 
.article-snapshots .snapshot-card {
    font-size: 0.9rem !important; /* Adjust to 0.85rem if you want it even smaller */
    line-height: 1.4;
    color: #555; /* A slightly softer grey to show deference to the black body text */
    letter-spacing: 0.01em;
    margin-top: 8px;
}

.wax-seal-btn:hover {
    color: #8b0000 !important;
}

.wax-seal-btn {
    font-size: 0.75rem !important;

.wax-seal-btn:hover::before {
    background: #a00000; /* Brightens on hover */
    transform: translateY(-50%) scale(1.05);
}EN