/* ==========================================================================
   Farzulla Research — Unified Stylesheet
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --bg: #0e1114;
  --bg-card: #1a1f25;
  --bg-hover: #242a32;
  --border: #2d3642;
  --teal: #1A7F64;
  --teal-bright: #26C9A3;
  --teal-dim: #11332a;
  --text: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --status-review: #2e7d32;
  --status-preprint: #1A7F64;
  --status-upcoming: #6366f1;
}

/* --- Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Base --- */
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 900px;
}

.container--prose {
  max-width: 800px;
}

a {
  color: var(--teal-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* ==========================================================================
   Navigation (shared across ALL pages)
   ========================================================================== */

.site-nav {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-nav .logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.site-nav .logo a {
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Hamburger menu (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.25rem;
  }
}


/* ==========================================================================
   Homepage (index.html)
   ========================================================================== */

/* Hero */
.hero {
  padding: 8rem 0 6rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 3rem;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 600px;
  font-weight: 300;
}

.hero p a {
  color: var(--teal);
  text-decoration: none;
}

/* Section Grid (homepage) */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 6rem;
}

/* Cards (homepage) */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.card:hover {
  background: var(--bg-hover);
  transform: translateY(-4px);
  border-color: #333;
  text-decoration: none;
}

.card-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-arrow {
  align-self: flex-end;
  font-size: 1.5rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Signal Card (homepage CTA) */
.signal-card {
  background: linear-gradient(135deg, rgba(26, 127, 100, 0.1), transparent);
  border: 1px solid rgba(26, 127, 100, 0.3);
}

.signal-card:hover {
  border-color: var(--teal);
  background: linear-gradient(135deg, rgba(26, 127, 100, 0.15), transparent);
}

/* Programs Section (homepage list) */
.programs-section {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
}

.programs-heading {
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.programs-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.program-link {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-link:hover {
  color: var(--text);
  padding-left: 1.5rem;
  border-color: var(--teal);
  background: linear-gradient(90deg, rgba(26, 127, 100, 0.05), transparent);
  text-decoration: none;
}

.program-number {
  font-family: 'Courier Prime', monospace;
  color: var(--teal);
  margin-right: 2rem;
  font-size: 0.9rem;
}

.program-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  flex-grow: 1;
}

.program-desc-short {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-right: 2rem;
  display: none;
}

@media (min-width: 768px) {
  .program-desc-short {
    display: block;
  }
}

.program-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
  color: var(--teal);
  font-size: 1.5rem;
}

.program-link:hover .program-arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ==========================================================================
   Research Page (research.html)
   ========================================================================== */

/* Research header */
.research-header {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.research-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.research-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.research-header .orcid {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  color: var(--teal);
  text-decoration: none;
}

.research-header .orcid:hover {
  color: var(--teal-bright);
}

/* Project Cards (research.html program grid) */
.project-card {
  display: block;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 2px;
  height: 100%;
}

.project-card:hover {
  border-color: var(--teal);
  background: var(--bg-hover);
  transform: translateY(-2px);
  text-decoration: none;
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Filters (research.html) */
.filters {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.filter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--teal);
  color: var(--text);
}

.filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--text);
}


/* ==========================================================================
   Paper List (research.html + project archives)
   ========================================================================== */

.paper-list {
  padding: 2rem 0;
}

.paper-item {
  display: block;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.paper-item:hover {
  background: var(--bg-hover);
  border-color: var(--teal);
  transform: translateX(4px);
}

.paper-item > a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.paper-date {
  color: var(--text-muted);
  font-family: 'Courier Prime', monospace;
}

.paper-status {
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
  color: white;
}

.status-peer-review { background: var(--status-review); }
.status-with-editor { background: #e65100; }
.status-submitted { background: #1565c0; }
.status-preprint { background: var(--status-preprint); }
.status-upcoming { background: var(--status-upcoming); }
.status-published { background: var(--teal); }
.status-working { background: #444; }
.status-transferring { background: #7b1fa2; }

.paper-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.paper-subtitle {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.paper-authors {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.paper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.paper-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(26, 127, 100, 0.15);
  color: var(--teal-bright);
  border-radius: 2px;
}

.paper-views {
  margin-left: auto;
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.paper-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.paper-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
}

.paper-action.pdf {
  background: var(--teal);
  color: white;
}

.paper-action.pdf:hover {
  background: var(--teal-bright);
  text-decoration: none;
}

.paper-action.doi {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.paper-action.doi:hover {
  border-color: var(--teal);
  color: var(--teal-bright);
  text-decoration: none;
}

/* Loading and empty states */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}


/* ==========================================================================
   Paper Detail Pages (papers/*.html, generated by build-papers.js)
   ========================================================================== */

/* Back link */
.back-link {
  display: inline-block;
  padding: 2rem 0 1rem;
  color: var(--teal);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--teal-bright);
}

/* Paper detail header */
.paper-detail-header {
  padding: 0 0 2rem;
  border-bottom: 1px solid var(--border);
}

.paper-detail-header .paper-status {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  background: var(--teal);
}

.paper-detail-header .paper-wp {
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: 'Courier Prime', monospace;
  letter-spacing: 0.05em;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

.paper-detail-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.paper-detail-header .subtitle {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.paper-detail-header .authors {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Paper links row */
.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.2s;
}

.paper-link:hover {
  background: var(--teal-bright);
  text-decoration: none;
}

.paper-link.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.paper-link.secondary:hover {
  border-color: var(--teal);
  color: var(--text);
}

/* Abstract section */
.abstract {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.abstract h2,
.citation h2,
.bibtex h2,
.tags h2 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.abstract p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

/* Citation block */
.citation {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.citation-block {
  background: var(--bg-card);
  padding: 1rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-left: 3px solid var(--teal);
}

/* BibTeX */
.bibtex-block {
  position: relative;
}

.bibtex-code {
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-family: 'Courier Prime', monospace;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-btn:hover {
  opacity: 0.8;
}

/* Tags section */
.tags-section {
  padding: 2rem 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  background: rgba(26, 127, 100, 0.15);
  color: var(--teal-bright);
  border-radius: 2px;
}


/* ==========================================================================
   Archive Pages (projects/*.html)
   ========================================================================== */

.archive-header {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.archive-header .label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
  font-weight: 600;
}

.archive-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}


/* ==========================================================================
   Content Pages (charter.html, methodologies.html, about.html)
   ========================================================================== */

.content-header {
  padding: 4rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.content-header a {
  color: var(--text);
  text-decoration: none;
}

.content-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.content-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.content-main {
  padding: 3rem 0;
  line-height: 1.7;
}

.content-main .lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.content-main section {
  margin-bottom: 2.5rem;
}

.content-main h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.content-main p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.content-main p:last-child {
  margin-bottom: 0;
}

.content-main ul {
  list-style: none;
  margin: 1rem 0;
}

.content-main li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.content-main li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--teal);
}

.meta-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.meta-block p {
  margin-bottom: 0.5rem;
}

.meta-block strong {
  color: var(--text);
}

.focus-area {
  border-left: 2px solid var(--teal);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.focus-area h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.focus-area p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.legal {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.legal p {
  font-style: italic;
}


/* ==========================================================================
   Methodologies Page Specifics
   ========================================================================== */

.methodologies-main section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.methodologies-main section:last-of-type {
  border-bottom: none;
}

.tier-list {
  margin: 1.5rem 0;
}

.tier {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.tier-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--teal);
  min-width: 2rem;
}

.tier-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.tier-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tool-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(26, 127, 100, 0.15);
  color: var(--teal-bright);
  border-radius: 2px;
}


/* ==========================================================================
   Program Pages (programs/*.html)
   ========================================================================== */

.program-hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.program-hero .label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 1.5rem;
  display: block;
}

.program-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.program-overview {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.program-overview p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.program-overview p:last-child {
  margin-bottom: 0;
}

.program-mission {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 4rem;
  font-weight: 300;
}

.visual-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.visual {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.visual-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

.program-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.program-section:last-of-type {
  border-bottom: none;
}

.program-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.program-section h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.questions-list {
  list-style: none;
  counter-reset: question;
}

.questions-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.questions-list li::before {
  content: counter(question);
  counter-increment: question;
  position: absolute;
  left: 0;
  font-family: 'Courier Prime', monospace;
  font-size: 0.9rem;
  color: var(--teal);
  background: rgba(26, 127, 100, 0.1);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.questions-list strong {
  color: var(--text);
}

/* Paper cards (program pages) */
.paper-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s;
}

.paper-card:hover {
  border-color: var(--teal);
  transform: translateX(4px);
}

.paper-card h3 {
  margin-bottom: 1rem;
}

.paper-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.paper-card h3 a:hover {
  color: var(--teal-bright);
}

.paper-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.paper-card .badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(26, 127, 100, 0.2);
  color: var(--teal-bright);
  border-radius: 2px;
  margin-left: 0.5rem;
}

/* Methods grid (program pages) */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.method-item {
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.method-item h4 {
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.method-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Throughline (program pages) */
.throughline {
  background: linear-gradient(135deg, rgba(26, 127, 100, 0.05), transparent);
  border: 1px solid rgba(26, 127, 100, 0.2);
  padding: 2rem;
  margin-top: 1rem;
}

.throughline p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.throughline strong {
  color: var(--teal-bright);
}

/* CTA section (program pages) */
.cta-section {
  padding: 4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.cta-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-text p {
  color: var(--text-secondary);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--teal);
  color: white;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--teal-bright);
  text-decoration: none;
}


/* ==========================================================================
   Footer (shared)
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-grid .socials {
  display: flex;
  gap: 1.5rem;
}

.footer-grid .socials a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-grid .socials a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Centered footer (content pages) */
.site-footer--centered {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--teal-bright);
  text-decoration: none;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Simple footer (paper detail + program pages) */
.site-footer--simple {
  padding: 2rem 0;
  text-align: center;
}

.site-footer--simple a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
}

.site-footer--simple a:hover {
  color: var(--teal-bright);
}


/* ==========================================================================
   Static Papers Page (papers.html)
   ========================================================================== */

.static-papers {
  padding: 2rem;
}

.static-papers h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.static-papers .subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.static-papers ul {
  list-style: none;
}

.static-papers a:hover {
  color: var(--teal-bright) !important;
}

.static-papers .back {
  margin-bottom: 2rem;
}

.static-papers .back a {
  color: var(--teal);
  text-decoration: none;
}


/* ==========================================================================
   Academic Landing Page (index.html redesign)
   ========================================================================== */

/* Hero: Two-column layout */
.academic-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  padding: 6rem 0 4rem;
  align-items: start;
}

.academic-hero__photo {
  position: relative;
}

.academic-hero__img {
  width: 200px;
  max-width: 200px;
  border-radius: 4px;
  display: block;
}

.academic-hero__text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.academic-hero__affiliation {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.academic-hero__affiliation a {
  color: var(--teal-bright);
  text-decoration: none;
}

.academic-hero__affiliation a:hover {
  text-decoration: underline;
}

.academic-hero__bio {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

/* Sections */
.academic-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.academic-section__heading {
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.academic-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.academic-section__link {
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  color: var(--teal);
  text-decoration: none;
}

.academic-section__link:hover {
  color: var(--teal-bright);
  text-decoration: none;
}

/* Research interests list */
.academic-interests {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.academic-interests li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 1rem;
  position: relative;
}

.academic-interests li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--teal);
}

/* Publication entries */
.academic-publications {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.academic-pub {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.academic-pub:last-child {
  border-bottom: none;
}

.academic-pub__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.academic-pub__year {
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.academic-pub__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.academic-pub__title a {
  color: var(--text);
  text-decoration: none;
}

.academic-pub__title a:hover {
  color: var(--teal-bright);
}

.academic-pub__venue {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Education */
.academic-education {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.academic-edu {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.academic-edu:last-child {
  border-bottom: none;
}

.academic-edu__degree {
  font-weight: 500;
  color: var(--text);
}

.academic-edu__institution {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Profile links */
.academic-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.academic-profile-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 2px;
  transition: all 0.2s;
}

.academic-profile-link:hover {
  border-color: var(--teal);
  color: var(--teal-bright);
  text-decoration: none;
}


/* ==========================================================================
   Animations
   ========================================================================== */

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

.animate-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .footer-grid {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .card {
    min-height: 250px;
  }

  .cta-section {
    flex-direction: column;
    text-align: center;
  }

  .methods-grid {
    grid-template-columns: 1fr;
  }

  .tier {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Academic hero stacks on mobile */
  .academic-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 4rem 0 3rem;
    text-align: center;
  }

  .academic-hero__photo {
    justify-self: center;
  }

  .academic-hero__img {
    width: 150px;
    max-width: 150px;
  }

  .academic-hero__text h1 {
    font-size: 2rem;
  }

  .academic-hero__bio {
    max-width: none;
  }

  .academic-interests {
    flex-direction: column;
    gap: 0.5rem;
  }

  .academic-edu {
    flex-direction: column;
    gap: 0.25rem;
  }

  .academic-section__header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  .research-header {
    padding: 3rem 0 2rem;
  }

  .content-header {
    padding: 3rem 0 1.5rem;
  }

  .content-main {
    padding: 2rem 0;
  }

  .paper-item {
    padding: 1.25rem;
  }

  .paper-title {
    font-size: 1.1rem;
  }
}
