

/* THIS IS THE STYLE FOR THE INDIVIDUAL ESSAY PAGES */

  
  .essay-carousel-heading {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    text-align: center;         /* centers the text */
    margin-top: 2rem;
    margin-bottom: 1rem;
    width: 100%;
    text-decoration: none;       /* removes any underline */
    border: none;      
  }
  
  [data-theme="dark"] .essay-carousel-heading {
    color: var(--text-primary);
  }
  
  
  /* === Essay Carousel (titles below images) === */
  .essay-carousel-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  
  .essay-carousel-track {
    display: inline-flex;          /* keeps them side by side */
    white-space: nowrap;
    gap: 1.5rem;
    width: max-content;
    padding: 0 1rem;
    align-items: flex-start;
  }
  
  .essay-card {
    display: inline-block;
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
  }
  
  .essay-card img {
    height: 140px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-shadow: var(--shadow-m);
    transition: transform 0.25s ease;
  }
  
  .essay-card:hover img {
    transform: scale(0.95);
  }
  
  /* title underneath */
  .essay-card-title {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--text);
    margin-top: 0.4rem;
    white-space: normal;
    line-height: 1.2;
  }
  
  [data-theme="dark"] .essay-card-title {
    color: var(--text-primary);
  }
  
  /* scrollbar */
  .essay-carousel-wrapper::-webkit-scrollbar {
    height: 6px;
  }
  .essay-carousel-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-2);
    border-radius: 4px;
  }
  .essay-carousel-wrapper::-webkit-scrollbar-track {
    background: transparent;
  }
  .nav-bar-essays {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 60px 0 40px;
}

.nav-bar-essays .nav-button {
  font-family: 'Georgia', serif;
  font-size: 15px;
  color: var(--ink);
  padding: 10px 22px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  text-decoration: none;

  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Hover / focus = match View All button */
.nav-bar-essays .nav-button:hover,
.nav-bar-essays .nav-button:focus-visible {
  background: var(--ink);
  color: var(--text-4);
  border-color: var(--ink);
}

/* Active—small ink press, subtle */
.nav-bar-essays .nav-button:active {
  background: var(--ink);
  color: var(--text-4);
  transform: translateY(1px);
}

  
  
/* === Body Background === */
.essay-body {
font-family: 'Georgia', 'Libre Baskerville', serif;
background: linear-gradient(to bottom, var(--bg-0), var(--bg-1));
color: var(--ink);
margin: 0;
padding: 0;
}

/* === Main Essay Container === */
.essay-main {
max-width: 820px;
margin: 40px auto;
padding: 30px;
background: linear-gradient(to bottom right, var(--panel-0), var(--panel-1));
border-radius: 12px;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
transition: box-shadow 0.3s ease;
}

.essay-title {
font-size: 26px;
font-weight: 600;
color: var(--ink);
text-align: center;
border-bottom: 2px solid var(--ink);
display: inline-block;
padding-bottom: 6px;
margin: 0 auto 30px auto;
line-height: 1.4;

/* Animation */
opacity: 0;
transform: translateY(-20px);
animation: titleSlideDown 1s ease-out 0.3s forwards;
}

.banner-container {
text-align: center;
}
.essay-title {
display: inline-block;
border-bottom: 2px solid var(--ink);
}



@keyframes titleSlideDown {
from {
  opacity: 0;
  transform: translateY(-20px);
}
to {
  opacity: 1;
  transform: translateY(0);
}
}


/* === Text Content === */
.essay-text {
font-size: 16px;
line-height: 1.9;
margin-bottom: 20px;
text-align: justify;
color: var(--ink);
}

/* === Essay Images === */
.essay-image {
display: block;
max-width: 90%;
margin: 30px auto;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
border: none;
}

/* === Blockquotes === */
blockquote {
font-style: italic;
color: var(--text-3);
background-color: var(--muted);
padding: 12px 20px;
margin: 30px 0;
border-left: 4px solid var(--ink);
border-radius: 6px;
}

/* === Hyperlinks === */
a {
color: var(--ink);
text-decoration: none;
position: relative;
transition: color 0.3s ease;
}

a:hover {
color: var(--accent-3);
text-decoration: underline;
text-underline-offset: 3px;
}

/* === Superscripts and HRs === */
sup {
font-size: 0.8rem;
vertical-align: super;
}

hr {
border: 0;
border-top: 1px solid var(--border);
margin: 30px 0;
}
.footnote-ref {
text-decoration: none;
}
.footnote-ref:hover {
text-decoration: underline;
}

.footnotes {
margin-top: 1rem;
padding-left: 1.2rem;
}
.footnotes li {
margin: .35rem 0;
}

.footnote-back {
margin-left: .4rem;
text-decoration: none;
font-variant-emoji: text; /* Safari/iOS: prefer text glyphs */
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* avoid Apple Color Emoji */
}
.footnote-back:hover {
text-decoration: underline;
}

/* Always insert the text-style arrow before the link text */
.footnote-back::before {
content: "\21A9\FE0E"; /* ↩ + FE0E (force text glyph) */
margin-right: .25em;
}


  /* =========================================================
     COPY / CITE BUTTON + TOOLTIPS
  ========================================================= */
  
  .note-pop {
    position: absolute;
    z-index: 1000;
    max-width: 32ch;
    padding: .6rem .7rem;
    background: var(--panel-0);
    color: var(--text);
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-m);
    border-radius: .5rem;
    font-size: .9rem;
    display: none;
  }
  
  .copy-cite {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1;
    padding: 0;
    margin-left: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.12s ease;
  }
  
  .copy-cite:hover   { color: var(--accent-2); transform: scale(1.1); }
  .copy-cite:active  { transform: scale(0.95); }
  .copy-cite:focus-visible { outline: none; box-shadow: none; }
  .copy-cite.copied { color: #2e7d32; }
  
  .copy-cite i { pointer-events: none; }
  
  /* Footnote formatting */
  .footnotes li { display: list-item; }
  

/* === Responsive Tweaks === */
@media (max-width: 768px) {
.essay-main {
  padding: 20px;
}

.essay-title {
  font-size: 22px;
}

.essay-text {
  text-align: left;
}

.essay-image {
  max-width: 100%;
}
}

.essay-main {
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 1.2s ease-out forwards;
}

@keyframes fadeInUp {
to {
  opacity: 1;
  transform: translateY(0);
}
}