/*body {*/
/*    background-color: #F5F5F5; !* Replace with your desired color *!*/
/*}*/



/* Main content area width */
.wy-nav-content {
    max-width: 1000px !important;
    width: 100% !important;
    margin: 0 auto !important;
}


.wy-grid-for-nav {
    display: flex !important;
    justify-content: center !important;
}


/* ========================
   Heading Styling
=========================== */
.rst-content h1 {
    font-size: 2em !important;
    color: #57068c !important;         /* NYU Purple */
    text-align: center !important;
    font-weight: bold !important;
    margin-top: 0 !important;          /* Remove space above */
    margin-bottom: 1em !important;   /* Keep tight below */
}

.rst-content h2 {
    font-size: 1.75em !important;
    color: #57068c !important;         /* Deep Purple */
    font-weight: bold !important;
    margin-top: 1em !important;
    margin-bottom: 0.3em !important;
}

.rst-content h3 {
    font-size: 1.5em !important;
    color: #8a51af !important;
    font-weight: bold !important;
    margin-top: 1em !important;
    margin-bottom: 0.3em !important;
}

.rst-content h4 {
   font-size: 1.25em !important;
    color: #7f7f7c !important;
    font-weight: bold !important;
    margin-top: 1em !important;
    margin-bottom: 0.3em !important;
}


.github-link {
  text-decoration: none;
  color: inherit;
  font-size: 0.95em;
}
.github-link i.fab {
  margin-right: 0.3em;
  vertical-align: text-bottom;
}




/* ========================================================
   Pure white content background on every page
   (removes the sphinx_rtd_theme default off-white/grey:
    .wy-nav-content #fcfcfc and the content-wrap grey tint)
======================================================== */
.wy-nav-content,
.wy-nav-content-wrap,
.wy-body-for-nav {
    background-color: #ffffff !important;
    background-image: none !important;
}


/* ========================================================
   PDF download buttons
   --------------------------------------------------------
   Used from a ".. raw:: html" block in the .rst pages:

     .. raw:: html

        <a class="nw-download" href="https://downloads.neurowaves.science/x.pdf">
          <span class="nw-download-body">
            <span class="nw-download-title">MEG Lab Manual</span>
            <span class="nw-download-meta">PDF</span>
          </span>
          <span class="nw-download-cta">Download</span>
        </a>

   Put several of them inside <div class="nw-download-row"> ... </div> to
   lay them out side by side. The SOP pages are also built into PDFs by
   pandoc, which ignores "raw:: html", so these buttons stay on the website
   and never appear inside the printed PDFs.

   The icon lives in _static/pdf-icon.svg (referenced relative to this file).
======================================================== */
.nw-download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 1em 0 1.5em;
}

.nw-download {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 580px;
    padding: 13px 16px;
    margin: 1em 0 1.5em;
    border: 1px solid #ded6ea;
    border-left: 5px solid #57068c;         /* NYU purple accent bar */
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #faf7fd 100%);
    box-shadow: 0 1px 2px rgba(40, 10, 70, .07);
    color: #2f2b36 !important;
    text-decoration: none !important;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.nw-download-row .nw-download {
    margin: 0;
    flex: 1 1 320px;
}

.nw-download::before {                      /* the PDF file icon */
    content: "";
    flex: 0 0 auto;
    width: 30px;
    height: 37px;
    background: url("pdf-icon.svg") no-repeat center / contain;
}

.nw-download-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nw-download-title {
    font-weight: 700;
    font-size: 1.02em;
    line-height: 1.25;
    color: #57068c;
}

.nw-download-meta {
    font-size: .82em;
    line-height: 1.3;
    color: #6b6577;
    margin-top: 2px;
}

.nw-download-cta {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 5px 14px;
    border-radius: 999px;
    background: #57068c;
    color: #ffffff;
    font-size: .8em;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
}

.nw-download:hover {
    border-color: #57068c;
    box-shadow: 0 4px 12px rgba(87, 6, 140, .16);
    transform: translateY(-1px);
    color: #2f2b36 !important;
    text-decoration: none !important;
}

.nw-download:hover .nw-download-cta {
    background: #6f14ab;
}

.nw-download:focus-visible {
    outline: 3px solid #b98fd6;
    outline-offset: 2px;
}

/* Sphinx ":download:" role links (files committed in the repository, such as
   the poster) get the same look, without needing raw HTML. */
.rst-content a.reference.download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border: 1px solid #ded6ea;
    border-left: 5px solid #57068c;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #faf7fd 100%);
    box-shadow: 0 1px 2px rgba(40, 10, 70, .07);
    text-decoration: none !important;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.rst-content a.reference.download::before {
    content: "";
    flex: 0 0 auto;
    width: 24px;
    height: 30px;
    background: url("pdf-icon.svg") no-repeat center / contain;
}

.rst-content a.reference.download code,
.rst-content a.reference.download code.download,
.rst-content a.reference.download .pre {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: 1em !important;
    font-weight: 700 !important;
    color: #57068c !important;
    white-space: normal !important;
}

.rst-content a.reference.download:hover {
    border-color: #57068c;
    box-shadow: 0 4px 12px rgba(87, 6, 140, .16);
    transform: translateY(-1px);
}

/* the theme prefixes ":download:" links with its own FontAwesome arrow;
   the PDF icon above replaces it */
.rst-content a.reference.download code.download span:first-child:before,
.rst-content a.reference.download tt.download span:first-child:before {
    content: none !important;
}
