/* This stylesheet is intended to be copied into the Cape-instance and modified to customise your site. */

:root {
  --background-color: #fff;
  /* if you are using the optional nav-tabs.css then this sets the colours */
  --nav-border-color: #333;
  --nav-background-text-color: #fff;
  --nav-hover-text-color: #000;
  --nav-hover-background-color: #ccf;
}

/* General styles */

body {
  background-color: var(--background-color);
  font-family: Arial, Helvetica, sans-serif;
  padding: 0 !important;
}

#page {
  background-color: white;
  max-width: 900px;
  margin: 0 auto 15px auto;
  font-size: 0.9em;
  line-height: 1.6em;
  padding-right: 15px;
  padding-left: 15px;
}

/* typography */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #900;
}

h1 {
  font-size: 1.2em !important;
  font-weight: bold !important;
  margin-top: 1em !important;
}

h2 {
  font-size: 1.1em;
  font-weight: bold;
}

a.hyperlink {
  color: #00f;
  text-decoration: underline;
}

a.hyperlink:visited {
  color: #551a8b;
}

a.hyperlink:active {
  color: #f00;
}

/* end of typography */

/* FMC Header */

#header img {
  width: 100%;
  height: 100%;
}
header {
  margin-right: -15px;
  margin-left: -15px;
}

/* FMC Footer */

footer {
  background-color: #e1e1e1;
  padding: 2em 30px;
  display: flex;
  width: 100%;
}
.footer-logos {
  max-width: 900px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.footer-logos img {
  height: auto;
}

/* FMC Navigation */

#navigation {
  background-color: #666;
}

#navigation .row {
  max-width: 1040px;
  margin: auto;
  display: flex;
}

#navigation .col {
  text-align: center;
  color: white;
  width: 20%;
}

#navigation .col:hover a {
  color: #333333;
}

#navigation .col a {
  display: inline-block;
  font-weight: bold;
  color: white;
  text-decoration: none;
  padding: 0.3em 0.4em;
}

/*  end of FMC Navigation */

/* Values */

.cape-labelled-value-label {
  display: inline-block;
}

.cape-value {
  display: inline-block;
}

.cape-labelled-value-label:after {
  content: ":\00a0";
}

.cape-single-value a,
.cape-record-card a {
  color: blue;
}

.cape-single-value a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* summary cards */

.summary-card {
  cursor: pointer;
}

.summary-card .card-title {
  font-weight: bold;
  margin-bottom: 0;
}

.summary-card .card-body {
  padding: 0.2rem 0.5rem;
  margin: 0.4rem 0;
  background-color: #f3f3f3;
  border-radius: 5px;
}

.summary-card .card-body .field-value,
.summary-card .card-body .field-label {
  font-size: 0.9em;
}

.summary-card .field-label {
  font-weight: normal;
}

.summary-card i {
  color: #5a6268;
  font-size: 0.6rem;
}
.summary-card .label-note {
  font-size: 0.8rem;
  color: #999;
}

.record-fields,
.record-field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
}

.record-field .cape-value-multiple > li:after {
  content: "" !important;
  padding-right: 0 !important;
}

.summary-card a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 0.3em;
  padding-bottom: 0.2em;
}

.summary-main {
  flex: 2;
}
.summary-date {
  flex: 1;
  min-width: 120px;
}


/* end of summary cards */

/* Record cards */

.cape-record-title {
  font-weight: 500;
  font-size: 1.25em;
  margin: 0.8em 0;
}

.cape-record-card-body {
  border: 1px solid #ccc !important;
  border-radius: 5px;
  padding: 0.5em 1em;
  margin-bottom: 1em;
  background-color: #f9f9f9;
}

.cape-previous-result {
  border-bottom: none !important;
}

.cape-value-null {
  color: #999 !important;
}

.cape-value-multiple > li:not(:last-child):after {
  content: " ● ";
  color: #999;
  font-size: 0.8em;
}

.cape-record-card-body ul li.group-separator {
  margin-bottom: 1em;
  list-style: none;
  height: 0;
  padding: 0;
}

/* end of Record cards */
