/* 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 table {
  font-size: 0.92rem;
  border-collapse: collapse;
  margin: 1.5rem 0;
  width: 100%;
  max-width: 44rem;
}

body.quarto-light table th, body.quarto-light table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid #D2D6D1;
}

body.quarto-light table th {
  font-weight: 600;
  color: #171C1B;
  border-bottom: 2px solid #171C1B;
  text-align: left;
}

body.quarto-light table tr:hover td {
  background-color: rgba(29, 92, 110, 0.04);
}

.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;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #E8EAE5;
}

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

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

.wv-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
  gap: 0.35rem 1.4rem;
  margin-bottom: 0.7rem;
}

.wv-control {
  display: flex;
  align-items: center;
  gap: 0.4rem 0.5rem;
  font-size: 0.86rem;
  flex-wrap: wrap;
}

.wv-label {
  color: #67706E;
  font-size: 0.86rem;
}

.wv-control .wv-label {
  flex: 1 1 9rem;
}

.wv-range {
  flex: 1 1 7rem;
  min-width: 5rem;
  max-width: 150px;
  vertical-align: middle;
  accent-color: #1D5C6E;
}

.wv-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 2.8rem;
  text-align: right;
  color: #171C1B;
}

.wv-toggles {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.wv-toggle-group {
  display: inline-flex;
}

.wv-toggle, .wv-button {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.22rem 0.6rem;
  cursor: pointer;
  border: 1px solid #D2D6D1;
  background: #FFFFFF;
  color: #171C1B;
}

.wv-toggle-group .wv-toggle:first-child {
  border-radius: 4px 0 0 4px;
}

.wv-toggle-group .wv-toggle:last-child {
  border-radius: 0 4px 4px 0;
  margin-left: -1px;
}

.wv-toggle.wv-on {
  background: #1D5C6E;
  border-color: #1D5C6E;
  color: #FFFFFF;
}

.wv-button {
  border-radius: 4px;
  margin-left: auto;
  color: #1D5C6E;
  border-color: #1D5C6E;
}

.wv-button:hover {
  background: #E8EAE5;
}

.wv-canvas {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.wv-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.3rem;
  margin-top: 0.9rem;
}

.wv-stats-compare {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #D2D6D1;
}

.wv-stat {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.25rem 0.75rem;
  border-left: 3px solid #D2D6D1;
  line-height: 1.25;
}

.wv-stats-compare .wv-stat {
  border-left-color: #C98A12;
}

.wv-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: #67706E;
}

.wv-stat-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #171C1B;
}

.wv-note, .widget-note {
  font-size: 0.85rem;
  color: #67706E;
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-style: italic;
  max-width: none;
}
