/* ELAP documentation - additions on top of the Read the Docs theme */
:root { --elap-blue: #004494; }

/* Statement shown under the title of each principle */
.elap-statement {
  font-size: 1.1em;
  line-height: 1.55;
  border-left: 4px solid var(--elap-blue);
  background: #f3f6fa;
  padding: 0.6em 1em;
  margin: 0 0 1.5em;
}
.elap-statement p { margin: 0; }

/* RTD tables do not wrap text by default - let long statements wrap */
.wy-table-responsive table td,
.wy-table-responsive table th { white-space: normal; vertical-align: top; }
.wy-table-responsive { overflow: visible; }
table.docutils { width: 100%; }
table.docutils th, table.docutils td { text-align: left; }

/* Metadata card */
table.elap-card th.stub { width: 35%; white-space: nowrap; background: #f3f6fa; }

/* Principle x layer matrices */
table.elap-matrix td:not(:first-child),
table.elap-matrix th:not(:first-child) { text-align: center; }

/* Key figures on the home page */
table.elap-figures, table.elap-figures td { border: none !important; background: none !important; }
table.elap-figures td { text-align: center; padding: 0.6em; }
table.elap-figures td strong { display: block; font-size: 2em; line-height: 1.2; color: var(--elap-blue); }

.elap-source-note { font-size: 0.92em; color: #555; }
.elap-legend { font-size: 0.9em; color: #555; }

/* Wider reading column than the RTD default (800px) for the tables */
.wy-nav-content { max-width: 1100px; }
.wy-table-responsive table td { line-height: 1.45; padding-top: 8px; padding-bottom: 8px; }

/* Versions under the home link in the sidebar (see _templates/layout.html) */
.elap-versions { margin: 0.4em 0 0.8em; color: #fff; font-size: 0.85em; }
.elap-versions div { display: inline-block; margin: 0 0.5em; }
.elap-versions dt, .elap-versions dd { display: inline; margin: 0; font-weight: normal; }
.elap-versions dt { opacity: 0.8; }
.elap-versions dt::after { content: " "; }
.elap-versions dd { font-weight: bold; }
