/* =========================================================
   DISSERTATION PAGE FOUNDATION
========================================================= */

/* Page background + typography */
.dissertation-body {
    font-family: 'Georgia', 'Libre Baskerville', serif;
    background: linear-gradient(to bottom, var(--bg-0), var(--bg-1));
    color: var(--ink);
    line-height: 1.8;
    margin: 0;
    padding: 0;
  }
  
  .center-block { text-align: center; }
  
  /* Decorative section gap */
  .section-break {
    border: none;
    height: 0;
    margin: 200px auto;
    width: 60%;
  }
  
  /* =========================================================
     MAIN CONTENT CONTAINER
  ========================================================= */
  
  .dissertation-main {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px 20px;
    background: linear-gradient(to bottom right, var(--panel-0), var(--panel-1));
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  }
  
  /* Title wrapper */
  .dissertation-title {
    text-align: center;
    margin-bottom: 40px;
  }
  
  /* Animated page header */
  .dissertation-header {
    opacity: 0;
    transform: translateY(-30px);
    animation: elegantDropIn 1.2s ease-out forwards;
  }
  
  @keyframes elegantDropIn {
    0%   { opacity: 0; transform: translateY(-30px); }
    60%  { opacity: 1; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  
  /* =========================================================
     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; }
  
  /* =========================================================
     TABLE OF CONTENTS
  ========================================================= */
  
  .toc {
    max-width: 800px;
    margin: 2rem auto 3.5rem;
    padding: 0 16px;
  }
  
  .toc-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .5rem;
    align-items: baseline;
    font-size: 16px;
    font-weight: 600;
    margin: .1rem 0;
    color: var(--text-primary);
  }
  
  .toc-item.sub {
    display: block;
    font-size: 14px;
    font-weight: 400;
    margin-left: 1.5rem;
    color: var(--text-2);
  }
  
  .toc-link {
    text-decoration: none;
    color: var(--text-primary);
    white-space: normal;
    word-break: break-word;
  }
  
  .toc-link:hover       { text-decoration: underline; color: var(--accent-2); }
  .toc-link:focusVisible { outline: 2px solid var(--ring); outline-offset: 2px; }
  
  .toc-leader { border-bottom: 1px dotted var(--border-2); height: 1px; }
  .toc-num    { font-variant-numeric: tabular-nums; color: var(--text-3); opacity: .9; }
  
  /* Mobile TOC simplification */
  @media (max-width: 600px){
    .toc { margin: 1.25rem auto 2.5rem; padding: 0 12px; }
    .toc-item { grid-template-columns: 1fr auto; gap: .4rem; }
    .toc-leader { display:none; }
    .toc-item.sub { margin-left: 1rem; }
  }
  
  /* =========================================================
     HEADINGS & PARAGRAPH TEXT
  ========================================================= */
  
  .dissertation-title h1,
  .dissertation-title h2 {
    font-family: 'Georgia', 'Libre Baskerville', serif;
    color: var(--ink);
    font-size: 26px;
    font-weight: 600;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 6px;
    margin-bottom: 12px;
    display: inline-block;
  }
  
  /* Section headings */
  .dissertation-text h2 {
    font-family: 'Georgia', 'Libre Baskerville', serif;
    color: var(--ink);
    font-size: 20px;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-2);
    padding-bottom: 4px;
  }
  
  /* Paragraphs */
  .dissertation-text,
  .dissertation-text p {
    margin-bottom: 18px;
  }
  
  /* Bold text */
  .dissertation-text b { font-weight: bold; color: var(--ink); }
  
  /* Section heading in TOC-only block */
  .table-of-contents h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--border-2);
    padding-bottom: 4px;
    margin-bottom: 15px;
  }

  /* Dissertation text links */
.dissertation-body a {
    color: var(--ink);
    text-decoration: none;  /* adjust if you want underline */
  }
  
  .dissertation-body a:hover {
    color: var(--accent-2); /* your existing hover tone */
    text-decoration: underline;
  }
  
  .dissertation-body a:visited {
    color: var(--ink);
  }
  