/* Compiled from this post's former theme.scss with Quarto's dart-sass, unchanged
   apart from dropping its light-only colour-scheme lock. A document-level
   `theme:` would replace the site's light/dark pair (Quarto 1.6 refuses to
   merge the two), and `css:` takes plain CSS only. Every colour here is a
   fixed hex value, so the widget and figure chrome sits on a light card in
   both schemes; the `.widget-*` rules override widget-kit/chrome.scss for
   this post on purpose. Restyle against the site tokens (`--w-*`) when the
   post is next re-rendered. */

/*-- scss:defaults --*/
/*-- scss:rules --*/
:root {
}

main.content > p,
main.content > ul,
main.content > ol,
body.quarto-light main.content > blockquote {
  max-width: 42rem;
}

body.quarto-light h2 {
  margin-top: 2.3rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #D2D6D1;
}

body.quarto-light .quarto-title-block .quarto-title-banner {
  background: linear-gradient(180deg, #E8EAE5 0%, #F1F2EE 100%);
  color: #171C1B;
  border-bottom: 1px solid #D2D6D1;
}

.quarto-title-block .quarto-title-banner h1,
.quarto-title-block .quarto-title-banner .subtitle,
body.quarto-light .quarto-title-block .quarto-title-banner .quarto-title-meta {
  color: #171C1B;
}

body.quarto-light .quarto-title .subtitle {
  font-style: italic;
  color: #67706E;
}

body.quarto-light .callout {
  border-radius: 4px;
  border: 1px solid #D2D6D1;
  background: #E8EAE5;
}

body.quarto-light .callout.callout-style-default .callout-title {
  background: transparent;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border-bottom: 1px solid #D2D6D1;
}

body.quarto-light .callout-note {
  border-left: 4px solid #1D5C6E;
}

body.quarto-light .callout-warning {
  border-left: 4px solid #C98A12;
}

body.quarto-light .callout-important {
  border-left: 4px solid #C62828;
}

.jackknife-hero {
  border-left: 4px solid #1D5C6E;
  padding: 1rem 1.25rem;
  background-color: rgba(29, 92, 110, 0.05);
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.widget-container {
  border: 1px solid #D2D6D1;
  border-radius: 8px;
  background-color: #FFFFFF;
  padding: 1.25rem;
  margin: 1.75rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #E2E6E1;
}

.widget-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #171C1B;
}

.widget-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background-color: #1D5C6E;
  color: #FFFFFF;
}

.widget-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #F8F9FA;
  border-radius: 6px;
  border: 1px solid #E2E6E1;
}

.widget-note {
  font-size: 0.85rem;
  color: #67706E;
  margin-top: 0.75rem;
  font-style: italic;
}

.metric-pill {
  display: inline-block;
  font-family: monospace;
  font-size: 0.9em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: #ECEFF1;
  color: #263238;
}

.metric-pill.positive {
  background: #E8F5E9;
  color: #2E7D32;
}

.metric-pill.warning {
  background: #FFF3E0;
  color: #E65100;
}

.metric-pill.danger {
  background: #FFEBEE;
  color: #C62828;
}

body.quarto-light div.sourceCode {
  background: #E9EBE6;
  border: 1px solid #D2D6D1;
  border-radius: 4px;
}

body.quarto-light pre.sourceCode code {
  font-size: 0.83rem;
  line-height: 1.45;
}
