/* Literata (SIL OFL 1.1), latin subset, self-hosted */
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/static/trc/fonts/literata.woff2) format('woff2'); }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/static/trc/fonts/literata-italic.woff2) format('woff2'); }

/* Brand mark beside the site title (postbuild picks the leaf, or the poppy on November 11) */
.page-title a { display: inline-flex; align-items: center; gap: 0.5rem; }
.page-title a::before {
  content: "";
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  background: url(/static/trc/logo.svg) center / contain no-repeat;
}

/* Home page "Most recent" (generated by prepare-content): each post's date sits tight
   under its title, and a rule separates one post from the next. */
body[data-slug="index"] article h3 { margin: 1.4rem 0 0.3rem; }
body[data-slug="index"] article h3 + p { margin-top: 0; margin-bottom: 0.4rem; }
body[data-slug="index"] article hr {
  margin: 1.4rem 0 0;
  border: none;
  border-top: 1px solid var(--lightgray);
}

/* Explorer and table of contents: a marker and a hanging indent on every item, so a
   title that wraps onto several lines still reads as one item, plus space between items. */
.explorer li > a.nav-file-title,
.toc li > a {
  display: block;
  position: relative;
  padding-left: 0.9em;
  line-height: 1.35;
}
.explorer li > a.nav-file-title::before,
.toc li > a::before {
  content: "·";
  position: absolute;
  left: 0.15em;
  color: var(--gray);
  font-weight: 700;
}
.explorer li:has(> a.nav-file-title),
.toc li { margin-bottom: 0.45rem; }

/* trustreport.ca privacy notice and privacy-page controls */
.trc-notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--light);
  color: var(--darkgray);
  border: 1px solid var(--lightgray);
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  font-size: 0.95rem;
}
.trc-notice p {
  margin: 0;
  flex: 1 1 18rem;
}
.trc-notice-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.trc-notice button,
.trc-privacy-controls button {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--gray);
  background: transparent;
  color: var(--dark);
  cursor: pointer;
}
.trc-notice button:hover,
.trc-privacy-controls button:hover {
  background: var(--highlight);
}
.trc-notice button:focus-visible,
.trc-privacy-controls button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
.trc-privacy-controls {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--lightgray);
  border-radius: 6px;
}
.trc-privacy-controls[hidden] {
  display: none;
}
.trc-privacy-controls button {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}
.trc-privacy-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.trc-privacy-status {
  margin-top: 0;
  font-weight: 600;
}
@media print {
  .trc-notice {
    display: none;
  }
}

/* Team page portraits: small and round, beside the name */
article img[src*="team-img/"] {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0.25rem 0 0.75rem;
}

