/* ============================================================================
   SoilPATH WP1 -- public contact page
   Recolors the readtheorg theme (htmlize/readtheorg/code-copy/search, vendored
   locally in this folder so the page works behind strict CSPs and offline)
   with the official SoilPATH palette (see img/soilpath-palette.png).
   ============================================================================ */

:root {
  --sp-earthy-brown:   #A25200;
  --sp-bright-orange:  #F6A22A;
  --sp-sky-blue:       #9CD8F7;
  --sp-grass-green:    #009B3E;
  --sp-chestnut-brown: #522202;
  --sp-pale-yellow:    #FFEF9E;
  --sp-marine-blue:    #006BA2;
  --sp-pine-green:     #0D5628;

  --sp-text:    var(--sp-chestnut-brown);
  --sp-heading: var(--sp-chestnut-brown);
  --sp-link:    var(--sp-marine-blue);
  --sp-bg:      #FFFFFF;
}

body { color: var(--sp-text); }

content, #content { max-width: 100%; }
#content li, #content p { max-width: 800px; }

h1, h2, h3, h4, h5, h6 { color: var(--sp-heading); }

#content a, #table-of-contents a.toc-text { color: var(--sp-link); }
#content a:hover { color: var(--sp-earthy-brown); }

.title { color: var(--sp-chestnut-brown); }
.subtitle {
  text-align: center;
  font-size: medium;
  font-style: italic;
  font-weight: normal;
  margin-top: 0;
  color: var(--sp-marine-blue);
}

/* Table of contents sidebar, recolored from readtheorg's default green */
#table-of-contents h2 {
  z-index: 200;
  background-color: var(--sp-marine-blue);
  text-align: center;
  padding: 0.809em;
  display: block;
  color: #fcfcfc;
  font-size: 100%;
  margin-bottom: 0.809em;
}
#table-of-contents ul.nav > li > a {
  color: #fcfcfc;
  text-transform: lowercase;
  font-weight: 700;
}
#search-container { padding: 12px; background-color: #fcfcfc; }

/* Institutional logos (CRA-W, Wallonie), fixed bottom-left of the TOC
   sidebar -- same watermark technique as qstdoc/css/craw-paper-notes.css,
   inverted so the black-on-transparent artwork reads white on the dark nav. */
#table-of-contents:after {
  content: " ";
  position: fixed;
  left: 20px;
  bottom: 15px;
  width: 160px;
  height: 220px;
  background-image: url(../img/craw_fr_nb.png), url(../img/wallonie_v_nb.png);
  background-repeat: no-repeat, no-repeat;
  background-position: left top, left bottom;
  background-size: 150px auto, 90px auto;
  filter: invert(85%);
  opacity: 0.9;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Page banner
   --------------------------------------------------------------------------- */
.sp-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
  padding: 1em 1.5em;
  margin-bottom: 1.5em;
  background-color: var(--sp-pale-yellow);
  border-bottom: 4px solid var(--sp-bright-orange);
}
/* Explicit width:auto overrides readtheorg's mobile `img { width: 100%; }`
   rule (max-width: 768px), which otherwise stretches these fixed-height
   logos to the full banner width and distorts them. */
.sp-banner img.sp-logo { height: 48px; width: auto; max-width: 100%; }
.sp-banner img.sp-eu { height: 38px; width: auto; max-width: 100%; }

/* ---------------------------------------------------------------------------
   Inventory call-to-action cards
   --------------------------------------------------------------------------- */
.sp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  margin: 1.5em 0 2em 0;
}
.sp-cta-card {
  flex: 1 1 280px;
  border: 2px solid var(--sp-grass-green);
  border-radius: 10px;
  padding: 1.2em 1.4em;
  background-color: #FFFFFF;
}
.sp-cta-card h3 { margin-top: 0; color: var(--sp-pine-green); }
.sp-cta-card a.sp-btn {
  display: inline-block;
  margin-top: 0.6em;
  padding: 0.5em 1.1em;
  background-color: var(--sp-grass-green);
  color: #ffffff !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}
.sp-cta-card a.sp-btn:hover { background-color: var(--sp-pine-green); }
.sp-cta-card p.sp-pending {
  font-style: italic;
  color: var(--sp-earthy-brown);
}

/* ---------------------------------------------------------------------------
   Overview / footer
   --------------------------------------------------------------------------- */
.sp-footer {
  margin-top: 2.5em;
  padding: 1em 1.5em;
  border-top: 1px solid #ddd;
  font-size: 0.85em;
  color: #555;
  display: flex;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
}
.sp-footer img { height: 32px; }

table { max-width: 900px; }
