/* Presentation context */

#title-slide::after {
  white-space: pre;
  content: "DNA-derived data management course";
}

/* adjust date size */
#title-slide .date,
#title-slide p.date {
  font-size: 0.8em;
}

/* color of page numbers */
.reveal .slide-number {
  color: #156082 !important;
}

.pillars-container {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin: 10px 0;
  text-align: center;
}

.pillar-svg {
  flex: 0 0 200px;  /* Fixed width instead of flex: 1 */
  max-width: 200px;
  margin-top: -30px
}

.pillar-label {
  font-size: 24px;
  color: #156082;
  font-weight: 600;
  margin-top: -30px;
  min-height: 60px;  /* Reserve space for 2-3 lines of text */
  display: flex;
  align-items: center;
  justify-content: center;
}

.small-note {
  font-size: 0.85em;
}

/* bordered box */
.bordered-box,
.bordered-box p,
.bordered-box li {
  font-size: 1.05em !important;
  border-radius: 6px;
  padding: 0.75em 1em;
  background-color: #f8f9fa;
}

/* Compact field lists on the "Key DwC fields" slides. Sizes are px because the
   theme sets .reveal li directly at 24px, which leaves these lists too tall to
   fit once required and recommended fields are on one slide. */
.reveal .fields .field-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6C757D;
  margin: 0 0 2px 0;
}
.reveal .fields .table-name {
  display: block;
  font-size: 21px;
  font-weight: 600;
  color: #156082;
  border-bottom: 2px solid #C9D6DE;
  padding-bottom: 3px;
  margin-bottom: 8px;
}
.reveal .fields ul {
  margin: 0 0 12px 1em;
}
.reveal .fields li {
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
}
.reveal .fields-note p {
  font-size: 16px;
  color: #545556;
  margin-top: 6px;
}

/* Citation / source line under a slide title. The rule reaches the paragraph
   itself: the theme sets .reveal p directly, and a directly matching
   declaration beats an inherited one, so styling the wrapper does nothing. */
.reveal .cite p {
  font-size: 14px;
  line-height: 1.35;
  color: #545556;
  margin: -4px 0 12px 0;
}
.reveal .cite a {
  color: #545556;
  text-decoration: underline;
}

/* Denser variant for the slides that list the checklist out in full, before
   they are pared back by hand. */
.reveal .fields.dense li {
  font-size: 14px;
  line-height: 1.4;
}
.reveal .fields.dense ul {
  margin-bottom: 8px;
}
.reveal .fields.dense .field-label {
  font-size: 13px;
}

/* Pointer to the full OBIS term checklist. These slides show a working subset,
   so every one of them says where the complete list lives. */
.reveal .checklist-link p {
  font-size: 16px;
  color: #545556;
  margin-top: 8px;
}
.reveal .checklist-link a {
  color: #156082;
  border-bottom: 1px solid #C9D6DE;
}

/* make code block text a bit bigger */
.reveal pre{
  font-size: 1.5em;
}

/* Reserve room for the footer on every slide */
.reveal .slides section {
  padding-bottom: 90px !important;
  box-sizing: border-box;
}

/* Stop images from exceeding the reserved area */
.reveal .slides section img {
  max-height: 100%;
  object-fit: contain;
}

/* Cap any image on a slide using a pixel ceiling, not %.
   Pixel max-heights resolve regardless of parent height,
   so this survives raw HTML wrappers and column nesting. */
.reveal .slides section img {
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Keep tables a consistent width and wrap long unbroken strings (e.g. DNA sequences)
   instead of letting the browser stretch the column to fit them */
table {
  table-layout: fixed;
  width: 100%;
}

table td,
table th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Little clickable topic boxes on the landing page (index.qmd) */
.topic-boxes {
  display: flex;
  gap: 20px;
  margin: 1.5em 0;
}

.topic-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  background-color: #f8f9fa;
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.topic-box:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.topic-box-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.topic-box-emoji {
  font-size: 4em;
  line-height: 1;
}

/* ===== Top banner / navbar — matched to manual.obis.org ===== */
.navbar {
  background-color: #ffffff;
  color: rgb(84, 85, 85);
}

.navbar-brand {
  display: contents;
}

.navbar-brand-container.mx-auto {
  text-decoration: none;
  white-space: nowrap;
}

#quarto-header .navbar-container.container-fluid {
  max-width: 1320px !important;
  margin-right: auto;
  margin-left: auto;
}

#quarto-search {
  margin-left: 1rem;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
}

#navbarCollapse .navbar-nav .nav-link {
  padding-left: 12px;
  padding-right: 12px;
}

#navbarCollapse .navbar-nav .nav-link .menu-text {
  font-family: Roboto, "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #000000;
}

#navbarCollapse .navbar-nav .nav-link.active .menu-text,
#navbarCollapse .navbar-nav .nav-link:hover .menu-text {
  color: #1e74ac;
}

/* keep the mobile hamburger visible on the white banner */
.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.15);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.6)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* search icon on the white banner */
#quarto-search .aa-DetachedSearchButtonIcon,
#quarto-search svg {
  color: #545556;
}

/* ===== Coloured page-title banner — matched to manual.obis.org tutorials ===== */
.quarto-title-block .quarto-title-banner {
  background: #2A7B9B;
  background-image:
    url("assets/blue-square-bg.svg"),
    linear-gradient(90deg, #469cd6 0%, #0c29ad 100%);
  background-repeat: no-repeat, no-repeat;
  background-size: 50% auto, cover;
  background-position: right, center;
}

.quarto-title-banner .title,
.quarto-title-banner .subtitle,
.quarto-title-banner .quarto-title .title,
#title-block-header.quarto-title-block.default .quarto-title-banner h1.title {
  color: #ffffff;
}

/* add background shapes, which were failing in scss on GitHub because of path issues */
.reveal .slides::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url('assets/background-shapes.svg');
  background-position: center;
  background-repeat: no-repeat; */
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
}