/* Site-specific styles layered on top of the cleanwhite theme.
   Loaded via params.custom_css in hugo.toml. Colors are translucent so they
   work in both the light and dark theme modes. */

.series-box {
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-left: 4px solid #0085a1;
  background: rgba(128, 128, 128, 0.06);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 0 0 28px;
  font-size: 15px;
}
.series-box p { margin: 0; }
.series-box .series-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.series-box .series-name { font-weight: 600; margin-top: 2px; }
.series-box details { margin-top: 8px; }
.series-box summary { cursor: pointer; font-size: 14px; opacity: 0.8; }
.series-box ol { margin: 8px 0 0; padding-left: 22px; }
.series-box li { margin: 4px 0; }
.series-box .series-here, .series-box .series-soon { opacity: 0.6; font-style: italic; }
.series-next { margin: 36px 0 0; }

/* Series index page */
.series-list { list-style: none; padding: 0; }
.series-list > li { margin: 0 0 32px; }
.series-list h2 { margin: 0 0 6px; }
.series-list .series-desc { opacity: 0.8; margin: 0 0 8px; }
.series-list ol { padding-left: 22px; }

/* Post header: darken the cover image so the white title stays readable on
   light photos. Only applies to posts (layouts/post/page.html), not the home page. */
header.intro-header.post-header { position: relative; }
header.intro-header.post-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 15, 25, 0.80), rgba(10, 15, 25, 0.60));
  pointer-events: none;
}
header.intro-header.post-header > .container { position: relative; z-index: 1; }
header.intro-header.post-header .post-heading h1,
header.intro-header.post-header .post-heading .subheading,
header.intro-header.post-header .post-heading .meta { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }

/* Post tables: the theme's bootstrap.min.css centres cells and uses a fixed
   layout (equal-width columns). Left-align text and let columns size to their
   content, so a long description column gets the most room. Bootstrap's
   .table-responsive also stops cells wrapping on phones; let them wrap. */
.post-container table { table-layout: auto; }
.post-container th,
.post-container td { text-align: left; vertical-align: top; white-space: normal !important; }
/* The last column is the description in our tables: keep it the widest. */
.post-container th:last-child,
.post-container td:last-child { width: 50%; }
@media (max-width: 600px) {
  .post-container table { font-size: 14px; }
  .post-container th,
  .post-container td { padding: 6px 8px; }
}
