/* =============================================================
   FCI* Website — Stylesheet
   Design reference: NY Fed r-star page (clean, academic, minimal)
   ============================================================= */


/* -------------------------------------------------------------
   1. RESET & BASE
   A browser applies its own default styles before your CSS runs.
   This section overrides the worst offenders for consistency.
   ------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;   /* padding counts inside width, not outside */
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
}

a {
  color: #1a4a8a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* -------------------------------------------------------------
   2. LAYOUT
   .container centers content and caps its width so long lines
   don't stretch uncomfortably on wide monitors.
   ------------------------------------------------------------- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}


/* -------------------------------------------------------------
   3. SUPERSCRIPT STAR
   The * in FCI* should look like a superscript but slightly
   larger than the default <sup> tag, which tends to look tiny.
   ------------------------------------------------------------- */
.star {
  font-size: 0.75em;
  vertical-align: super;
  line-height: 0;   /* prevents the superscript from pushing line height up */
}


/* -------------------------------------------------------------
   4. HEADER
   ------------------------------------------------------------- */
header {
  background-color: #1a3a6b;
  color: #fff;
  padding: 48px 0 36px;
  border-bottom: 4px solid #c8a84b;   /* gold accent line */
}

header h1 {
  font-size: 3rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

header .subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 700px;
  opacity: 0.92;
  margin-bottom: 12px;
}

header .subtitle:last-of-type {
  margin-bottom: 20px;
}

header .header-authors {
  font-size: 0.95rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  opacity: 0.85;
  margin-bottom: 10px;
}

header .header-links {
  font-size: 0.9rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin-bottom: 16px;
}

header .header-links a {
  color: #c8d8f0;
}

header .header-links a:hover {
  color: #fff;
  text-decoration: underline;
}

header .last-updated {
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  opacity: 0.75;
}


/* -------------------------------------------------------------
   5. CHART SECTIONS
   ------------------------------------------------------------- */
main {
  padding: 48px 0 32px;
}

.chart-section {
  margin-bottom: 56px;
}

.chart-section h2 {
  font-size: 1.3rem;
  font-weight: normal;
  color: #1a3a6b;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.chart-description {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 16px;
  max-width: 800px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

.chart-description a {
  color: #1a4a8a;
}

/* The chart div itself — Plotly will size the chart inside this */
#chart-fci-gap,
#chart-fci-and-star,
#chart-ygap {
  width: 100%;
  height: 380px;
}


/* -------------------------------------------------------------
   6. FOOTER
   ------------------------------------------------------------- */
footer {
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  padding: 28px 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.875rem;
  color: #555;
}

footer p {
  margin-bottom: 8px;
}

footer a {
  color: #1a4a8a;
}

.footer-note {
  color: #888;
  font-size: 0.8rem;
}
