/*****************************************
                VARIABLES
*****************************************/
:root {
  --text-color: #2d2d2d;
  --border-color: #D3D3D3;
  --link-color: #5B5BFD;
  --brand-color: #31359D;
  --background-color: #FAF9F7;
  --widget-background-color: #F5F5F5;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Figtree", system-ui;
  --mono: "JetBrains Mono", monospace;
}

/*****************************************
                HELPERS
*****************************************/
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--mono);
  text-transform: uppercase;
}

.logo {
  font-family: var(--serif);
  font-optical-sizing: auto;
  color: var(--brand-color);
  padding: 8px 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 94%;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-secondary {
  opacity: 0.6;
}

.flr {
  float: right;
}

/*****************************************
        RESET & GLOBAL STYLES
*****************************************/
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html,
body {
  font-family: var(--serif);
  font-optical-sizing: auto;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  font-size: 19px;
  line-height: 123%;
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
@media (min-width: 700px) {
  html,
  body {
    font-size: 21px;
    line-height: 140%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto;
  }
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p {
  text-wrap: pretty;
}

nav {
  display: flex;
  grid-column: layout;
  margin: 0 auto;
  padding-inline: 16px;
  max-width: 1400px;
  width: 100%;
}

/*****************************************
               HOMEPAGE
*****************************************/
.post a {
  display: block;
  padding: 20px 24px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease-out;
}
.post a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
@media (min-width: 900px) {
  .post a {
    padding: 24px 0;
  }
}

@media (min-width: 900px) {
  .post-wrapper {
    display: flex;
    gap: 32px;
    margin: 0 auto;
    max-width: 920px;
  }
}

.post-image {
  margin-bottom: 16px;
  width: 150px;
  height: 75px;
  background-color: #ddd;
  border-radius: 36px;
  overflow: hidden;
}
@media (min-width: 900px) {
  .post-image {
    margin-bottom: 0;
    min-width: 250px;
    height: 125px;
    border-radius: 62.5px;
  }
}
.post-image img,
.post-image svg {
  height: 100%;
  object-fit: cover;
}

.post-title {
  margin-bottom: 6px;
  font-size: 32px;
  line-height: 94%;
  font-weight: 700;
}
@media (min-width: 900px) {
  .post-title {
    font-size: 60px;
    font-variation-settings: "opsz" 60;
  }
}

.post-subtitle {
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 19px;
  font-weight: 400;
  opacity: 0.8;
}
@media (min-width: 900px) {
  .post-subtitle {
    font-size: 18px;
  }
}

.post-date {
  font-size: 14px;
  line-height: 13px;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

@keyframes drawExtinction1 {
  from {
    stroke-dashoffset: 100px;
  }
  to {
    stroke-dashoffset: 0px;
  }
}
@keyframes drawExtinction2 {
  from {
    stroke-dashoffset: 0px;
  }
  to {
    stroke-dashoffset: 100px;
  }
}
#extinction-line-1 {
  stroke-dasharray: 50px, 50px;
  animation: drawExtinction1 10000ms linear infinite;
}

#extinction-line-2 {
  stroke-dasharray: 50px, 50px;
  animation: drawExtinction2 10000ms linear infinite;
}

@keyframes drawKelvinLine {
  from {
    stroke-dashoffset: 600px;
  }
  to {
    stroke-dashoffset: -600px;
  }
}
.kelvin-line {
  stroke-dasharray: 600px, 600px;
  animation: drawKelvinLine 5000ms linear var(--delay) infinite backwards;
}

#line-5000k {
  --delay: 0ms;
}

#line-4000k {
  --delay: 400ms;
}

#line-3000k {
  --delay: 800ms;
}

#line-2000k {
  --delay: 1200ms;
}

/*****************************************
             DESIGN TOKENS
*****************************************/
:root {
  --font-serif: "Newsreader", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: "PP Supply Mono", monospace;
  --content-padding: 16px;
  --margin-buster: -32px;
  --annotation-arrow-color: #999;
}
@media (min-width: 700px) {
  :root {
    --content-padding: 45px;
  }
}

/*****************************************
                HELPERS
*****************************************/
.content-width {
  width: 100%;
  max-width: 790px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 900px) {
  .content-width {
    padding-inline: 45px;
  }
}

.layout-width {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 2px;
}
@media (min-width: 900px) {
  .layout-width {
    padding-inline: 8px;
  }
}

/*****************************************
                COMPONENTS
*****************************************/
h1 {
  font-family: var(--font-serif);
}

h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
}

p, ul, ol {
  margin-bottom: 12px;
}

li {
  margin-bottom: 8px;
}

.post__figure {
  margin: 40px 0;
}
.post__figure video, .post__figure img, .post__figure svg {
  display: block;
  margin: 0 auto 16px;
  border-radius: 20px;
}

figcaption,
.caption {
  color: #424242;
  font-family: var(--font-serif);
  line-height: 130%;
  font-style: italic;
  font-size: 95%;
  text-align: center;
}

.image-credit {
  margin: 0;
  font-family: var(--font-sans);
  text-align: center;
  line-height: 140%;
  font-size: 13px;
  font-style: italic;
  opacity: 0.7;
}
.image-credit:before {
  content: "Image: ";
}

a, a:visited {
  color: var(--link-color);
}

table {
  margin-block: 40px 50px;
  border-collapse: collapse;
  border-spacing: 0px;
  font-family: var(--font-sans);
}
@media (min-width: 900px) {
  table.dense {
    margin-inline: var(--margin-buster);
  }
}
table.header-column th:first-child,
table.header-column td:first-child {
  font-weight: 600;
}
table.header-column th:first-child span.secondary,
table.header-column td:first-child span.secondary {
  font-weight: 400;
}

tr {
  border-bottom: 1px solid var(--border-color);
}

th {
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0.8;
  padding-bottom: 4px;
  text-align: left;
}
th:not(:last-child) {
  padding-right: 8px;
}

td {
  padding-block: 12px;
  line-height: 125%;
}
td:not(:last-child) {
  padding-right: 8px;
}

@media (max-width: 900px) {
  .sticky-column-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sticky-column-table-wrapper table {
    width: 100%;
  }
  .sticky-column-table-wrapper th:first-child,
  .sticky-column-table-wrapper td:first-child {
    position: sticky;
    left: 0;
    background-color: var(--background-color);
    box-shadow: inset -1px 0 0 0 var(--border-color);
    z-index: 1;
  }
  .sticky-column-table-wrapper th:nth-child(2),
  .sticky-column-table-wrapper td:nth-child(2) {
    padding-left: 8px;
  }
}

/*****************************************
              PAGE STYLES
*****************************************/
header {
  box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.1), 0 12px 48px 0 rgba(0, 0, 0, 0.08);
  border: 8px solid white;
  border-radius: 40px;
  background-color: #3333FF;
}

.header__text {
  padding: 24px;
}

.post-title {
  margin-block: 4px 8px;
  color: white;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 700;
  font-size: 36px;
  line-height: 100%;
}
@media (min-width: 700px) {
  .post-title {
    margin-block: 44px 4px;
    font-size: 70px;
    line-height: 94%;
  }
}

.post-subtitle {
  margin-block: 0 0px;
  color: #FFF;
  font-family: var(--font-sans);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 94%;
  opacity: 0.8;
}
@media (min-width: 700px) {
  .post-subtitle {
    margin-block: 0 24px;
    font-size: 30px;
  }
}

.nutshell {
  padding-block: 24px;
  color: #424242;
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  line-height: 135%;
  letter-spacing: -0.01em;
  opacity: 0.75;
}
@media (min-width: 700px) {
  .nutshell {
    font-size: 28px;
    padding-block: 50px;
    border-left: 1px solid var(--border-color);
  }
}
.nutshell em {
  font-style: normal;
}

article {
  position: relative;
}

hr.full-width {
  height: 1px;
  background-color: var(--border-color);
  border-style: none;
}

@media (min-width: 1400px) {
  .toc-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50vw - 700px);
    height: 100%;
    width: 305px;
  }
}

.toc {
  width: 100%;
  max-width: 790px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 900px) {
  .toc {
    padding-inline: 45px;
  }
}
.toc {
  padding-top: 24px;
  border-left: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 16px;
}
@media (min-width: 900px) {
  .toc {
    padding-inline: 0;
  }
}
@media (min-width: 1400px) {
  .toc {
    position: sticky;
    top: 60px;
    margin-inline: 0;
    padding-top: 8px;
    border-left: none;
    z-index: 2;
  }
}
.toc h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0.8;
  margin-bottom: 0px;
  padding-left: 40px;
}
@media (min-width: 1400px) {
  .toc h4 {
    padding-left: 50px;
  }
}
.toc ol {
  list-style-type: none;
  counter-reset: item;
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}
.toc li {
  position: relative;
  counter-increment: item;
  margin: 0;
  padding: 0;
}
.toc li::before {
  content: counter(item, upper-roman) ".";
  position: absolute;
  top: 0;
  left: 2px;
  padding-top: 6px;
  width: 40px;
  text-align: left;
  line-height: 140%;
}
@media (min-width: 900px) {
  .toc li::before {
    left: 45px;
  }
}
@media (min-width: 1400px) {
  .toc li::before {
    left: 8px;
  }
}
.toc a {
  display: block;
  margin: 0;
  padding: 6px 0 6px 40px;
  color: var(--text-color);
  text-decoration: none;
  line-height: 140%;
  transition: all 0.2s ease-out;
  opacity: 0.8;
}
@media (min-width: 900px) {
  .toc a {
    padding-left: 80px;
  }
}
@media (min-width: 1200px) {
  .toc a {
    padding-right: 10px;
  }
}
@media (min-width: 1400px) {
  .toc a {
    padding-left: 50px;
  }
}
.toc a:hover {
  color: var(--link-color);
  background-color: color-mix(in srgb, var(--link-color) 10%, transparent);
  transition: all 0.1s ease-out;
}
.toc a.active {
  color: var(--link-color);
  font-weight: 500;
  opacity: 1;
}

.inset {
  box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.1), 0 12px 48px 0 rgba(0, 0, 0, 0.08);
  border-radius: 40px;
  padding: 8px;
}
@media (min-width: 700px) {
  .inset {
    margin: 40px 0 60px;
    padding: 32px;
  }
}

.triple-wide {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 900px) {
  .triple-wide {
    flex-direction: row;
    margin-inline: var(--margin-buster);
  }
}

.triple-wide__item {
  flex: 1 1 33.333%;
}
@media (max-width: 900px) {
  .triple-wide__item:not(:last-child) .post__figure {
    margin-bottom: 0;
  }
}

/*****************************************
         BODY TEXT-SPECIFIC STYLES
*****************************************/
.post-body {
  width: 100%;
  max-width: 790px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 900px) {
  .post-body {
    padding-inline: 45px;
  }
}
.post-body {
  position: relative;
  padding-block: 20px 60px;
}
@media (min-width: 700px) {
  .post-body {
    border-left: 1px solid var(--border-color);
  }
}
@media (min-width: 1200px) {
  .post-body {
    padding-top: 32px;
  }
}
.post-body h2 {
  position: relative;
  margin: 50px 0 20px;
  padding-bottom: 12px;
  font-size: 30px;
  line-height: 95%;
}
@media (min-width: 700px) {
  .post-body h2 {
    margin: 60px 0 30px;
    font-size: 40px;
  }
}
@media (min-width: 900px) {
  .post-body h2 {
    margin: 120px 0 50px;
    font-size: 50px;
  }
}
.post-body h2:before {
  content: attr(data-ordinal);
  position: absolute;
  top: 0;
  right: calc(100% + 64px);
  color: transparent;
  -webkit-text-stroke: 1px var(--text-color);
  font-weight: 700;
}
.post-body h2:after {
  content: "";
  position: absolute;
  left: calc(50% - 50vw);
  bottom: 0;
  display: block;
  height: 1px;
  width: 100vw;
  background-color: var(--border-color);
  transform: translateX(calc(50% - 50vw));
}
.post-body h3 {
  margin: 40px 0 20px;
  font-size: 24px;
  line-height: 95%;
  opacity: 0.8;
}
@media (min-width: 700px) {
  .post-body h3 {
    margin: 60px 0 30px;
    font-size: 30px;
  }
}
.post-body aside {
  margin-bottom: 12px;
  border-block: 1px solid var(--border-color);
  padding-block: 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.3;
}
@media (min-width: 700px) {
  .post-body aside {
    --sidebar-width: 300px;
    --sidebar-margin-width: 60px;
    --sidebar-side-margin: 16px;
    position: relative;
    top: -48px;
    float: right;
    clear: right;
    margin-right: calc(-1 * var(--sidebar-width) - var(--sidebar-margin-width));
    border-bottom: none;
    width: var(--sidebar-width);
    padding-top: 12px;
    font-size: 15px;
    vertical-align: baseline;
    background: var(--background-color);
    backdrop-filter: blur(8px);
    z-index: 2;
  }
  .post-body aside:before, .post-body aside:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--sidebar-side-margin);
    height: 100%;
    background-color: var(--background-color);
  }
  .post-body aside:before {
    left: 100%;
  }
  .post-body aside:after {
    right: 100%;
  }
}
.post-body aside h4, .post-body aside p {
  margin-bottom: 6px;
  opacity: 0.9;
}

/*****************************************
                  WIDGETS
*****************************************/
.widget {
  margin-bottom: 40px;
  padding: 30px;
  background-color: var(--widget-background-color);
  border-radius: 40px;
  border: 1px solid transparent;
}
.widget p {
  margin-bottom: 0;
}

label, .label--small,
.label {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 120%;
  text-transform: uppercase;
}

.label--small {
  font-size: 13px;
  opacity: 0.7;
}

/*****************************************
           SCATTERING DIAGRAM
*****************************************/
.inline-svg-diagram {
  /* VARIABLES */
  --sec: 1s;
  --light-speed: 200; /* tweakable */
  --pause-before-blue: 0.4s; /* tweakable */
  --pause-after-blue: 1.2s; /* tweakable */
  /* Derived timings */
  --royg-time: calc(300 * var(--sec) / var(--light-speed));
  --blue-seq-time: calc((250 + 20 + 20 + 10) * var(--sec) / var(--light-speed));
  --blue-start: calc(var(--royg-time) + var(--pause-before-blue));
}

.inline-svg-diagram {
  /* HELPERS */
}
.inline-svg-diagram .beam {
  /* draw per-path using delay/duration; no normalization math */
  stroke-dasharray: var(--len, 0);
  stroke-dashoffset: var(--len, 0);
}
.inline-svg-diagram {
  /* ROYG: draw simultaneously at start over 300/--light-speed seconds */
}
.inline-svg-diagram .beam--royg {
  --len: 300;
  --start-sec: 0s;
  --dur-sec: calc(300 * var(--sec) / var(--light-speed));
}
.inline-svg-diagram {
  /* BLUE MAIN: sequential segments along the main ray */
}
.inline-svg-diagram .beam--blue-1 {
  --len: 250;
  --start-sec: var(--blue-start);
  --dur-sec: calc(250 * var(--sec) / var(--light-speed));
}
.inline-svg-diagram .beam--blue-2 {
  --len: 20;
  --start-sec: calc(var(--blue-start) + 250 * var(--sec) / var(--light-speed));
  --dur-sec: calc(20 * var(--sec) / var(--light-speed));
}
.inline-svg-diagram .beam--blue-3 {
  --len: 20;
  --start-sec: calc(var(--blue-start) + (250 + 20) * var(--sec) / var(--light-speed));
  --dur-sec: calc(20 * var(--sec) / var(--light-speed));
}
.inline-svg-diagram .beam--blue-4 {
  --len: 10;
  --start-sec: calc(var(--blue-start) + (250 + 20 + 20) * var(--sec) / var(--light-speed));
  --dur-sec: calc(10 * var(--sec) / var(--light-speed));
}
.inline-svg-diagram {
  /* BLUE BRANCHES: start when wavefront reaches their tap point on the main beam */
}
.inline-svg-diagram .beam--branch-1 {
  /* tap at 250px */
  --len: 40;
  --start-sec: calc(var(--blue-start) + 250 * var(--sec) / var(--light-speed));
  --dur-sec: calc(var(--len) * var(--sec) / var(--light-speed));
}
.inline-svg-diagram .beam--branch-2 {
  /* tap at 260px */
  --len: 60;
  --start-sec: calc(var(--blue-start) + 260 * var(--sec) / var(--light-speed));
  --dur-sec: calc(var(--len) * var(--sec) / var(--light-speed));
}
.inline-svg-diagram .beam--branch-3 {
  /* tap at 270px */
  --len: 50;
  --start-sec: calc(var(--blue-start) + 270 * var(--sec) / var(--light-speed));
  --dur-sec: calc(var(--len) * var(--sec) / var(--light-speed));
}
.inline-svg-diagram .beam--branch-4 {
  /* tap at 280px */
  --len: 35;
  --start-sec: calc(var(--blue-start) + 280 * var(--sec) / var(--light-speed));
  --dur-sec: calc(var(--len) * var(--sec) / var(--light-speed));
}
.inline-svg-diagram .beam--branch-5 {
  /* tap at 290px */
  --len: 45;
  --start-sec: calc(var(--blue-start) + 290 * var(--sec) / var(--light-speed));
  --dur-sec: calc(var(--len) * var(--sec) / var(--light-speed));
}

/* Run animations only when toggled on by JS */
.inline-svg-diagram.is-running .beam {
  animation: beamDraw linear forwards;
  animation-duration: var(--dur-sec, 0s);
  animation-delay: var(--start-sec, 0s);
  animation-iteration-count: 1;
}

@keyframes beamDraw {
  to {
    stroke-dashoffset: 0;
  }
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .inline-svg-diagram .beam {
    animation: none !important;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}
/*****************************************
        PHOTON x WAVELENGTH SHOOTER
*****************************************/
#pass-scatter-absorb {
  padding: 0;
}

.photon-demo {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.photon-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.photon {
  position: absolute;
  width: var(--photon-size, 6px);
  height: var(--photon-size, 6px);
  border-radius: 50%;
  background-color: currentColor;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.o2-molecule {
  position: absolute;
  top: 124px;
  right: 90px;
}
.o2-molecule .nuclei {
  position: relative;
}
.o2-molecule .nuclei::before, .o2-molecule .nuclei::after {
  content: "";
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  background-color: var(--text-color);
}
.o2-molecule .nuclei::before {
  top: -7px;
  left: -15px;
}
.o2-molecule .nuclei::after {
  top: 7px;
  left: 15px;
}
.o2-molecule .electron-cloud {
  position: relative;
  will-change: transform;
  animation: electronCloudVibrate ease-in-out infinite;
  animation-duration: 1000ms;
}
.o2-molecule .electron-cloud::before, .o2-molecule .electron-cloud::after {
  content: "";
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  background: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0) 70%);
}
.o2-molecule .electron-cloud::before {
  top: -7px;
  left: -15px;
}
.o2-molecule .electron-cloud::after {
  top: 7px;
  left: 15px;
}

@keyframes electronCloudVibrate {
  0% {
    transform: translateY(calc(var(--electron-cloud-amplitude, 0px) * -1));
  }
  50% {
    transform: translateY(var(--electron-cloud-amplitude, 0px));
  }
  100% {
    transform: translateY(calc(var(--electron-cloud-amplitude, 0px) * -1));
  }
}
.photon-source-label,
.oxygen-molecule-label {
  transform: translateX(-50%);
  position: absolute;
  top: 160px;
  text-align: center;
}

.photon-source-label {
  left: 37px;
}

.oxygen-molecule-label {
  right: 19px;
}

.control-panel {
  position: relative;
  margin: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: white;
  border-radius: 30px;
  z-index: 2;
}
@media (min-width: 600px) {
  .control-panel {
    flex-direction: row;
  }
}

.inverse-wavelength-control {
  flex-grow: 1;
}

label[for=inverse-wavelength-slider],
.label.pass-scatter-absorb-response-label {
  display: block;
  margin-bottom: 10px;
}

#inverse-wavelength-slider {
  display: block;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  margin: 8px 0;
}

/* WebKit/Blink track */
#inverse-wavelength-slider::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #F00 0%, #FF0 14%, #0F0 28%, #0FF 40.38%, #00F 57%, #F0F 71%, #000 85%, #000 100%);
}

/* WebKit/Blink thumb */
#inverse-wavelength-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -4px; /* centers thumb over 10px track */
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: #fff;
}

/* Firefox track */
#inverse-wavelength-slider::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #F00 0%, #FF0 14%, #0F0 28%, #0FF 40.38%, #00F 57%, #F0F 71%, #000 85%, #000 100%);
}

/* Firefox progress (optional, keep same as track so full bar shows gradient) */
#inverse-wavelength-slider::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #F00 0%, #FF0 14%, #0F0 28%, #0FF 40.38%, #00F 57%, #F0F 71%, #000 85%, #000 100%);
}

/* Firefox thumb */
#inverse-wavelength-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: #fff;
}

.inverse-wavelength-labels {
  position: relative;
  display: flex;
  gap: 2px;
}

.wavelength-slider-label--visible {
  flex-basis: 71%;
}

.wavelength-slider-label--uv {
  flex-basis: 29%;
}

.wavelength-slider-label--resonance {
  position: absolute;
  right: -30px;
  top: 18px;
  text-align: center;
  line-height: 90%;
}
.wavelength-slider-label--resonance:before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  right: 50%;
  width: 0;
  height: 31px;
  border-left: 1px dotted var(--annotation-arrow-color);
}

.wavelength-slider-label {
  position: relative;
  text-align: center;
}
.wavelength-slider-label:before {
  content: "";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 100%;
  height: 8px;
  border: 1px solid var(--annotation-arrow-color);
  border-top-width: 0;
}
.wavelength-slider-label:after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 8px;
  background-color: var(--annotation-arrow-color);
}

.gauge {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}
.gauge .label--small {
  width: 120px;
}

.gauge__bar {
  position: relative;
  width: 94px;
  height: 10px;
  background-color: color-mix(in srgb, var(--text-color) 10%, transparent);
  border-radius: 2px;
}
.gauge__bar:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--bar-fill, 0%);
  height: 100%;
  background-color: var(--text-color);
  border-radius: inherit;
}

/*****************************************
               RGB ADJUSTER
*****************************************/
.color-adjuster-widget {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
@media (min-width: 500px) {
  .color-adjuster-widget {
    flex-direction: row;
  }
}

.column {
  flex-basis: 50%;
}

.output-color-swatch {
  margin-bottom: 20px;
  height: 100px;
}

.color-swatch-input-controls {
  display: grid;
  grid-template-columns: [label] max-content [slider] 1fr;
  gap: 8px 16px;
  margin: 12px 0 0;
}
.color-swatch-input-controls .label--small {
  text-align: right;
}

/*****************************************
            IR / VISIBLE BLEND
*****************************************/
#fire-rescue {
  --ir-opacity: 1;
}

.image-stack {
  position: relative;
}

.image {
  display: block;
  width: 100%;
  border-radius: 20px;
}

.image--vis {
  position: relative;
}

.image--ir {
  position: absolute;
  inset: 0;
  opacity: var(--ir-opacity);
}

.ir-opacity-slider {
  display: block;
  width: 100%;
  margin: 10px 0 4px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
}

/*# sourceMappingURL=blue-sky.css.map */
