/* Dragnet-specific overrides layered on top of Bootstrap + Bootswatch Flatly */

:root {
  /* Scout Network's section colour, sampled from the banner graphic,
     used for every content hyperlink in place of Flatly's default
     teal (overriding Bootstrap's own link variables covers links
     everywhere, not just elements we remember to tag). */
  --bs-link-color: #7413dc;
  --bs-link-color-rgb: 116, 19, 220;
  --bs-link-hover-color: #5c0fb0;
  --bs-link-hover-color-rgb: 92, 15, 176;
}

.brand-title {
  color: #7413dc;
  font-size: 1.35rem;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-weight: 900;
  margin-bottom: 0.2rem;
}

.brand-date {
  color: #7413dc;
  font-size: 0.9rem;
}

h1 {
  font-size: calc(0.95rem + 1.2vw); /* ~67% of Bootstrap/Flatly's default h1 size */
}

h2 {
  font-size: 1.4em;
  font-weight: 700;
}

/* Preserve Dragnet's exact brand emphasis colours (used for rules/FAQ/kit
   callouts) rather than relying on Bootstrap's theme danger/success colours,
   which shift with the Bootswatch theme. */
.text-red {
  color: #c8123b;
}

.text-green {
  color: #00a94d;
}

.countdown-unit {
  background: #003a44;
  color: #fff;
}

.countdown-unit strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1.1;
}

.countdown-unit span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.countdown-note {
  font-weight: bold;
  color: #c8123b;
}

.rule-list {
  list-style-type: lower-alpha;
  padding-left: 1.25rem;
}

.rule-list li {
  padding-block: 0.4rem;
}

.rule-list li + li {
  border-top: 1px solid rgb(0 0 0 / 8%);
}

/* Kit list table */

.kit-table {
  font-size: 0.9rem;
}

.kit-col-item {
  width: 38%;
}

@media print {
  @page {
    size: a4;
    margin: 8mm;
  }

  body {
    font-size: 0.8rem;
  }

  main.container {
    padding: 0;
  }

  h1 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  h2 {
    font-size: 0.95rem;
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
  }

  p {
    margin-bottom: 0.4rem;
  }

  .kit-table {
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
  }

  .kit-table th,
  .kit-table td {
    padding: 0.15rem 0.3rem;
  }

  .card {
    border: none;
  }

  .card-header {
    padding: 0.2rem 0.4rem;
  }

  .card-body {
    padding: 0.3rem 0.4rem;
  }

  .d-flex.flex-column.gap-3 {
    gap: 0.4rem !important;
  }
}

.credit-line {
  font-size: 0.7rem;
}

/* Rich-text CMS content (e.g. the Be Prepared list) renders each point as a
   <p>; collapse that back to inline spacing inside a list item. */
.list-group-item p {
  margin-bottom: 0.5rem;
}

.list-group-item p:last-child {
  margin-bottom: 0;
}
