:root {
  --rgc-primary: #c41a20;
  --rgc-primary-hover: #a1161b;
  --rgc-dark: #111111;
  --rgc-text: #2d2d2d;
  --rgc-secondary-bg: #f7f5f1;
  --rgc-tertiary-bg: #efe9df;
  --rgc-border: #e3ded7;
  --rgc-white: #ffffff;
  --bs-body-font-family: "Inter", system-ui, sans-serif;
  --bs-body-font-size: 1.125rem;
  --bs-body-line-height: 1.7;
  --bs-body-color: var(--rgc-text);
  --bs-body-bg: var(--rgc-white);
  --bs-border-radius: 0.5rem;
  --bs-btn-border-radius: 0.5rem;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-y: 0.85rem;
  --bs-btn-padding-x: 1.75rem;
  --bs-card-border-width: 1px;
  --bs-card-border-color: var(--rgc-border);
  --bs-heading-color: var(--rgc-dark);
  --bs-link-color: var(--rgc-primary);
  --bs-link-hover-color: var(--rgc-primary-hover);
}

body {
  font-family: var(--bs-body-font-family);
  font-size: var(--bs-body-font-size);
  line-height: var(--bs-body-line-height);
  color: var(--bs-body-color);
  background: var(--bs-secondary-bg);
  margin: 0;
  min-height: 100vh;
}

h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bs-heading-color);
}

h3 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

a {
  color: var(--bs-link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: var(--bs-link-hover-color);
  text-decoration: underline;
}

.rgc-form-control, .rgc-form-control:focus-visible, textarea, textarea:focus-visible {
  height: 56px;
  min-height: 56px;
  border-radius: 8px;
  border: 1px solid var(--rgc-border);
  padding: 0 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--rgc-white);
}

textarea {
  padding-top: 1rem;
  padding-bottom: 1rem;
  min-height: 140px;
  height: auto;
}

.btn, button {
  font-family: inherit;
}

.section-title {
  margin-bottom: 0.5rem;
}

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

@media (max-width: 991.98px) {
  h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 1rem;
  }
}

/* ====================
   NAVBAR Overrides
   ==================== */

.navbar-nav .nav-link {
  color: #2d2d2d !important;
}

.navbar-nav .nav-link:hover {
  color: #c41a20 !important;
}

.navbar-brand {
  color: #111111 !important;
}

.navbar-brand:hover {
  color: #c41a20 !important;
}

/* =====================================================================
   QUIDERGO DESIGN SYSTEM
   PUBLICATION COMPONENTS
   Version 2.0
   ===================================================================== */

/* ==============================================================
   QUIDERGO PUBLICATION TITLE (H1)
   ============================================================== */

.qe-title {
  font-family: "Abyssinica SIL", serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: #111111;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ==============================================================
   RESPONSIVE H1
   ============================================================== */

@media (max-width: 992px) {
  .qe-title {
    font-size: 2.55rem;
    line-height: 1.1;
  }
}

@media (max-width: 768px) {
  .qe-title {
    font-size: 2.2rem;
    line-height: 1.12;
  }
}

@media (max-width: 576px) {
  .qe-title {
    font-size: 1.95rem;
    line-height: 1.15;
  }
}

/* ============================================================
   QUIDERGO PUBLICATION INFORMATION
   Front Matter / Metadata Block
   ============================================================ */

.qe-meta-value {
  display: block;
  color: #222;
  font-weight: 400;
}

/* =====================================================================
   TABLE OF CONTENTS TYPOGRAPHY
   ===================================================================== */

.qe-toc-title {
  font-family: var(--bs-font-sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1.25rem;
}

.qe-toc ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.qe-toc li {
  margin-bottom: 0.95rem;
}

.qe-toc a {
  color: #222;
  text-decoration: none;
}

/* =====================================================================
   PUBLICATION TYPOGRAPHY
   ===================================================================== */

.qe-h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  color: #222;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.qe-h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
  color: #333;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.qe-h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #444;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* =====================================================================
   BODY TEXT
   ===================================================================== */

.qe-body {
  font-size: 1rem;
  line-height: 1.85;
  color: #333;
  margin-bottom: 1.2rem;
}

.qe-term {
  font-weight: 700;
  color: #222;
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */

.qe-divider {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* =====================================================================
   EXECUTIVE SUMMARY
   ===================================================================== */

/* =====================================================================
   FIGURES
   ===================================================================== */

/* =====================================================================
   TABLES
   ===================================================================== */

/* ==========================================================
   QuidErgo Research Series Components
   ========================================================== */

/* ----------------------------------------------------------
   KEY IDEA
   ---------------------------------------------------------- */

.qe-key-idea {
  margin: 2.5rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid #c41a20;
  border-bottom: 1px solid #c41a20;
}

.qe-key-idea-title {
  color: #c41a20;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.qe-key-idea p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.75;
  font-style: italic;
  color: #555;
  margin: 0 0 1rem 0;
}

.qe-key-idea p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   TABLE OF CONTENTS
   ---------------------------------------------------------- */

.qe-toc {
  background: #f8f6f3;
  border: 1px solid #ece7df;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.qe-toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 1rem;
}

.qe-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qe-toc li {
  margin-bottom: 0.55rem;
}

.qe-toc li:last-child {
  margin-bottom: 0;
}

.qe-toc a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s ease;
}

.qe-toc a:hover {
  color: #c41a20;
}

/* ----------------------------------------------------------
   REFERENCES
   ---------------------------------------------------------- */

.qe-references {
  margin-top: 1.25rem;
}

.qe-references li {
  margin-bottom: 1.4rem;
}

.qe-references li:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   SUGGESTED CITATION
   ---------------------------------------------------------- */

/* ----------------------------------------------------------
   NOTE ON SOURCES
   ---------------------------------------------------------- */

/* ----------------------------------------------------------
   CONTINUE EXPLORING
   ---------------------------------------------------------- */

/* =====================================================================
   KEYWORDS
   ===================================================================== */

/* =====================================================================
   BLOCK QUOTES
   ===================================================================== */

/* =====================================================================
   REFERENCES
   ===================================================================== */

.qe-reference-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: #333;
  margin-top: 1.2rem;
  margin-bottom: 0.75rem;
}

.qe-reference {
  margin-bottom: 1.1rem;
  text-indent: -2rem;
  padding-left: 2rem;
  line-height: 1.65;
}

/* =====================================================================
   META INFORMATION
   ===================================================================== */

/* =====================================================================
   BADGES
   ===================================================================== */

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 768px) {
  .qe-h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .qe-h3 {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .qe-h4 {
    font-size: 19px;
  }
}

@media (max-width: 768px) {
  .qe-reference {
    text-indent: 0;
    padding-left: 0;
  }
}

