/**
 * Content
 */

body {
	background-color: #fff;
	color: #000;
}

a:active {
	opacity: 0.7;
}

.page a.active {
	opacity: .4;
}

i,
em {
	font-style: italic;
}

b,
strong {
	font-weight: bolder;
}

sub,
sup {
	position: relative;
	vertical-align: baseline;
}

sub {
	top: 0.3em;
}

sup {
	top: -0.4em;
}

s {
	text-decoration: line-through;
}

img {
	border: 0;
	padding: 0;
}

ul,
ol {
	margin: 0;
	padding: 0 0 0 1em;
}

blockquote {
	margin: 0;
	padding: 0 0 0 2em;
}

hr {
	background: rgba(127, 127, 127, 0.2);
	border: 0;
	height: 1px;
	display: block;
}

.content img {
	float: none;
	margin-bottom: .5em;
}

.gallery_image_caption {
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.35);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-style: normal;
	line-height: 1.3;	
}

/**
 * Loading Animation
 */

.loading[data-loading] {
	position: fixed;
	bottom: 8px; 
    left: 8px;
}

/**
 * Editor styles
 */

[data-predefined-style="true"] bodycopy {
	font-size: 1.2rem;
	font-weight: 300;
	color: rgb(0, 0, 0);
	font-family: Favorit, Icons;
	font-style: normal;
	line-height: 1.3;
}

[data-predefined-style="true"] bodycopy a {
	color: #000;
	padding-bottom: 0.1em;
	border-bottom: 0.0em solid rgba(127, 127, 127, 0.2);
	text-decoration: underline;
}

[data-predefined-style="true"] bodycopy a:hover {

}

bodycopy a.image-link,
bodycopy a.icon-link,
bodycopy a.image-link:hover,
bodycopy a.icon-link:hover {
	border-bottom: 0;
	padding-bottom: 0;
}

[data-predefined-style="true"] h1 {
	font-family: Favorit, Icons;
	font-style: normal;
	font-weight: 400;
	padding: 0;
	margin: 0;
	font-size: 1.8rem;
	line-height: 1;
	color: #000;
	}

[data-predefined-style="true"] h1 a {
	color: #000;
}

[data-predefined-style="true"] h2 {
	font-family: Favorit, Icons;
	font-style: normal;
	font-weight: 500;
	padding: 0;
	margin: 0;
	color: #000;
	font-size: 3rem;
	line-height: 1.2;
	}

[data-predefined-style="true"] h2 a {
	color: #000;
}

[data-predefined-style="true"] small {
	display: inline-block;
	font-size: 1.3rem;
	line-height: 1.3;
	font-family: Favorit, Icons;
	font-style: normal;
	font-weight: 200;
	color: #000;
}

[data-predefined-style="true"] small a {
	color: #000;
	border-bottom-width: 0em;
}

/**
 * Breakpoints
 */


[data-css-preset] .page {
    background-color: initial /*!page_bgcolor*/;
}

.mobile .page,
[data-css-preset].mobile .page {
	position: relative;
	min-height: 10px;
	max-width: 100%;
	width: 100%;
	background-color: transparent /*!page_bgcolor*/;
}

[data-css-preset] .container {
	margin-left: 0 /*!content_left*/;
	margin-right: auto /*!content_left*/;
	text-align: left /*!text_left*/;
}

[data-css-preset] body {
	background-color: transparent/*!body_bgcolor*/;
}

[data-css-preset] .container_width {
	width: 100% /*!content_left*/;
}

[data-css-preset] .content_padding {
	padding-top: 5rem /*!main_margin*/;
	padding-bottom: 5rem /*!main_margin*/;
	padding-left: 5rem /*!main_margin*/;
	padding-right: 5rem /*!main_margin*/;
}


[data-css-preset] text-limit {
	display: inline-block /*!text_width*/;
	max-width: 66rem/*!text_width*/;
}

/**
 * Thumbnails
 */

div[thumbnails] {
	justify-content: flex-start;
}

[data-css-preset] .thumbnails {
   	background-color: rgb(6, 6, 6)/*!thumbnails_bgcolor*/;   
}

[data-css-preset] .thumbnails_width {
    width: 100%/*!thumbnails_width*/;
}

[data-css-preset] [thumbnails-pad] {
    padding: 1rem/*!thumbnails_padding*/;
}

[data-css-preset] [thumbnails-gutter] {
    margin: -2rem/*!thumbnails_padding*/;
}

[data-css-preset] [responsive-layout] [thumbnails-pad] {
    padding: 0.5rem/*!responsive_thumbnails_padding*/; 
}

[data-css-preset] [responsive-layout] [thumbnails-gutter] {
    margin: -1rem/*!responsive_thumbnails_padding*/; 
}

.thumbnails .thumb_image {
	outline: 0px solid rgba(0,0,0,.12);
    outline-offset: -1px;
}

.thumbnails .title {
    margin-top: 1.2rem;
    margin-bottom: .3rem;
    font-size: 1.8rem;
	font-weight: normal;
	color: rgba(255, 255, 255, 0.85);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-style: normal;
	line-height: 1.1;
}

.thumbnails .tags {
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 1.0rem;
	font-weight: 400;
	color: rgba(7, 7, 7, 0);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-style: normal;
	line-height: 1.2;
}

.thumbnails .tags a {
	border-bottom: 0;
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

.thumbnails .has_title .tags {
	margin-top: 0rem;
}

/**
 * Site Menu
 */

[data-css-preset] #site_menu_button {
    color: rgba(0, 0, 0, 0.75);
    line-height: 1;
    font-size: 28px /*!site_menu_button*/;
    padding: 6px;
    line-height: 1;
    background: rgba(33, 32, 46, 0);
    position: fixed;
    top: 2rem /*!site_menu_button*/;
	right: 2rem /*!site_menu_button*/;
}

body.mobile #site_menu_button {
	margin: -6px;
    font-size: 34px;
}

#site_menu_button.custom_icon {
	width: 40px;
    height: auto;
}

#site_menu_button.active {
	display: none;
}

/**
 * Site Menu
 */

#site_menu {
	font-family: Favorit, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	background: rgba(20, 20, 20, 0.95);
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	padding: 20px 30px 90px 30px;
	max-width: 400px;
	min-width: 300px;
	text-align: left;
	display: flex;
	justify-content: flex-start;
}

body.mobile #site_menu {
	width: 100%;
}

#site_menu .page-link a {
	color: rgba(255, 255, 255, 0.75);
}

#site_menu .set-link > a {
	color: rgba(255, 255, 255, 0.75);
	font-weight: bold;
}

#site_menu a:active {
	opacity: .7;
}

#site_menu a.active {
	opacity: .4;
}

#site_menu .close {
	display: none;
	color: rgba(255, 255, 255, 0.4);
	line-height: .85em;
	font-size: 45px;
}

body.mobile #site_menu .close {
	display: block;
	font-size: 50px;
	line-height: 1em;
}

#site_menu .break {
	height: 28px;
}

#site_menu .indent {
	margin-left: 28px;
}

/*
 * Shop Button
 */

[data-css-preset] #shop_button {
	color: rgba(0, 0, 0, 0.85);
    background: transparent;
	font-size: 32px;
    font-style: normal;
	font-weight: 400;
    line-height: 1;
    position: fixed;
	padding: 6px;
	top: 2rem /*!shop_button*/;
	right: 2rem /*!shop_button*/;
}

#shop_button.text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-size: 2rem;
    padding: 0;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.85);
}

#shop_button.custom_icon {
	width: 40px;
    height: auto;
}

body.mobile #shop_button:not(.text) {
	margin: -6px;
    font-size: 36px;
}

/*
 * Shop Product Widget
 */

.shop_product {
    width: 100%;
	max-width: 22rem;
    position: relative;
    display: block;
}

.shop_product .price {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-size: 2rem;
	line-height: 1;
	color: rgba(0, 0, 0, 0.85);
    display: block;
    margin-bottom: 1rem;
}

.shop_product .dropdown {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
    font-size: 1.4rem;
    display: inline-block;
	width: 100%;
    border: 1px solid rgba(0,0,0,.2);
    background:  white url(https://static.cargo.site/assets/images/select-arrows.svg) no-repeat right;
    margin-bottom: 1rem;
    line-height: 1.2;
    padding: .7rem 1rem;
}

.shop_product .button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
	font-size: 1.4rem;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255,255,255,1);
    flex: 0 0 50%;
    text-align: left;
    display: inline-block;
	line-height: 1;
    padding: .8rem 1rem .9rem;
}

/*
 * Image Zoom
 */

.content img.image-zoom:active {
  opacity: .7;
}

/**
 * Quick View
 */

[data-css-preset] .quick-view {
    padding-top: 2.5rem /*!quick_view_padding*/;
    padding-bottom: 2.5rem /*!quick_view_padding*/;
    padding-left: 2.5rem /*!quick_view_padding*/;
    padding-right: 2.5rem /*!quick_view_padding*/;
    height: 100% /*!quick_view_height*/;
    width: 100% /*!quick_view_width*/;
}

body.mobile .quick-view {
    width: 100%;
    height: 100%;
    margin: 0;
}


[data-css-preset] .quick-view-background {
	background: rgba(255, 255, 255, 0.95) /*!quick_view_bgcolor*/;
}

.quick-view-caption {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
    transition: 100ms opacity ease-in-out;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 2rem 0;
    text-align: center;
    font-size: 1.8rem;
}

.quick-view-caption span {
    padding: 0.5rem 1rem;
    display: inline-block;
    background: rgba(0,0,0,0.4);
    color: white;
}


/**
 * Quick View Navigation 
 */

.quick-view-navigation .left-arrow {
    left: 10px;
}

.quick-view-navigation .right-arrow {
    right: 10px;
}

.quick-view-navigation .left-arrow,
.quick-view-navigation .right-arrow {
    /* Change height/width together to scale */
    height: 36px;
    width: 36px;
}

.quick-view-navigation .left-arrow .inner-color,
.quick-view-navigation .right-arrow .inner-color {
    stroke: #fff;
    stroke-width: 1.5px;
}

.quick-view-navigation .left-arrow .outer-color,
.quick-view-navigation .right-arrow .outer-color {
    stroke: #000;
    stroke-width: 2.5px;
    opacity: 0.6;
}

.quick-view-navigation .close-button {  
    top: 10px;
    right: 10px;
    /* Change height/width together to scale */
    width: 36px;
    height: 36px;
}

.quick-view-navigation .close-button .inner-color {
    stroke: #fff;
    stroke-width: 1.5px;
}

.quick-view-navigation .close-button .outer-color {
    stroke: #000;
    stroke-width: 2.5px;
    opacity: 0.6;
}

/** 
 * Image Gallery Navigation Arrows 
 */
 
.image-gallery-navigation .left-arrow,
.image-gallery-navigation .right-arrow {
    /* Change height/width together to scale */
    height: 36px;
    width: 36px;
}

.image-gallery-navigation .left-arrow .inner-color,
.image-gallery-navigation .right-arrow .inner-color {
    stroke: #fff;
    stroke-width: 1.5px;
}

.image-gallery-navigation .left-arrow .outer-color,
.image-gallery-navigation .right-arrow .outer-color {
    stroke: #000;
    stroke-width: 2.5px;
    opacity: 0.6;
}

/**
 * Wallpaper Backdrop Navigation Arrows 
 */

.wallpaper-navigation .left-arrow,
.wallpaper-navigation .right-arrow {
   /* Change height/width together to scale */
   width: 36px;
   height: 36px;
}

.wallpaper-navigation .left-arrow .inner-color,
.wallpaper-navigation .right-arrow .inner-color {
   stroke: #fff;
    stroke-width: 1.5px;
}

.wallpaper-navigation .left-arrow .outer-color,
.wallpaper-navigation .right-arrow .outer-color {
    stroke: #000;
    stroke-width: 2.5px;
    opacity: 0.6;
}


/**
 * Feed
 */

.feed .content_container .page {
    border-top: 0px dashed rgba(0, 0, 0, 0.2);
}

.feed .content_container .page_container:first-child .page {
	border-top: 0;
}



/*
 * Audio Player
 */

.audio-player {
    max-width: 36rem;
    height: 3.3rem;
    outline: 1px solid rgba(0,0,0,0.15);
    color: rgba(0, 0, 0, 0.6);
    background: #fff;
    font-size: 1.2rem;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Sans Serif", Icons;
    font-style: normal;
    font-weight: 400;
    text-align: left;
    margin: 1px 1px 1em 1px;
}

body.mobile .audio-player {
    max-width: 100%;
}

.audio-player .separator {
    width: 1px;
    background-color: rgba(0,0,0,0.15);
}

.audio-player .button {
    background: transparent;
    cursor: pointer;
    fill: rgba(0, 0, 0, 0.85);
}

.audio-player .icon {
    fill: rgba(0, 0, 0, 0.85);
    padding: 30%;
    width: 100%;
    margin: auto;
}

.audio-player .buffer {
    background: rgba(0,0,0,0.03);
}

.audio-player .progress {
    background: rgba(0,0,0,0.1);
}

.audio-player .progress-indicator {
    border: 1px solid rgba(0, 0, 0, 0.7);
    width: 1px;
    height: 100%;
    right: 0;
    position: absolute;
    cursor: ew-resize;
}

.audio-player .note-icon {
    height: 100%;
    width: 3.8rem;
    padding: 1rem;
    fill: rgba(0, 0, 0, 0.5);
}

.audio-player .current-time {
    padding-left: 1rem;
}

.audio-player .total-time {
    padding-right: 1rem;
}

.flier {
	pointer-events: none;
}

.flier > * {
/* Adjust animation duration to change the element’s speed */
        animation: fly 50s linear infinite;
        pointer-events: none !important;
	top: 0;
	left: 0;
	transform: translateX(-120%) translateY(-120%) rotateZ(0);
	position: fixed;
	animation-delay: 1s;
	z-index: 999999;
}

 /* Keyframe values control where the element will begin
    and end its trajectory across the screen. Each rule
    represents a path the element follows across the screen. */


@keyframes fly {

	98.001%, 0% {
                display: block;
		transform: translateX(-200%) translateY(100vh) rotateZ(0deg)
	}

	15% {
		transform: translateX(100vw) translateY(-100%) rotateZ(180deg)
	}

	15.001%, 18% {
		transform: translateX(100vw) translateY(-30%) rotateZ(0deg)
	}

	40% {
		transform: translateX(-200%) translateY(3vh) rotateZ(-180deg)
	}

	40.001%, 43% {
		transform: translateX(-200%) translateY(-100%) rotateZ(-180deg)
	}

	65% {
		transform: translateX(100vw) translateY(50vh) rotateZ(0deg)
	}

	65.001%, 68% {
		transform: translateX(20vw) translateY(-200%) rotateZ(180deg)
	}

	95% {
		transform: translateX(10vw) translateY(100vh) rotateZ(0deg)
	}
}

.rotate {
    display: inline-block;
    -webkit-animation: rotate 4s linear infinite;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* keeps 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* ==========================================================================
   RANDOM SCROLL + LIGHTBOX + SITE SEARCH + READABLE FOOTER/HEADER + NOW PLAYING + STUDIO AMBIENCE + INDEX FILTERS + RELATED WORK + COLOUR + YEAR SCRUBBER — halvorbodin.design
   Paste at the END of: Site Settings → CSS/HTML → CSS (the CSS Editor).
   Uses the site's own typeface, Favorit (already loaded by Cargo),
   sized in rem so it scales with the window exactly like the rest of the site.
   ========================================================================== */

/* ---------- Shared settings: change these to adjust everything ---------- */
:root {
  --bs-font: Favorit, Icons, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --bs-text-size: 1.2rem;       /* = site body text */
  --bs-text-weight: 300;        /* Favorit Book, as in body text */
  --bs-line: 1.3;               /* = site body line height */
  --bs-title-weight: 400;       /* Favorit Regular, as in headings */
  --bs-small-size: 1rem;
  --bs-small-weight: 200;       /* Favorit Light */
  --bs-big-size: 2.4rem;        /* search field in the overlay */

  --bs-menu-size: 1.3rem;       /* = site menu (Index, Random …) */
  --bs-menu-weight: 200;        /* Favorit Light, as in the menu */
  --bs-menu-white: rgba(255, 255, 255, .41);  /* = menu text colour */
  --bs-logo-white: rgba(255, 255, 255, .2);   /* = the HB logo in the header (white at 20%) */
  --bs-title-color: currentColor; /* image titles in the scroll: the page's own text colour.
                                   On a dark page, use var(--bs-menu-white) instead. */

  --bs-overlay-bg: rgba(0, 0, 0, .94);
  --bs-overlay-text: #fff;
  --bs-dim: .6;                 /* faded text (counts, excerpts, placeholders) */

  --rs-columns: 4;              /* random scroll: columns on desktop */
  --rs-gap: 1rem;               /* random scroll: space between images */
  --rs-small-width: 55%;        /* width of the "smaller" images */
  --rs-title-size: .9rem;       /* text under the random images (small) */
  --rs-title-gap: .25em;        /* space between image and its text */
}

/* ==========================================================================
   1. RANDOM SCROLL
   ========================================================================== */
#random-scroll {
  column-count: var(--rs-columns);
  column-gap: var(--rs-gap);
  width: 100%;
  font-family: var(--bs-font);
  font-size: var(--bs-text-size);
  font-weight: var(--bs-text-weight);
  line-height: var(--bs-line);
}
@media (max-width: 1100px) { #random-scroll { --rs-columns: 3; } }
@media (max-width: 760px)  { #random-scroll { --rs-columns: 2; } }
@media (max-width: 420px)  { #random-scroll { --rs-columns: 1; } }

#random-scroll .rs-item {
  display: block;
  break-inside: avoid;
  margin: 0 0 var(--rs-gap);
}
#random-scroll .rs-item.rs-small { width: var(--rs-small-width); }

/* !important overrides Cargo's own image sizing and scroll-fade effects */
#random-scroll .rs-item img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: var(--rs-ratio, auto);
  background: rgba(0, 0, 0, .04);
  cursor: zoom-in;
  opacity: 1 !important;
  transform: none !important;
}

/* Project title under each image — links to the project */
#random-scroll .rs-item br { display: none; }   /* no empty line between image and title */
#random-scroll .rs-title {
  display: block;
  width: fit-content;
  padding-top: var(--rs-title-gap);
  font-family: var(--bs-font);
  font-size: var(--rs-title-size);
  font-weight: var(--bs-menu-weight);
  line-height: 1.2;
  color: var(--bs-title-color); /* page's text colour; see settings at the top */
  text-decoration: none;
  opacity: 0;                   /* shown on hover — set to 1 to always show */
  transition: opacity .2s ease, color .2s ease;
}
#random-scroll .rs-item:hover .rs-title { opacity: 1; }
#random-scroll .rs-title:hover { text-decoration: underline; text-underline-offset: .15em; }
@media (hover: none) { #random-scroll .rs-title { opacity: 1; } }   /* phones/tablets */

/* ==========================================================================
   2. ENLARGED IMAGE (lightbox)
   ========================================================================== */
#rs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bs-overlay-bg);
  color: var(--bs-overlay-text);
  font-family: var(--bs-font);
  font-size: var(--bs-text-size);
  font-weight: var(--bs-text-weight);
  line-height: var(--bs-line);
  cursor: zoom-out;
}
#rs-lightbox.rs-open { display: flex; }

#rs-lightbox img {
  display: block;
  max-width: 92vw !important;
  max-height: 84vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  opacity: 1 !important;
  transform: none !important;
}
#rs-lightbox .rs-lb-title {
  margin-top: .8em;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
#rs-lightbox .rs-lb-title:hover { text-decoration: underline; text-underline-offset: .15em; }

#rs-lightbox button {
  position: absolute;
  padding: .4em .5em;
  background: none;
  border: 0;
  color: inherit;
  font-family: var(--bs-font);
  font-weight: var(--bs-small-weight);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
}
#rs-lightbox button:hover { opacity: 1; }
#rs-lightbox .rs-lb-prev  { left: .2em;  top: 50%; transform: translateY(-50%); }
#rs-lightbox .rs-lb-next  { right: .2em; top: 50%; transform: translateY(-50%); }
#rs-lightbox .rs-lb-close { right: .2em; top: .2em; font-size: 2rem; }

/* ==========================================================================
   3. SEARCH
   ========================================================================== */

/* The small field in the menu / header — line and text in transparent white, like the logo */
#site-search .ss-field {
  width: 10em;
  max-width: 100%;
  padding: .1em 0;
  font-family: var(--bs-font);
  font-size: var(--bs-menu-size);
  font-weight: var(--bs-menu-weight);
  line-height: var(--bs-line);
  color: var(--bs-logo-white);
  caret-color: var(--bs-logo-white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bs-logo-white);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease, color .2s ease;
}
#site-search .ss-field::placeholder { color: var(--bs-logo-white); opacity: 1; }
#site-search .ss-field:hover { border-bottom-color: rgba(255, 255, 255, .45); }

/* Overlay */
#ss-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bs-overlay-bg);
  color: var(--bs-overlay-text);
  font-family: var(--bs-font);
  font-size: var(--bs-text-size);
  font-weight: var(--bs-text-weight);
  line-height: var(--bs-line);
  -webkit-font-smoothing: antialiased;
}
#ss-overlay.ss-open { display: block; }
#ss-overlay .ss-inner { max-width: 1400px; margin: 0 auto; padding: 4vh 4vw 10vh; }

#ss-overlay .ss-top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  background: var(--bs-overlay-bg);
}
#ss-overlay .ss-input {
  flex: 1;
  min-width: 0;
  padding: .15em 0;
  font-family: var(--bs-font);
  font-size: var(--bs-big-size);
  font-weight: var(--bs-text-weight);
  line-height: 1.1;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bs-logo-white);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
#ss-overlay .ss-input::placeholder { color: var(--bs-logo-white); opacity: 1; }
#ss-overlay .ss-input::-webkit-search-cancel-button,
#site-search .ss-field::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

#ss-overlay .ss-close {
  padding: .1em .2em;
  background: none;
  border: 0;
  color: inherit;
  font-family: var(--bs-font);
  font-weight: var(--bs-small-weight);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
}
#ss-overlay .ss-close:hover { opacity: 1; }

#ss-overlay .ss-status {
  min-height: 1.3em;
  margin: .6rem 0 1.6rem;
  font-size: var(--bs-small-size);
  font-weight: var(--bs-small-weight);
  opacity: var(--bs-dim);
}

#ss-overlay .ss-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 2.2rem 1.4rem;
}
@media (max-width: 520px) {
  #ss-overlay .ss-results { grid-template-columns: 1fr 1fr; gap: 1.6rem .9rem; }
}

#ss-overlay .ss-result { display: block; color: inherit; text-decoration: none; }
#ss-overlay .ss-thumb {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: rgba(255, 255, 255, .06);
  opacity: 1 !important;
  transform: none !important;
  transition: opacity .2s ease;
}
#ss-overlay .ss-result:hover .ss-thumb { opacity: .8 !important; }
#ss-overlay .ss-title {
  display: block;
  margin-top: .5em;
  font-weight: var(--bs-title-weight);
}
#ss-overlay .ss-result:hover .ss-title { text-decoration: underline; text-underline-offset: .15em; }
#ss-overlay .ss-snippet {
  display: block;
  margin-top: .3em;
  font-size: var(--bs-small-size);
  font-weight: var(--bs-small-weight);
  opacity: var(--bs-dim);
}

/* Stop the page behind from scrolling while an overlay is open */
html.rs-noscroll, html.rs-noscroll body,
html.ss-noscroll, html.ss-noscroll body { overflow: hidden !important; }

/* ==========================================================================
   4. FOOTER AND HEADER THAT STAY READABLE OVER IMAGES
   The footer text, the logo and the menu icon change colour with whatever
   passes underneath them.
   ========================================================================== */
:root {
  /* measure = the script reads the brightness behind each line and picks black or white
     blend   = the text is inverted against the background (like bleed.com) */
  --bs-footer-mode: measure;
  --bs-footer-on-light: #000;        /* text colour over light images/backgrounds */
  --bs-footer-on-dark: #fff;         /* text colour over dark images/backgrounds */
  --bs-footer-blend-color: #fff;     /* blend mode: white gives the exact opposite colour */
  --bs-footer-threshold: .18;        /* measure: below this brightness (0–1) the text turns white */
  --bs-footer-fade: .25s;            /* how quickly the colour changes */
  --bs-footer-halo-on-light: none;   /* optional soft glow behind black text, e.g. 0 0 .5em rgba(255,255,255,.7) */
  --bs-footer-halo-on-dark: none;    /* optional soft shadow behind white text, e.g. 0 0 .5em rgba(0,0,0,.7) */
  --bs-header-opacity: 1;            /* logo and menu icon: 1 = solid black/white, .2 = as faint as before */
}

/* measure: black or white, line by line */
.bs-footer small a,
.bs-footer small .data-panel,
.bs-footer small .bs-fl,
.bs-footer #site-search .ss-field {
  transition: color var(--bs-footer-fade) ease, border-color var(--bs-footer-fade) ease,
              text-shadow var(--bs-footer-fade) ease;
}
.bs-footer small .bs-on-light,
.bs-footer small input.bs-on-light::placeholder {
  color: var(--bs-footer-on-light) !important;
  border-bottom-color: var(--bs-footer-on-light) !important;
  caret-color: var(--bs-footer-on-light);
  text-shadow: var(--bs-footer-halo-on-light);
}
.bs-footer small .bs-on-dark,
.bs-footer small input.bs-on-dark::placeholder {
  color: var(--bs-footer-on-dark) !important;
  border-bottom-color: var(--bs-footer-on-dark) !important;
  caret-color: var(--bs-footer-on-dark);
  text-shadow: var(--bs-footer-halo-on-dark);
}

/* blend: the opposite colour of whatever is underneath */
.bs-footer.bs-blend { mix-blend-mode: difference; }
.bs-footer.bs-blend small,
.bs-footer.bs-blend small a,
.bs-footer.bs-blend #site-search .ss-field,
.bs-footer.bs-blend #site-search .ss-field::placeholder {
  color: var(--bs-footer-blend-color) !important;
  border-bottom-color: var(--bs-footer-blend-color) !important;
  caret-color: var(--bs-footer-blend-color);
  text-shadow: none;
}

/* header: the logo and menu icon are redrawn as inline SVG on top of the original image */
.bs-ink-src { opacity: 0 !important; }
.bs-ink {
  position: absolute;
  pointer-events: none;
  overflow: visible;
  opacity: var(--bs-header-opacity);
  color: var(--bs-footer-on-light);
  transition: color var(--bs-footer-fade) ease;
}
.bs-ink.bs-on-light { color: var(--bs-footer-on-light); }
.bs-ink.bs-on-dark  { color: var(--bs-footer-on-dark); }
.bs-header .image-link { position: relative; }

/* blend mode also covers the header */
.bs-header.bs-blend, .bs-menu-icon.bs-blend { mix-blend-mode: difference; }
.bs-blend .bs-ink { color: var(--bs-footer-blend-color) !important; }

/* ==========================================================================
   5. NOW PLAYING — what is playing in Roon, as one line of text
   Takes the size, weight and colour of where it sits (in the footer: the footer's own).
   ========================================================================== */
:root {
  --np-label-opacity: 1;        /* "Now playing": 1 = same as the track, e.g. .6 = fainter */
  --np-max-width: 24em;         /* long names are cut with … (full name shows on hover) */
  --np-title-style: italic;     /* track title (artist stays upright); normal = no italics */
}
#now-playing, .now-playing { display: inline; }
#now-playing.np-off, .now-playing.np-off { display: none; }
#now-playing .np-label, .now-playing .np-label { opacity: var(--np-label-opacity); }
#now-playing .np-track, .now-playing .np-track {
  display: inline-block;
  max-width: var(--np-max-width);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
#now-playing .np-title, .now-playing .np-title { font-style: var(--np-title-style); }

/* ==========================================================================
   6. STUDIO AMBIENCE PAGE — listening log, text only
   Only on the page with <div id="studio-ambience">: the script marks <html> with .sa-page.
   ========================================================================== */
:root {
  --sa-page-bg: #000;                      /* page background (only this page) */
  --sa-page-text: #fff;                    /* page text (only this page) */
  --sa-text-size: var(--bs-text-size);     /* the list: same as body text */
  --sa-head-size: var(--bs-text-size);     /* "Now", "This week" …: same size, see weight */
  --sa-head-weight: var(--bs-title-weight);
  --sa-top: 8rem;                          /* space above the list */
  --sa-col-gap: 1em;                       /* space between time / number and the text */
  --sa-gap: 2.5em;                         /* space between the blocks */
  --sa-title-gap: 1.2em;                   /* space under the "Studio ambience" title */
  --sa-art-dim: .55;                       /* darkens the album-cover backdrop so the text stays readable (0 = off) */
  --sa-numbers: tabular-nums;              /* times and counts in Favorit's tabular figures (normal = proportional) */
  --sa-title-style: var(--np-title-style); /* track titles: italic, like the footer line */
}
html.sa-page, html.sa-page body { background: var(--sa-page-bg) !important; }
html.sa-page .page_container:not(.overlay) { color: var(--sa-page-text); }
#studio-ambience {
  padding-top: var(--sa-top);
  color: var(--sa-page-text);
  font-family: var(--bs-font);
  font-size: var(--sa-text-size);
  font-weight: var(--bs-text-weight);
  line-height: var(--bs-line);
}
/* Each block is a two-column grid: the time column is as wide as its widest entry */
/* Page title: Cargo's own H1 style, in the page text colour */
#studio-ambience .sa-page-title {
  margin: 0 0 var(--sa-title-gap);
  color: var(--sa-page-text);
}
#studio-ambience .sa-block {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: var(--sa-col-gap);
  margin: 0 0 var(--sa-gap);
}
#studio-ambience .sa-head {
  grid-column: 1 / -1;
  margin: 0 0 .5em;
  font-size: var(--sa-head-size);
  font-weight: var(--sa-head-weight);
  line-height: var(--bs-line);
  color: inherit;                          /* Cargo gives h2 its own colour */
}
#studio-ambience .sa-row { display: contents; }
#studio-ambience .sa-time {
  opacity: var(--bs-dim);
  font-variant-numeric: var(--sa-numbers);
}
#studio-ambience .sa-top .sa-time { text-align: right; }
#studio-ambience .sa-track { min-width: 0; }
#studio-ambience .sa-now .sa-track,
#studio-ambience .sa-empty { grid-column: 1 / -1; }
#studio-ambience .sa-row.sa-empty { display: block; opacity: var(--bs-dim); }

/* Earlier days: weekday name you click to unfold that day's plays */
#studio-ambience .sa-days { display: block; }
#studio-ambience .sa-day > summary {
  display: block;
  list-style: none;
  cursor: pointer;
}
#studio-ambience .sa-day > summary::-webkit-details-marker { display: none; }
#studio-ambience .sa-day > summary::after { content: " +"; opacity: var(--bs-dim); }
#studio-ambience .sa-day[open] > summary::after { content: " –"; }
#studio-ambience .sa-day-count { opacity: var(--bs-dim); }
#studio-ambience .sa-day-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: var(--sa-col-gap);
  margin: .25em 0 .9em;
}
#studio-ambience .sa-title { font-style: var(--sa-title-style); }
/* Darken the Cargo backdrop (album cover) a little behind the white text */
html.sa-page .backdrop::after {
  content: "";
  position: fixed;                         /* covers the whole window all the way down, like the backdrop */
  inset: 0;
  background: #000;
  opacity: var(--sa-art-dim);
  pointer-events: none;
}

/* ==========================================================================
   7. INDEX: GRID OR LIST, FILTER BY TYPE AND YEAR
   A bar above the Index thumbnails. Addresses like /Index#list, /Index#music
   or /Index#books/2024 open the Index already filtered.
   ========================================================================== */
:root {
  --ix-text: rgba(255, 255, 255, .85);   /* = project titles on the Index */
  --ix-dim: var(--bs-menu-white);        /* choices that are not selected */
  --ix-empty: rgba(255, 255, 255, .15);  /* choices with no projects right now */
  --ix-bar-size: var(--bs-text-size);    /* text size in the bar */
  --ix-bar-weight: var(--bs-menu-weight);
  --ix-bar-gap: .6em;                    /* space between choices */
  --ix-bar-space: 3rem;                  /* space under the bar */
  --ix-list-size: 1.8rem;                /* = project titles on the Index */
  --ix-list-weight: var(--bs-title-weight);
  --ix-list-fade: .35;                   /* other rows while one is hovered */
  --ix-peek-width: 24rem;                /* hover preview in the list */
  --ix-year-col: 6rem;                    /* width of the year column in the list */
}

#ix-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4em 2.2em;
  margin: 0 0 var(--ix-bar-space);
  padding: 0;
  font-family: var(--bs-font);
  font-size: var(--ix-bar-size);
  font-weight: var(--ix-bar-weight);
  line-height: var(--bs-line);
  color: var(--ix-dim);
}
#ix-bar .ix-group { display: flex; flex-wrap: wrap; gap: .2em var(--ix-bar-gap); }
#ix-bar button {
  all: unset;
  cursor: pointer;
  color: var(--ix-dim);
  transition: color .15s;
}
#ix-bar button:hover { color: var(--ix-text); }
#ix-bar button.ix-on { color: var(--ix-text); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
#ix-bar button.ix-empty { color: var(--ix-empty); }
#ix-bar button:focus-visible { outline: 1px solid var(--ix-text); outline-offset: 2px; }
#ix-bar sup { font-size: .6em; margin-left: .15em; vertical-align: .6em; line-height: 0; }
#ix-bar .ix-count { margin-left: auto; }

/* While a filter or the list is on, hide Cargo's own grid and show ours */
html.ix-custom .thumbnails[data-set="GlobalThumbnails"] [thumbnails]:not(#ix-grid) { display: none !important; }
html:not(.ix-custom):not(.ix-earlier) #ix-view { display: none; }   /* .ix-earlier: older work under the grid (section 19) */
#ix-grid .thumb_image img { opacity: 1 !important; }
#ix-view .ix-none { padding: 0; font-family: var(--bs-font); color: var(--ix-dim); font-size: var(--ix-bar-size); }

/* List */
#ix-list {
  padding: 0 0 6rem;
  font-family: var(--bs-font);
  font-size: var(--ix-list-size);
  font-weight: var(--ix-list-weight);
  line-height: 1.15;
}
#ix-list .ix-row {
  display: grid;
  grid-template-columns: var(--ix-year-col) auto minmax(0, 1fr);
  gap: .8em;
  align-items: baseline;
  padding: .12em 0;
  color: var(--ix-text);
  text-decoration: none;
  transition: opacity .15s;
}
#ix-list .ix-year, #ix-list .ix-kind {
  font-size: var(--ix-bar-size);
  font-weight: var(--bs-menu-weight);
  color: var(--ix-dim);
}
#ix-list .ix-same-year .ix-year { visibility: hidden; }
#ix-list .ix-row:not(.ix-same-year) { margin-top: .5em; }
#ix-list .ix-row:first-child { margin-top: 0; }
@media (hover: hover) {
  #ix-list:hover .ix-row { opacity: var(--ix-list-fade); }
  #ix-list:hover .ix-row:hover { opacity: 1; }
}
@media (max-width: 760px) {
  #ix-list { font-size: 1.4rem; }
  #ix-list .ix-row { grid-template-columns: 3.2em minmax(0, 1fr); }
  #ix-list .ix-kind { display: none; }
  #ix-bar { gap: .4em 1.4em; }
  #ix-bar .ix-count { margin-left: 0; }
}

/* Image that follows the cursor in the list */
#ix-peek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9000;
  width: var(--ix-peek-width);
  height: auto;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s;
}
#ix-peek.ix-show { opacity: 1; }

/* ==========================================================================
   8. RELATED WORK under each project
   ========================================================================== */
:root {
  --rw-columns: 4;
  --rw-gap: 2rem;                         /* = gap between thumbnails on the Index */
  --rw-space: 8rem;                       /* space above the block */
  --rw-ratio: 16 / 9;                     /* = Index thumbnail crop */
  --rw-title-size: 1.8rem;                /* = project titles on the Index */
  --rw-text: currentColor;               /* the project page's own text colour (pages have different backgrounds) */
  --rw-dim: .55;                          /* heading and year */
}
#related-work {
  clear: both;
  margin-top: var(--rw-space);
  font-family: var(--bs-font);
  line-height: var(--bs-line);
  color: var(--rw-text);
}
#related-work .rw-head {
  margin-bottom: 1.2rem;
  font-size: var(--bs-text-size);
  font-weight: var(--bs-menu-weight);
  opacity: var(--rw-dim);
}
#related-work .rw-grid {
  display: grid;
  grid-template-columns: repeat(var(--rw-columns), minmax(0, 1fr));
  gap: var(--rw-gap);
}
#related-work .rw-item { display: block; color: inherit; text-decoration: none; }
#related-work .rw-img { display: block; aspect-ratio: var(--rw-ratio); overflow: hidden; background: rgba(128, 128, 128, .08); }
#related-work .rw-img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 1 !important;
  transform: none !important;
  transition: transform .4s ease !important;
}
@media (hover: hover) { #related-work .rw-item:hover .rw-img img { transform: scale(1.03) !important; } }
#related-work .rw-title {
  display: block;
  margin-top: .6em;
  font-size: var(--rw-title-size);
  font-weight: var(--bs-title-weight);
  line-height: 1.1;
}
#related-work .rw-year {
  display: block;
  font-size: var(--bs-small-size);
  font-weight: var(--bs-menu-weight);
  opacity: var(--rw-dim);
}
@media (max-width: 760px) { #related-work { --rw-columns: 2; --rw-gap: 1rem; --rw-title-size: 1.3rem; } }

/* ==========================================================================
   9. BROWSE BY COLOUR (Itten's wheel) — on the page with <div id="colour-browse"></div>
   The script marks <html> with .cb-page while that page is open.
   ========================================================================== */
:root {
  --cb-page-bg: #000;                      /* page background (only this page) */
  --cb-page-text: rgba(255, 255, 255, .85);
  --cb-top: 8rem;                          /* space above the field */
  --cb-chip: .8rem;                        /* size of each square in the full field */
  --cb-field-display: grid;                /* set to none to hide the field of all colours */
  --cb-wheel: 26rem;                       /* size of Itten's colour wheel */
  --cb-wheel-numbers: rgba(0, 0, 0, .55);  /* image counts on the wheel */
  --cb-quote-size: 2rem;
  --cb-chip-gap: 2px;
  --cb-fade: .18;                          /* squares not among the chosen colour's images */
  --cb-columns: 4;                         /* images under the chosen colour */
  --cb-gap: 1rem;
  --cb-peek-width: 18rem;                  /* hover preview */
}
html.cb-page, html.cb-page body { background: var(--cb-page-bg) !important; }
#colour-browse {
  padding-top: var(--cb-top);
  font-family: var(--bs-font);
  font-size: var(--bs-text-size);
  font-weight: var(--bs-text-weight);
  line-height: var(--bs-line);
  color: var(--cb-page-text);
}
/* Wheel and text */
#colour-browse .cb-top { display: flex; flex-wrap: wrap; align-items: center; gap: 3rem 5rem; }
#colour-browse .cb-wheel-wrap { flex: 0 0 auto; width: min(var(--cb-wheel), 100%); }
#colour-browse .cb-wheel { display: block; width: 100%; height: auto; overflow: visible; }
#colour-browse .cb-seg { cursor: pointer; outline: none; }
#colour-browse .cb-seg path, #colour-browse .cb-seg.cb-inner { stroke: var(--cb-page-bg); stroke-width: 1.2; transition: opacity .25s, transform .2s; transform-box: fill-box; transform-origin: center; }
#colour-browse .cb-seg text { font-family: var(--bs-font); font-size: 6px; fill: var(--cb-wheel-numbers); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
#colour-browse .cb-seg:hover path, #colour-browse .cb-seg:focus-visible path, #colour-browse .cb-seg.cb-inner:hover { transform: scale(1.04); }
#colour-browse .cb-seg.cb-empty { cursor: default; }
#colour-browse .cb-seg.cb-empty path { opacity: .35; }
#colour-browse.cb-has-group .cb-seg:not(.cb-on):not(.cb-comp) path,
#colour-browse.cb-has-group .cb-seg.cb-inner:not(.cb-on):not(.cb-comp) { opacity: .25; }
#colour-browse .cb-seg.cb-on path { transform: scale(1.06); }
#colour-browse .cb-text { flex: 1 1 22rem; max-width: 38rem; }
#colour-browse .cb-quote { margin: 0 0 1.6em !important; padding: 0 !important; border: 0; }
#colour-browse .cb-quote p { margin: 0; font-size: var(--cb-quote-size); line-height: 1.15; color: var(--cb-page-text); }
#colour-browse .cb-quote cite { display: block; margin-top: .6em; font-style: normal; font-size: var(--bs-small-size); font-weight: var(--bs-menu-weight); color: var(--bs-menu-white); }
#colour-browse .cb-about { margin: 0 0 1.4em; font-weight: var(--bs-menu-weight); color: var(--bs-menu-white); }
#colour-browse .cb-neutrals { display: flex; flex-wrap: wrap; gap: .6em 1.6em; }
#colour-browse .cb-group { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .5em; }
#colour-browse .cb-group .cb-swatch { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
#colour-browse .cb-group:hover, #colour-browse .cb-group.cb-on { text-decoration: underline; text-underline-offset: .18em; }
#colour-browse .cb-group:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
#colour-browse .cb-link { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
#colour-browse .cb-link:hover { color: #fff; }

/* Colour values for one colour */
#colour-browse .cb-specs { display: grid; grid-template-columns: auto 1fr; gap: .15em 1.2em; margin: 0; }
#colour-browse .cb-specs dt { font-weight: var(--bs-menu-weight); color: var(--bs-menu-white); }
#colour-browse .cb-specs dd { margin: 0; font-variant-numeric: tabular-nums; }
#colour-browse .cb-specs small { font-size: var(--bs-small-size); font-weight: var(--bs-menu-weight); color: var(--bs-menu-white); }
#colour-browse .cb-specs, #colour-browse .cb-specs * { font-family: var(--bs-font); letter-spacing: normal; word-spacing: normal; }
#colour-browse .cb-head .cb-swatch-l { width: 6.2rem; height: 6.2rem; flex: 0 0 auto; align-self: flex-start; }
#colour-browse .cb-head .cb-swatch-s { width: .9em; height: .9em; vertical-align: -.08em; }
#colour-browse .cb-field-intro { margin: 3.5em 0 1em; font-weight: var(--bs-menu-weight); color: var(--bs-menu-white); }
#colour-browse .cb-field-intro, #colour-browse .cb-field { display: var(--cb-field-display); }
#colour-browse .cb-head .cb-n { font-weight: var(--bs-menu-weight); color: var(--bs-menu-white); }
#colour-browse .cb-field {
  grid-template-columns: repeat(auto-fill, minmax(var(--cb-chip), 1fr));
  gap: var(--cb-chip-gap);
}
#colour-browse .cb-chip {
  all: unset;
  display: block;
  aspect-ratio: 1;
  cursor: pointer;
  transition: opacity .3s, transform .15s;
}
#colour-browse .cb-chip:hover { transform: scale(1.6); position: relative; z-index: 2; }
#colour-browse .cb-chip:focus-visible { outline: 1px solid #fff; outline-offset: 1px; }
#colour-browse.cb-has-sel .cb-chip:not(.cb-lit) { opacity: var(--cb-fade); }

#colour-browse .cb-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1.4em; margin: 3em 0 1.2em; scroll-margin-top: 12rem; }
#colour-browse .cb-head:empty { display: none; }
#colour-browse .cb-swatch { display: inline-block; width: 1.4em; height: 1.4em; }

#cb-results { column-count: var(--cb-columns); column-gap: var(--cb-gap); }
@media (max-width: 1100px) { #cb-results { --cb-columns: 3; } }
@media (max-width: 760px)  { #cb-results { --cb-columns: 2; } #colour-browse { --cb-chip: .7rem; --cb-quote-size: 1.5rem; } #colour-browse .cb-top { gap: 2rem; } }
#cb-results .rs-item { break-inside: avoid; margin: 0 0 var(--cb-gap); }
#cb-results .rs-item img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: var(--cb-ratio, auto);
  cursor: zoom-in;
  opacity: 1 !important;
  transform: none !important;
}
#cb-results .rs-title {
  display: block;
  width: fit-content;
  padding-top: var(--rs-title-gap);
  font-size: var(--rs-title-size);
  font-weight: var(--bs-menu-weight);
  line-height: 1.2;
  color: var(--cb-page-text);
  text-decoration: none;
  opacity: 0;
  transition: opacity .2s;
}
#cb-results .rs-item:hover .rs-title { opacity: 1; }
#cb-results .rs-title:hover { text-decoration: underline; text-underline-offset: .15em; }
@media (hover: none) { #cb-results .rs-title { opacity: 1; } }

#colour-browse .cb-more-wrap { padding: 1em 0 6rem; }
#colour-browse .cb-more { all: unset; cursor: pointer; color: var(--bs-menu-white); text-decoration: underline; text-underline-offset: .18em; }
#colour-browse .cb-more:hover { color: var(--cb-page-text); }

/* Image that follows the cursor over the colour squares */
#cb-peek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9000;
  width: var(--cb-peek-width);
  margin: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s;
  font-family: var(--bs-font);
  font-size: var(--rs-title-size);
  font-weight: var(--bs-menu-weight);
  color: #fff;
}
#cb-peek.cb-show { opacity: 1; }
#cb-peek img { display: block; width: 100%; height: auto; }
#cb-peek figcaption { padding-top: .3em; text-shadow: 0 0 4px rgba(0, 0, 0, .8); }

/* ==========================================================================
   10. YEAR SCRUBBER — on the page with <div id="year-scrub"></div>
   The script marks <html> with .ys-page while that page is open.
   ========================================================================== */
:root {
  --ys-page-bg: #000;                      /* page background (only this page) */
  --ys-page-text: rgba(255, 255, 255, .85);
  --ys-top: 7rem;                          /* space above the image */
  --ys-stage-height: 54vh;                 /* height of the image area */
  --ys-tint: 0;                            /* the image's main colour behind it (0 = off, black; .3 = soft tint) */
  --ys-track-height: 2.6rem;               /* height of the colour line */
  --ys-head-color: #fff;                   /* the position marker */
}
html.ys-page, html.ys-page body { background: var(--ys-page-bg) !important; }
#year-scrub {
  padding-top: var(--ys-top);
  font-family: var(--bs-font);
  font-size: var(--bs-text-size);
  font-weight: var(--bs-text-weight);
  line-height: var(--bs-line);
  color: var(--ys-page-text);
  user-select: none;
  -webkit-user-select: none;
}
#year-scrub .ys-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: var(--ys-stage-height);
}
#year-scrub .ys-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ys-bg, transparent);
  opacity: var(--ys-tint);
  transition: background-color .4s;
  pointer-events: none;
}
#year-scrub .ys-link { display: contents; }
#year-scrub .ys-img {
  position: relative;
  display: block;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  opacity: 1 !important;
  transform: none !important;
}
#year-scrub .ys-caption { display: flex; gap: .8em; align-items: baseline; margin: .8em 0 1.4em; min-height: 1.3em; }
#year-scrub .ys-title { color: inherit; text-decoration: none; font-weight: var(--bs-title-weight); }
#year-scrub .ys-title:hover { text-decoration: underline; text-underline-offset: .15em; }
#year-scrub .ys-year, #year-scrub .ys-pos { font-weight: var(--bs-menu-weight); color: var(--bs-menu-white); }
#year-scrub .ys-pos { margin-left: auto; font-variant-numeric: tabular-nums; }

#year-scrub .ys-track {
  position: relative;
  height: var(--ys-track-height);
  cursor: ew-resize;
  touch-action: none;
  outline: none;
}
#year-scrub .ys-track:focus-visible { outline: 1px solid var(--ys-page-text); outline-offset: 3px; }
#year-scrub .ys-code { display: block; width: 100%; height: 100%; }
#year-scrub .ys-head {
  position: absolute;
  top: -.5rem;
  bottom: -.5rem;
  width: 1px;
  margin-left: -.5px;
  background: var(--ys-head-color);
  pointer-events: none;
}
#year-scrub .ys-years { position: relative; height: 2.4em; margin-top: .5em; }
#year-scrub .ys-years button {
  all: unset;
  position: absolute;
  top: 0;
  cursor: pointer;
  font-weight: var(--bs-menu-weight);
  color: var(--bs-menu-white);
  white-space: nowrap;
}
#year-scrub .ys-years button:hover, #year-scrub .ys-years button.ys-on { color: var(--ys-page-text); }
#year-scrub .ys-hint { margin-top: 1em; font-weight: var(--bs-menu-weight); color: var(--bs-menu-white); transition: opacity .6s; }
#year-scrub.ys-used .ys-hint { opacity: 0; }
/* Timeline sound: Listen button and the note under the line */
#year-scrub .ys-sound { display: flex; flex-wrap: wrap; gap: .5em 1.4em; align-items: baseline; margin-top: 1.2em; }
#year-scrub .ys-play { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; flex: none; }
#year-scrub .ys-note { margin: .3em 0 0; flex-basis: 100%; max-width: 46em; font-size: var(--bs-small-size); opacity: .6; }
#year-scrub .ys-note a { color: inherit; }
@media (max-width: 760px) {
  #year-scrub { --ys-stage-height: 48vh; }
  #year-scrub .ys-years button { font-size: .75em; }
}

/* ==========================================================================
   11. LIGHT TABLE — on the page with <div id="light-table"></div>
   The table fills the window behind the logo and footer.
   ========================================================================== */
:root {
  --lt-bg: #0b0b0b;                        /* the table */
  --lt-shadow: 0 .4rem 1.6rem rgba(0, 0, 0, .55);
  --lt-lift-shadow: 0 1.6rem 3.5rem rgba(0, 0, 0, .7);
  --lt-ui-color: var(--bs-menu-white);
}
html.lt-page, html.lt-page body { overflow: hidden !important; background: var(--lt-bg) !important; }
#lt-stage {
  position: fixed;
  inset: 0;
  z-index: 3;                              /* under Cargo's header and footer (4) */
  overflow: hidden;
  background: var(--lt-bg);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#lt-stage:active { cursor: grabbing; }
#lt-stage .lt-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
#lt-stage .lt-print {
  position: absolute;
  left: 0;
  top: 0;
  background: #222;
  box-shadow: var(--lt-shadow);
  cursor: pointer;
  transition: box-shadow .2s;
}
#lt-stage .lt-print.lt-lifted { box-shadow: var(--lt-lift-shadow); cursor: grabbing; }
#lt-stage .lt-print img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  pointer-events: none;
  opacity: 1 !important;
  transform: none !important;
}
#lt-stage .lt-ui {
  position: absolute;
  left: 5rem;
  bottom: 2.4rem;
  max-width: 50vw;
  font-family: var(--bs-font);
  font-size: var(--bs-small-size);
  font-weight: var(--bs-menu-weight);
  line-height: 1.4;
  color: var(--lt-ui-color);
  text-shadow: 0 0 6px #000, 0 0 2px #000;
  z-index: 1;
}
#lt-stage .lt-shuffle { all: unset; cursor: pointer; margin-left: .8em; text-decoration: underline; text-underline-offset: .18em; }
#lt-stage .lt-shuffle:hover { color: #fff; }
#lt-stage .lt-cap {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  font-family: var(--bs-font);
  font-size: var(--rs-title-size);
  font-weight: var(--bs-menu-weight);
  color: #fff;
  text-shadow: 0 0 4px rgba(0, 0, 0, .9);
  opacity: 0;
  transition: opacity .15s;
  white-space: nowrap;
}
#lt-stage .lt-cap.lt-show { opacity: 1; }
@media (max-width: 760px) {
  #lt-stage .lt-ui { left: 1.5rem; bottom: auto; top: 6rem; max-width: 80vw; }
  #lt-stage .lt-hint { display: none; }
}

/* ==========================================================================
   12. OCEAN DESCENT in the footer (replaces Cargo's "0 pixels")
   ========================================================================== */
.sm-hide { display: none !important; }
#scroll-distance { font-variant-numeric: normal; }   /* Favorit's tabular figures also widen spaces and the point, which looked odd */
#scroll-distance .sm-note { color: inherit; animation: sm-in .5s ease both; }
#scroll-distance a.sm-note { text-decoration: underline; text-underline-offset: .15em; pointer-events: auto; }
@keyframes sm-in { from { opacity: 0; letter-spacing: .08em; } to { opacity: 1; letter-spacing: normal; } }

/* ==========================================================================
   13. SMOOTH TRANSITION from a thumbnail into the project
   (Chrome, Edge and Safari; other browsers change page as before)
   ========================================================================== */
:root {
  --vt-duration: .55s;                     /* the image moving into place */
  --vt-fade: .3s;                          /* the rest of the page cross-fading */
}
::view-transition-group(bs-hero) {
  animation-duration: var(--vt-duration);
  animation-timing-function: cubic-bezier(.2, .7, .2, 1);
}
::view-transition-old(bs-hero), ::view-transition-new(bs-hero) { height: 100%; object-fit: cover; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--vt-fade); }

/* ==========================================================================
   14. CURSOR IMAGE TRAIL — only on pages with <div id="cursor-trail"></div>
   ========================================================================== */
:root {
  --ct-width: 14rem;                       /* width of each image in the trail */
}
.ct-img {
  position: fixed;
  z-index: 3;                              /* under Cargo's header and footer */
  width: var(--ct-width) !important;
  height: calc(var(--ct-width) / var(--ct-ratio, 1.5)) !important;
  object-fit: cover;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ct-fade var(--ct-life, 900ms) ease-in forwards;
}
@keyframes ct-fade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
}
#cursor-trail { display: none; }
/* ==========================================================================
   15. COLOURS AS LANGUAGE — on the page with <div id="colour-voice"></div>
   The script marks <html> with .cv-page while that page is open.
   ========================================================================== */
:root {
  --cv-page-bg: #000;
  --cv-text: rgba(255, 255, 255, .92);
  --cv-quiet: rgba(255, 255, 255, .45);
  --cv-name-size: clamp(2.4rem, 11vw, 9rem);   /* size of the colour name */
  --cv-fade: .9s;                              /* fade-in of each name */
}
html.cv-page, html.cv-page body { background: var(--cv-page-bg) !important; }
#colour-voice {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8rem 0 5rem;
  font-family: var(--bs-font);
  color: var(--cv-text);
}
#colour-voice .cv-head { display: flex; flex-wrap: wrap; gap: .4em 1.2em; font-size: var(--bs-text-size); }
#colour-voice .cv-related { margin: 2.4rem 0 0; font-size: var(--bs-small-size); color: var(--cv-quiet); }
#colour-voice .cv-related a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
#colour-voice .cv-related a:hover { color: #fff; }
#colour-voice .cv-sub { font-weight: var(--bs-menu-weight); color: var(--cv-quiet); }
#colour-voice .cv-name {
  margin: 0;
  font-size: var(--cv-name-size);
  font-weight: var(--bs-menu-weight);
  line-height: 1.02;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  opacity: 0;
}
#colour-voice .cv-name.cv-in { animation: cv-in var(--cv-fade) ease both; }
@keyframes cv-in { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }
#colour-voice .cv-listen {
  all: unset;
  cursor: pointer;
  align-self: flex-start;
  font-size: var(--bs-text-size);
  color: var(--cv-quiet);
  text-decoration: underline;
  text-underline-offset: .18em;
}
#colour-voice .cv-listen:hover, #colour-voice .cv-listen[aria-pressed="true"] { color: var(--cv-text); }
#colour-voice .cv-listen:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
/* Link from the Colour page */
#colour-browse .cb-voice { display: table; margin-top: 1.4em; color: var(--cb-page-text); text-decoration: underline; text-underline-offset: .18em; }
#colour-voice .cv-name .cv-roman { display: block; margin-top: .25em; font-size: .28em; letter-spacing: .02em; color: var(--cv-quiet); }

/* ==========================================================================
   16. COLOUR THEORIES — on the page with <div id="colour-theories"></div>
   The script marks <html> with .th-page while that page is open.
   ========================================================================== */
:root {
  --th-page-bg: #000;
  --th-text: rgba(255, 255, 255, .92);
  --th-quiet: rgba(255, 255, 255, .5);
  --th-quote-size: 2rem;
  --th-max: 62rem;                 /* width of text columns */
}
html.th-page, html.th-page body { background: var(--th-page-bg) !important; }
#colour-theories { padding: 7rem 0 6rem; font-family: var(--bs-font); color: var(--th-text); font-size: var(--bs-text-size); }
#colour-theories .th-title { margin: 0 0 .5em; font-size: var(--th-quote-size); font-weight: var(--bs-menu-weight); line-height: 1.1; }
#colour-theories .th-nav { display: flex; flex-wrap: wrap; gap: .9em 1.6em; margin: 0 0 3rem; max-width: 80rem; }
#colour-theories .th-nav a { display: flex; flex-direction: column; color: var(--th-quiet); text-decoration: none; }
#colour-theories .th-when { font-size: .72em; opacity: .75; margin-top: .1em; }
#colour-theories .th-nav a:hover, #colour-theories .th-nav a.th-on { color: var(--th-text); }
#colour-theories .th-nav a:hover .th-name, #colour-theories .th-nav a.th-on .th-name { text-decoration: underline; text-underline-offset: .18em; }
#colour-theories .th-next { margin: 4rem 0 0; color: var(--th-quiet); }
#colour-theories .th-next a { color: var(--th-text); }
@media (max-width: 760px) { #colour-theories .th-nav { gap: .7em 1.1em; font-size: .92em; } }
#colour-theories .th-body { min-height: 60vh; }
#colour-theories .th-intro { max-width: var(--th-max); margin: 0 0 2rem; }
#colour-theories .th-intro p { margin: 0 0 1em; line-height: 1.4; }
#colour-theories .th-quote { margin: 0 0 1.6em !important; padding: 0 !important; border: 0; }
#colour-theories .th-quote p { margin: 0; font-size: var(--th-quote-size); line-height: 1.15; color: var(--th-text); }
#colour-theories cite { display: block; margin-top: .6em; font-style: normal; font-size: var(--bs-small-size); color: var(--th-quiet); }
#colour-theories .th-small { font-size: var(--bs-small-size); color: var(--th-quiet); margin: .6em 0; line-height: 1.4; }
#colour-theories .th-small a { color: var(--th-text); }
#colour-theories .th-n { color: var(--th-quiet); font-size: var(--bs-small-size); }
#colour-theories .th-actions { margin: 1.2rem 0; display: flex; flex-wrap: wrap; gap: .6em; }
#colour-theories .th-btn { all: unset; cursor: pointer; padding: .35em .9em; border: 1px solid rgba(255, 255, 255, .5); border-radius: 2em; font-size: var(--bs-small-size); color: var(--th-text); }
#colour-theories .th-btn:hover { background: #fff; color: #000; }
#colour-theories .th-btn:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }
#colour-theories .th-swatch { display: inline-block; width: .9em; height: .9em; vertical-align: -.1em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
#colour-theories .th-strip { display: flex; flex-wrap: wrap; gap: .6rem; margin: .6rem 0 2rem; }
#colour-theories .th-strip img { display: block; height: 9rem !important; width: auto !important; max-width: none; opacity: 1 !important; }
#colour-theories .th-strip a { display: block; }

/* Albers */
#colour-theories .al-stage { position: relative; display: flex; height: min(56vh, 32rem); max-width: 60rem; }
#colour-theories .al-half { flex: 1; display: flex; align-items: center; justify-content: center; transition: flex .6s; }
#colour-theories .al-a { background: var(--al-a); }
#colour-theories .al-b { background: var(--al-b); }
#colour-theories .al-sq { width: 22%; aspect-ratio: 1; background: var(--al-m); transition: transform .8s ease; }
#colour-theories .al-bridge { position: absolute; left: 25%; right: 25%; top: 50%; height: 3.6%; background: var(--al-m); transform: translateY(-50%) scaleX(0); transition: transform .8s ease; }
#colour-theories .al-proof .al-bridge { transform: translateY(-50%) scaleX(1); }

/* Kandinsky */
#colour-theories .kd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.4rem; margin: 0 0 1rem; }
#colour-theories .kd-card { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: .6em; }
#colour-theories .kd-shape { display: block; height: 7rem; }
#colour-theories .kd-shape svg { height: 100%; width: auto; display: block; }
#colour-theories .kd-field { display: block; height: 100%; width: 7rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
#colour-theories .kd-name { font-weight: var(--bs-menu-weight); }
#colour-theories .kd-q { font-size: var(--bs-small-size); color: var(--th-quiet); line-height: 1.35; }
#colour-theories .kd-card:hover .kd-q, #colour-theories .kd-card.th-on .kd-q { color: var(--th-text); }
#colour-theories .kd-card.th-on .kd-name { text-decoration: underline; text-underline-offset: .18em; }
#colour-theories .kd-card:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }

/* Goethe */
#colour-theories .gt-slide { max-width: var(--th-max); margin: 0 0 1.2rem; }
#colour-theories .gt-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 2.2rem; margin: 0; background: transparent; cursor: pointer; }
#colour-theories .gt-range::-webkit-slider-runnable-track { height: 8px; background: var(--gt-track); border-radius: 4px; }
#colour-theories .gt-range::-moz-range-track { height: 8px; background: var(--gt-track); border-radius: 4px; }
#colour-theories .gt-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--gt-thumb, #fff); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
#colour-theories .gt-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--gt-thumb, #fff); border: 2px solid #fff; }
#colour-theories .gt-range:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
#colour-theories .gt-ends { display: flex; justify-content: space-between; gap: 1em; font-size: var(--bs-small-size); color: var(--th-quiet); }
#colour-theories .gt-ends span:last-child { text-align: right; }
#colour-theories .gt-list { display: flex; flex-direction: column; max-width: var(--th-max); margin: 0 0 2rem; }
#colour-theories .gt-item { all: unset; cursor: pointer; display: grid; grid-template-columns: 3rem 12rem 1fr; gap: 1rem; align-items: center; padding: .7em 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
#colour-theories .gt-sw { width: 3rem; height: 3rem; display: block; }
#colour-theories .gt-q { color: var(--th-quiet); line-height: 1.35; }
#colour-theories .gt-item:hover .gt-q, #colour-theories .gt-item.th-on .gt-q { color: var(--th-text); }
#colour-theories .gt-item.th-on .gt-name { text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 760px) { #colour-theories .gt-item { grid-template-columns: 2.4rem 1fr; } #colour-theories .gt-sw { width: 2.4rem; height: 2.4rem; grid-row: span 2; } }

/* Newton */
#colour-theories .nw-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }
#colour-theories .nw-svg { width: min(88vw, 34rem); }
#colour-theories .nw-circle { display: block; width: 100%; height: auto; overflow: visible; }
#colour-theories .nw-hit { fill: rgba(255, 255, 255, .035); stroke: rgba(255, 255, 255, .12); stroke-width: .4; cursor: pointer; }
#colour-theories .nw-hit:hover, #colour-theories .nw-hit.th-on { fill: rgba(255, 255, 255, .09); }
#colour-theories .nw-arc { cursor: pointer; stroke: #000; stroke-width: .6; }
#colour-theories .nw-arc:hover, #colour-theories .nw-arc.th-on { filter: brightness(1.3); }
#colour-theories .nw-dot { pointer-events: none; transition: opacity .3s; }
#colour-theories .nw-dot.nw-dim { opacity: .15; }
#colour-theories .nw-centre { pointer-events: none; }
#colour-theories .nw-note { fill: rgba(255, 255, 255, .7); font-size: 6px; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
#colour-theories .nw-side { flex: 1; min-width: 14rem; }
#colour-theories .nw-sum { line-height: 1.9; }

/* Wittgenstein */
#colour-theories .wt-glass img { display: block; width: 100% !important; height: auto !important; opacity: 1 !important; }
#colour-theories .wt-list, #colour-theories .vc-list { list-style: none; padding: 0; margin: 2rem 0 0; max-width: var(--th-max); }
#colour-theories .wt-list li, #colour-theories .vc-list li { margin: 0 0 1.8em; }
#colour-theories .wt-list p, #colour-theories .vc-list p { margin: 0; font-size: 1.4rem; line-height: 1.25; }

/* Munsell */
#colour-theories .mu-wrap { position: relative; }
#colour-theories .mu-canvas { display: block; width: 100%; height: min(70vh, 44rem); cursor: grab; touch-action: pan-y; }
#colour-theories .mu-canvas:active { cursor: grabbing; }
#colour-theories .mu-peek { position: absolute; left: 0; top: 0; margin: 0; width: 14rem; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 2; }
#colour-theories .mu-peek.th-show { opacity: 1; }
#colour-theories .mu-peek img { display: block; width: 100% !important; height: auto !important; }
#colour-theories .mu-peek figcaption { font-size: var(--bs-small-size); margin-top: .3em; }

@media (max-width: 760px) {
  #colour-theories { --th-quote-size: 1.5rem; padding-top: 5rem; }
  #colour-theories .th-strip img { height: 6rem !important; }
  #colour-theories .kd-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  #colour-theories .kd-shape { height: 4.5rem; }
  #colour-theories .kd-field { width: 4.5rem; }
  #colour-theories .wt-list p, #colour-theories .vc-list p { font-size: 1.15rem; }
}
#colour-theories cite em, #colour-browse cite em { font-style: italic !important; }
#colour-theories .wt-from { align-self: center; margin: 0 0 0 .4em; color: var(--th-quiet); }

/* Holi */
#colour-theories .hl-pick.th-on { background: #fff; color: #000; }
#colour-theories .hl-field { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; cursor: crosshair; user-select: none; }
#colour-theories .hl-field img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) brightness(.75); transition: filter 1.4s ease; opacity: 1 !important; }
#colour-theories .hl-field img.th-on { filter: none; }
#colour-theories .hl-canvas { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; pointer-events: none; mix-blend-mode: screen; grid-area: 1 / 1; }
@media (max-width: 760px) { #colour-theories .hl-field { grid-template-columns: repeat(4, 1fr); } }

/* Five colours */
#colour-theories .fv-compass { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: ". n ." "w c e" ". s ."; gap: 6px; max-width: 64rem; }
#colour-theories .fv-cell { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: .3em; padding: .9rem; min-height: 14rem; overflow: hidden; background: var(--fv); color: #fff; }
#colour-theories .fv-n { grid-area: n; } #colour-theories .fv-w { grid-area: w; } #colour-theories .fv-c { grid-area: c; } #colour-theories .fv-e { grid-area: e; } #colour-theories .fv-s { grid-area: s; }
#colour-theories .fv-c, #colour-theories .fv-e { color: #000; }
#colour-theories .fv-s { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
#colour-theories .fv-han { font-size: 3rem; line-height: 1; }
#colour-theories .fv-name i { font-style: italic; }
#colour-theories .fv-meta { font-size: var(--bs-small-size); opacity: .8; }
#colour-theories .fv-thumbs { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; }
#colour-theories .fv-thumbs img { width: 2.6rem !important; height: 2.6rem !important; object-fit: cover; opacity: 1 !important; }
#colour-theories .fv-cell.th-on, #colour-theories .fv-cell:hover { outline: 2px solid #fff; outline-offset: -2px; }
@media (max-width: 760px) { #colour-theories .fv-cell { min-height: 9rem; padding: .5rem; } #colour-theories .fv-han { font-size: 2rem; } #colour-theories .fv-meta { display: none; } #colour-theories .fv-thumbs img { width: 1.6rem !important; height: 1.6rem !important; } }

/* Ibn al-Haytham */
#colour-theories .hy-canvas { display: block; width: 100%; height: min(60vh, 34rem); }

/* Islamic geometry */
#colour-theories .gr-wrap { max-width: 64rem; }
#colour-theories .gr-svg { display: block; width: 100%; height: min(70vh, 40rem); }
#colour-theories .gr-label { display: inline-flex; align-items: center; gap: .6em; }
#colour-theories .gr-label input { width: 10rem; accent-color: #fff; }

/* Kasane */
#colour-theories .ks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1.4rem; margin: 0 0 1rem; }
#colour-theories .ks-card { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: .5em; }
#colour-theories .ks-robe { position: relative; display: block; height: 7rem; }
#colour-theories .ks-robe span { position: absolute; display: block; }
#colour-theories .ks-card.th-on .kd-name { text-decoration: underline; text-underline-offset: .18em; }
#colour-theories .ks-card:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
#colour-theories .ks-layers { display: flex; margin: .6rem 0 2rem; padding: .8rem 4rem 10px 0; overflow: hidden; }
#colour-theories .ks-layers a { position: relative; display: block; flex: 0 0 auto; margin-right: -3.2rem; box-shadow: -6px 0 14px rgba(0, 0, 0, .5); transition: transform .3s; }
#colour-theories .ks-layers a:hover { transform: translateY(-.6rem); }
#colour-theories .ks-layers img { display: block; height: 13rem !important; width: auto !important; max-width: none; opacity: 1 !important; }
#colour-theories .ks-layers span { position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; }
@media (max-width: 760px) { #colour-theories .ks-layers img { height: 8rem !important; } #colour-theories .ks-layers a { margin-right: -2.4rem; } #colour-theories .ks-grid { grid-template-columns: repeat(2, 1fr); } }

/* Tanizaki */
#colour-theories .tz-room { position: relative; overflow: hidden; max-width: 72rem; --tz-x: 40%; --tz-y: 40%; --tz-r: 150px; cursor: none; touch-action: pan-y; }
#colour-theories .tz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; filter: sepia(.25) saturate(.9); }
#colour-theories .tz-grid img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1; object-fit: cover; opacity: 1 !important; }
#colour-theories .tz-dark { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle var(--tz-r) at var(--tz-x) var(--tz-y), rgba(25, 12, 0, 0) 0%, rgba(10, 5, 0, .55) 45%, rgba(0, 0, 0, .97) 100%); }
@media (max-width: 760px) { #colour-theories .tz-grid { grid-template-columns: repeat(3, 1fr); } }

/* Wittgenstein panes */
#colour-theories .wt-glass { position: relative; max-width: 60rem; overflow: hidden; isolation: isolate; user-select: none; }
#colour-theories .wt-pane { position: absolute; width: 18%; height: 58%; cursor: grab; touch-action: none; }
#colour-theories .wt-pane.wt-drag { cursor: grabbing; }
#colour-theories .wt-tint { position: absolute; inset: 0; }
#colour-theories .wt-label { position: absolute; left: 0; top: 100%; margin-top: 4px; white-space: nowrap; font-size: var(--bs-small-size); background: #000; color: #fff; padding: .1em .45em; }
#colour-theories .wt-green .wt-tint { background: rgba(20, 175, 60, .62); mix-blend-mode: multiply; }
#colour-theories .wt-red .wt-tint { background: rgba(225, 30, 40, .62); mix-blend-mode: multiply; }
#colour-theories .wt-yellow .wt-tint { background: rgba(255, 215, 0, .7); mix-blend-mode: multiply; }
#colour-theories .wt-white .wt-tint { background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
#colour-theories .wt-black .wt-tint { background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
#colour-theories .wt-remark { max-width: var(--th-max); min-height: 5.5rem; margin: 1.2rem 0 0; }
#colour-theories .wt-remark p { margin: 0; font-size: var(--th-quote-size); line-height: 1.15; }
#colour-theories .wt-remark cite { margin-top: .5em; }
@media (max-width: 760px) { #colour-theories .wt-pane { width: 22%; height: 50%; } #colour-theories .wt-remark p { font-size: 1.2rem; } }

/* Islamic geometry controls */
#colour-theories .gr-controls { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; margin: 1rem 0 .4rem; max-width: 64rem; }
#colour-theories .gr-label input { width: 7.5rem; accent-color: #fff; }
#colour-theories .gr-col { display: inline-flex; align-items: center; gap: .5em; }
#colour-theories .gr-col input { -webkit-appearance: none; appearance: none; width: 1.8rem; height: 1.8rem; padding: 0; border: 1px solid rgba(255, 255, 255, .4); background: none; cursor: pointer; }
#colour-theories .gr-col input::-webkit-color-swatch-wrapper { padding: 0; }
#colour-theories .gr-col input::-webkit-color-swatch { border: 0; }
#colour-theories .gr-rumi { margin-top: 2.4rem !important; max-width: var(--th-max); }
#colour-theories .gr-strip { display: flow-root; padding-bottom: .5rem; }
#colour-theories .gr-styles { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0 .2rem; max-width: 64rem; }
#colour-theories .gr-styles + .gr-styles { margin-top: .5rem; }
#colour-theories .gr-group { width: 4.5em; opacity: var(--bs-dim); }
#colour-theories .gr-style { opacity: .55; }
#colour-theories .gr-style.gr-on { opacity: 1; }
#colour-theories .gr-note { max-width: 40rem; margin: 0 0 1rem; opacity: var(--bs-dim); min-height: 2.8em; }

/* ==========================================================================
   17. PHOTO ARCHIVE — "Photo archive:" line in the footer + archive prints on the light table
   The footer line takes the footer's own size and colour, like Studio ambience.
   ========================================================================== */
:root {
  --pa-max-width: 24em;                    /* long set names are cut with … (full name on hover) */
  --pa-print-border: .45rem;               /* white border round an archive print on the light table */
  --pa-print-foot: 1.5rem;                 /* wider bottom edge, where "archive" is written */
  --pa-print-paper: #f3f1ec;
  --pa-print-label: "archive";             /* the word on the print */
  --pa-print-label-color: #8a8780;
}
#photo-archive-line { display: inline; }
#photo-archive-line .pa-link {
  display: inline-block;
  max-width: var(--pa-max-width);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: top;                     /* lines up with "Archive:" */
}
#lt-stage .lt-print.lt-archive {
  box-sizing: content-box;                 /* the border sits outside the photo, so the photo keeps its shape */
  padding: var(--pa-print-border) var(--pa-print-border) var(--pa-print-foot);
  background: var(--pa-print-paper);
}
#lt-stage .lt-print.lt-archive::after {
  content: var(--pa-print-label);
  position: absolute;
  left: var(--pa-print-border);
  bottom: calc((var(--pa-print-foot) - 1em) / 2);
  font-family: var(--bs-font);
  font-size: .75rem;
  font-weight: var(--bs-small-weight);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--pa-print-label-color);
  pointer-events: none;
}

/* ==========================================================================
   18. PHOTO ARCHIVE PAGE — on the page with <div id="photo-archive"></div>
   Black like Studio ambience: the script marks <html> with .pa-page.
   ========================================================================== */
:root {
  --pa-page-bg: var(--sa-page-bg);
  --pa-page-text: var(--sa-page-text);
  --pa-top: var(--sa-top);                 /* space above the title */
  --pa-thumb-height: 9rem;                 /* height of the photos in each set */
  --pa-thumb-gap: .5rem;
  --pa-gap: 3em;                           /* space between sets */
  --pa-text-width: 42em;                   /* the descriptions */
}
html.pa-page, html.pa-page body { background: var(--pa-page-bg) !important; }
html.pa-page .page_container:not(.overlay) { color: var(--pa-page-text); }
#photo-archive {
  padding-top: var(--pa-top);
  color: var(--pa-page-text);
  font-family: var(--bs-font);
  font-size: var(--bs-text-size);
  font-weight: var(--bs-text-weight);
  line-height: var(--bs-line);
}
#photo-archive .pa-page-title { margin: 0 0 var(--sa-title-gap); color: var(--pa-page-text); }
#photo-archive .pa-intro { margin: 0 0 var(--pa-gap); opacity: var(--bs-dim); }
#photo-archive .pa-set { margin: 0 0 var(--pa-gap); }
#photo-archive .pa-head {
  margin: 0;
  font-size: var(--bs-text-size);
  font-weight: var(--bs-title-weight);
  line-height: var(--bs-line);
  color: inherit;                          /* Cargo gives h2 its own colour */
}
#photo-archive .pa-meta { margin: 0 0 .6em; opacity: var(--bs-dim); }
#photo-archive .pa-caption {
  max-width: var(--pa-text-width);
  margin: 0 0 1em;
  font-size: var(--bs-small-size);
  font-weight: var(--bs-small-weight);
  opacity: var(--bs-dim);
}
#photo-archive .pa-grid { display: flex; flex-wrap: wrap; gap: var(--pa-thumb-gap); }
#photo-archive .pa-grid .rs-item { margin: 0; }
#photo-archive .pa-grid img {
  display: block;
  height: var(--pa-thumb-height) !important;
  width: auto !important;
  max-width: none;
  cursor: zoom-in;
  opacity: 1 !important;
}
#photo-archive .pa-head a { color: inherit; text-decoration: none; }
#photo-archive .pa-head a:hover { text-decoration: underline; text-underline-offset: .15em; }
/* Earlier albums: one line each, name then date and number of photos */
#photo-archive .pa-older .pa-head { margin-bottom: .5em; }
#photo-archive .pa-row { margin: 0; }
#photo-archive .pa-row a { color: inherit; text-decoration: none; }
#photo-archive .pa-row a:hover { text-decoration: underline; text-underline-offset: .15em; }
#photo-archive .pa-row-meta { margin-left: .6em; opacity: var(--bs-dim); }
#photo-archive .pa-more a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 760px) {
  #photo-archive { --pa-thumb-height: 6rem; }
}

/* ==========================================================================
   19. EARLIER WORK — older projects from halvorbodin.com and halvorbodin.art
   in the Index, the Timeline and on the light table, quietly marked.
   ========================================================================== */
:root {
  --ew-mark-color: var(--bs-menu-white);   /* the word "earlier" / "art" next to a title */
  --ew-mark-size: .7em;                    /* relative to the title */
  --ew-head-space: 6rem;                   /* space above "Earlier work" under the Index grid */
  --ew-print-label: "earlier";             /* the word under an older print on the light table */
  --ew-print-label-art: "art";
}
.ix-src, #year-scrub .ys-src {
  font-size: var(--ew-mark-size);
  font-weight: var(--bs-small-weight);
  color: var(--ew-mark-color);
  letter-spacing: .02em;
  white-space: nowrap;
}
#year-scrub .ys-src:empty { display: none; }
#year-scrub .ys-src { font-size: 1em; font-weight: var(--bs-menu-weight); }
/* Under Cargo's grid on the Index: a quiet heading, then the older projects in the same grid */
.ix-earlier-head {
  margin: var(--ew-head-space) 0 var(--ix-bar-space);
  font-family: var(--bs-font);
  font-size: var(--ix-bar-size);
  font-weight: var(--ix-bar-weight);
  color: var(--ix-text);
}
.ix-earlier-head span { color: var(--ix-dim); margin-left: .4em; }
#ix-grid .ix-ext-image { position: relative; aspect-ratio: 16 / 9; height: auto !important; overflow: hidden; background: rgba(255, 255, 255, .04); }
#ix-grid .ix-ext-image img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  opacity: 1 !important;
}
#ix-grid .ix-ext .tags { color: var(--ix-dim); }
/* Light table: older prints get a small pencilled word under them */
#lt-stage .lt-print.lt-earlier::after {
  content: var(--ew-print-label);
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: .35rem;
  font-family: var(--bs-font);
  font-size: .75rem;
  font-weight: var(--bs-small-weight);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--bs-menu-white);
  pointer-events: none;
}
#lt-stage .lt-print.lt-art::after { content: var(--ew-print-label-art); }
#ix-grid .ix-ext .title span { overflow-wrap: anywhere; }   /* long single words on a phone */
#ss-overlay .ss-src { font-size: var(--ew-mark-size); font-weight: var(--bs-small-weight); opacity: var(--bs-dim); white-space: nowrap; }   /* "earlier" / "art" in search results */

/* ==========================================================================
   20. TODAY'S SLEEVE — on the Studio ambience page
   Top right, its top level with "Today" (under the list on phones). One ring per track played today,
   no background; small text under it says what it is made of. Hidden until something has played today.
   ========================================================================== */
:root {
  --sl-art-max: 36rem;                     /* largest the sleeve gets, centred on the page */
  --sl-caption-width: 16rem;               /* the small text to the right of it */
}
#sa-sleeve {
  margin: 0 0 var(--sa-gap);
  color: var(--sa-page-text);
  font-family: var(--bs-font);
  font-weight: var(--bs-text-weight);
  line-height: var(--bs-line);
}
#sa-sleeve[hidden] { display: none; }
#sa-sleeve:not(.sl-side) { width: 100%; max-width: none; }
#sa-sleeve .sl-art { max-width: 22rem; }
/* wide screens: sleeve centred on the page, top level with "Today", small text to its right */
#sa-sleeve.sl-side {
  position: absolute;
  margin: 0;
  display: grid;
  grid-template-columns: var(--sl-art) var(--sl-cap);
  grid-template-rows: auto 1fr;
  column-gap: 2rem;
  align-items: start;
}
#sa-sleeve.sl-side .sl-art { max-width: none; grid-row: 1 / 3; }
#sa-sleeve.sl-side .sl-caption { margin-top: 0; }
#sa-sleeve .sl-svg { display: block; width: 100%; height: auto; }
#sa-sleeve .sl-caption,
#sa-sleeve .sl-foot {
  max-width: var(--sl-caption-width);
  margin: .9em 0 0;
  font-size: var(--bs-small-size);
  line-height: 1.4;
  opacity: var(--bs-dim);
}
#sa-sleeve .sl-head { font-weight: var(--sa-head-weight); opacity: 1; color: var(--sa-page-text); }
#sa-sleeve .sl-caption .sl-head::after { content: "."; }
#sa-sleeve .sl-foot { margin-top: .4em; }
#sa-sleeve .sl-dl { color: inherit; }
#sa-sleeve .sl-foot a { color: inherit; margin-right: .8em; white-space: nowrap; }
#sa-sleeve .sl-foot a:hover { opacity: 1; }
#sa-sleeve .sl-foot { opacity: 1; }
#sa-sleeve .sl-foot a { opacity: var(--bs-dim); }

/* while the sleeve is played: the ring sounding stays bright, the others fade back */
.sl-svg [data-i] { transition: opacity .8s; }
.sl-svg.sl-playing [data-i] { opacity: .28; }
.sl-svg.sl-playing [data-i].sl-on { opacity: 1; }

/* Past sleeves: a calendar of small sleeves, a month at a time */
html.ps-page, html.ps-page body { background: var(--sa-page-bg) !important; }
html.ps-page .page_container:not(.overlay) { color: var(--sa-page-text); }
#past-sleeves .ps-page-title { margin: 0 0 var(--sa-title-gap); color: var(--sa-page-text); }
#past-sleeves .ps-intro { margin: 0 0 3em; max-width: 40em; opacity: var(--bs-dim); }
#past-sleeves { padding-top: var(--sa-top); color: var(--sa-page-text); font-family: var(--bs-font); font-weight: var(--bs-text-weight); line-height: var(--bs-line); }
#past-sleeves .ps-month { margin: 0 0 3em; }
#past-sleeves .ps-head { color: var(--sa-page-text); font-size: var(--sa-text-size, 1em); font-weight: var(--sa-head-weight); margin: 0 0 1em; }
#past-sleeves .ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.6em 1.2em; }
#past-sleeves .ps-wd { font-size: var(--bs-small-size); opacity: var(--bs-dim); }
#past-sleeves .ps-cell { display: block; color: inherit; text-decoration: none; font-size: var(--bs-small-size); line-height: 1.35; }
#past-sleeves .ps-art { display: block; aspect-ratio: 1; margin-bottom: .5em; }
#past-sleeves .ps-art svg { display: block; width: 100%; height: auto; }
#past-sleeves a.ps-cell:hover .ps-art { transform: scale(1.04); }
#past-sleeves .ps-art { transition: transform .3s; }
#past-sleeves .ps-meta { opacity: var(--bs-dim); }
#past-sleeves .ps-quiet { opacity: .5; align-self: end; }
#past-sleeves .ps-open { display: grid; grid-template-columns: minmax(0, 34rem) minmax(0, 20rem); gap: 2.5em; align-items: start; margin: 0 0 3em; }
#past-sleeves .ps-open[hidden] { display: none; }
#past-sleeves .ps-big svg { display: block; width: 100%; height: auto; }
#past-sleeves .ps-about { font-size: var(--bs-small-size); line-height: 1.4; }
#past-sleeves .ps-day { margin: 0 0 .8em; font-size: var(--sa-text-size, 1em); }
#past-sleeves .ps-look { opacity: var(--bs-dim); margin: 0 0 1em; }
#past-sleeves .ps-look .sl-head { opacity: 1; font-weight: var(--sa-head-weight); }
#past-sleeves .ps-tracks { list-style: none; margin: 0 0 1em; padding: 0; }
#past-sleeves .ps-time { opacity: var(--bs-dim); font-variant-numeric: tabular-nums; margin-right: .5em; }
#past-sleeves .sl-foot a, #past-sleeves .ps-more a { color: inherit; opacity: var(--bs-dim); margin-right: .8em; }
#past-sleeves .sl-foot a:hover, #past-sleeves .ps-more a:hover { opacity: 1; }
@media (max-width: 760px) {
  #past-sleeves .ps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2em .8em; }
  #past-sleeves .ps-open { grid-template-columns: 1fr; }
}

/* ==========================================================================
   21. FRONT IMAGE — random portfolio image in the Front page's backdrop
   The ripple itself is Cargo's own (set in Cargo). This only hides the backdrop
   for a moment while the new image loads, so the fixed image does not flash first.
   ========================================================================== */
:root {
  --fr-fade: .6s;                          /* fade-in of the new image */
  --fr-grey: 1;                            /* 1 = black and white, 0 = images in colour */
  --fr-contrast: 1.8;                      /* harder contrast on the Front backdrop: 1 = as the image is, 2 = few greys left */
}
.backdrop { transition: opacity var(--fr-fade) ease; }
.backdrop[data-id="11076274"] .displacement_canvas {   /* 11076274 = the Front page */
  filter: grayscale(var(--fr-grey)) brightness(var(--fr-auto-b, 1)) contrast(var(--fr-auto-c, 1)) contrast(var(--fr-contrast));
}                                          /* --fr-auto-b/-c: each image stretched to black and white first (LEVELS in HTML section 21) */

/* ===== 27. Front fade: gradient at the bottom of the Front image, in the colour of the newest project (HTML section 27) ===== */
:root {
  --ff-height: 45%;          /* how far up the gradient reaches, of the Front image's height */
  --ff-opacity: 1;           /* how strong it gets at the very bottom: 1 = the full colour (Halvor), .45 = subtle */
  --ff-curve: 60%;           /* where it is half way: lower = it stays faint longer and comes in near the bottom */
}
.ff-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--ff-height); z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--ff-rgb), 0) 0%, rgba(var(--ff-rgb), calc(var(--ff-opacity) * .5)) var(--ff-curve), rgba(var(--ff-rgb), var(--ff-opacity)) 100%);
  transition: opacity 1.2s ease, background 1.2s ease;
}
html.fr-wait .backdrop { opacity: 0 !important; }

/* Front's deep scroll under the newest projects (section 1 fills it, section 21 places it) */
:root {
  --fr-deep-pad: 2rem;                     /* space around the scroll */
  --fr-end-space: 8rem;                    /* room above and below the quiet end */
}
.fr-deep { padding: var(--fr-deep-pad); }
.rs-end {
  font-family: var(--bs-font);
  font-size: var(--bs-text-size);
  font-weight: var(--bs-text-weight);
  line-height: var(--bs-line);
  text-align: center;
  padding: var(--fr-end-space) 0 calc(var(--fr-end-space) * 1.5);
}
.rs-end p { margin: 0; }
.rs-end a { color: inherit; text-decoration: none; opacity: var(--bs-dim); margin: 0 .4em; }
.rs-end a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .15em; }

/* ==========================================================================
   22. LISTS — Discography, Filmography, Design CV, Art CV, Awards, Clients
   On a page with <div class="dl-list"> … the list as plain text … </div>
   Black page with white text (set in section 23), like Tags and Studio ambience.
   ========================================================================== */
:root {
  --dl-year-width: 4.2em;                  /* the year column */
  --dl-row-gap: .3em;                      /* space above and below each line */
  --dl-rule: .12;                          /* hairline between lines (0 = none) */
  --dl-chip-line: .3;                      /* outline of the filter buttons */
  --dl-max-width: 70rem;
  --dl-top-space: 5rem;                    /* room under the fixed header logo */
}
.dl-list .dl-raw { display: none; }
.dl-list .dl-out {
  padding-top: var(--dl-top-space);
  font-family: var(--bs-font);
  font-size: var(--bs-text-size);
  font-weight: var(--bs-text-weight);
  line-height: var(--bs-line);
  max-width: var(--dl-max-width);
}
/* The line of links between the list pages and Tags (window.bsListNav in section 22 of the HTML tab) */
.dl-nav { display: flex; flex-wrap: wrap; gap: .1em 1em; margin: 0 0 1.4em;
  font-size: var(--bs-small-size); font-weight: var(--bs-small-weight); }
.dl-list .dl-nav a, #tag-map .dl-nav a { color: inherit; text-decoration: none; opacity: var(--bs-dim); }   /* two classes: beats Cargo's own link colour */
.dl-list .dl-nav a:hover, #tag-map .dl-nav a:hover { opacity: 1; }
.dl-list .dl-nav a.is-on, #tag-map .dl-nav a.is-on { opacity: 1; text-decoration: underline; text-underline-offset: .2em; }
.dl-list .dl-intro { margin: 0 0 1em; }
.dl-list .dl-chips { display: flex; flex-wrap: wrap; gap: .4em; margin: 0 0 .7em; }
.dl-list .dl-chip {
  font: inherit; font-size: var(--bs-small-size); font-weight: var(--bs-small-weight);
  color: inherit; background: none; cursor: pointer;
  border: 1px solid color-mix(in srgb, currentColor calc(var(--dl-chip-line) * 100%), transparent);
  border-radius: 2em; padding: .15em .8em;
  opacity: var(--bs-dim);
}
.dl-list .dl-chip:hover { opacity: 1; }
.dl-list .dl-chip.is-on { opacity: 1; border-color: currentColor; }
/* Label line on the Discography: smaller, no outline, folds after LABEL_SHOW (section 22 in the HTML tab) */
.dl-list .dl-labels { gap: .1em 1em; margin-bottom: .9em; }
.dl-list .dl-labels .dl-chip { border: 0; border-radius: 0; padding: 0; }
.dl-list .dl-labels .dl-chip.is-on { text-decoration: underline; text-underline-offset: .2em; }
.dl-list .dl-labels .dl-n { opacity: .6; }
.dl-list .dl-more {
  font: inherit; font-size: var(--bs-small-size); font-weight: var(--bs-small-weight);
  color: inherit; background: none; border: 0; padding: 0; cursor: pointer; opacity: var(--bs-dim);
  text-decoration: underline; text-underline-offset: .2em;
}
.dl-list .dl-more:hover { opacity: 1; }
/* Search field over the lists: a quiet underline, like the search in the footer */
.dl-list .dl-find { margin: .2em 0 0; }
.dl-list .dl-search {
  width: 14em; max-width: 100%; padding: .1em 0;
  font: inherit; font-size: var(--bs-small-size); font-weight: var(--bs-small-weight);
  color: inherit; caret-color: currentColor; background: transparent;
  border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor calc(var(--dl-chip-line) * 100%), transparent);
  border-radius: 0; outline: none; -webkit-appearance: none; appearance: none;
}
.dl-list .dl-search::placeholder { color: inherit; opacity: var(--bs-dim); }
.dl-list .dl-search:focus { border-bottom-color: currentColor; }
.dl-list .dl-search::-webkit-search-cancel-button { display: none; }   /* Esc clears the field */
.dl-list .dl-count { font-size: var(--bs-small-size); font-weight: var(--bs-small-weight); opacity: var(--bs-dim); margin: 1.2em 0 .4em; }
.dl-list .dl-group {
  font: inherit; font-size: var(--bs-small-size); font-weight: var(--bs-small-weight);
  text-transform: uppercase; letter-spacing: .08em; opacity: var(--bs-dim);
  margin: 2em 0 .4em;
}
.dl-list .dl-row {
  display: grid; grid-template-columns: var(--dl-year-width) minmax(0, 1fr) auto; gap: 1em;
  padding: var(--dl-row-gap) 0;
  border-top: 1px solid color-mix(in srgb, currentColor calc(var(--dl-rule) * 100%), transparent);
}
.dl-list .dl-noyear .dl-row { grid-template-columns: minmax(0, 1fr) auto; }   /* Clients: no year column */
.dl-list .dl-noyear .dl-y { display: none; }
.dl-list .dl-y { opacity: var(--bs-dim); font-variant-numeric: tabular-nums; }
.dl-list .dl-t i, .dl-list .dl-t em { font-style: italic; }
.dl-list .dl-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.dl-list .dl-link:hover { text-decoration-color: currentColor; }
.dl-list .dl-g { text-align: right; white-space: nowrap; }
.dl-list .dl-tag {
  font: inherit; font-size: var(--bs-small-size); font-weight: var(--bs-small-weight);
  color: inherit; background: none; border: 0; padding: 0; margin-left: .5em; cursor: pointer; opacity: var(--bs-dim);
}
.dl-list .dl-tag:hover { opacity: 1; text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 760px) {
  .dl-list .dl-row { grid-template-columns: var(--dl-year-width) minmax(0, 1fr); row-gap: 0; }
  .dl-list .dl-g { grid-column: 2; text-align: left; white-space: normal; }
  .dl-list .dl-noyear .dl-row { grid-template-columns: minmax(0, 1fr); }
  .dl-list .dl-noyear .dl-g { grid-column: 1; }
  .dl-list .dl-tag { margin: 0 .6em 0 0; }
}

/* ==========================================================================
   23. TAG MAP — on the page with <div id="tag-map"></div>
   Black page, like Studio ambience. The dot colours are set here.
   ========================================================================== */
:root {
  --tm-bg: #000;
  --tm-text: rgba(255, 255, 255, .85);
  --tm-type: rgba(255, 255, 255, .92);     /* dots: kind of work (book, poster, film …) */
  --tm-name: rgba(255, 255, 255, .45);     /* dots: people, clients, labels */
  --tm-tag: transparent;               /* kind dots are neutral: colour on the map means the key (see .tm-keys) */                       /* dots: genres and #tags from the lists */
  --tm-line: rgba(255, 255, 255, .09);     /* lines between dots */
  --tm-hi: rgba(185, 167, 255, .8);        /* lines from the chosen dot */
  --tm-height: 78vh;                       /* height of the map */
  --tm-side-width: 22rem;                  /* the list beside the map */
  --tm-year-width: 2.6em;                  /* the year column in that list */
  --tm-index-col: 13rem;                   /* width of each column in the text lists under the map */
}
html.tm-page, html.tm-page body, html.dl-page, html.dl-page body { background: var(--tm-bg) !important; }   /* list pages, Info and Tags: black */
html.tm-page .page_container:not(.overlay), html.dl-page .page_container:not(.overlay) { color: var(--tm-text); }
html.dl-page .dl-list, html.dl-page .dl-info { color: var(--tm-text); }
html.dl-page .page .dl-info a { color: inherit; text-decoration: none; }   /* Cargo's own link colour is black */
html.dl-page .page .dl-info a:hover { text-decoration: underline; text-underline-offset: .18em; }
/* Info page: put its links inside <div class="dl-info"> ... </div> */
.dl-info { padding-top: var(--dl-top-space); font-family: var(--bs-font); font-size: var(--bs-text-size); font-weight: var(--bs-text-weight); line-height: var(--bs-line); }
#tag-map {
  padding-top: var(--dl-top-space);
  color: var(--tm-text);
  font-family: var(--bs-font);
  font-size: var(--bs-text-size);
  font-weight: var(--bs-text-weight);
  line-height: var(--bs-line);
}
#tag-map .tm-intro { margin: 0 0 .4em; }
#tag-map .tm-legend { font-size: var(--bs-small-size); font-weight: var(--bs-small-weight); opacity: var(--bs-dim); }
#tag-map .tm-k { display: inline-block; width: .55em; height: .55em; border-radius: 50%; margin: 0 .4em 0 1.2em; }
#tag-map .tm-k:first-child { margin-left: 0; }
#tag-map .tm-k.tm-type { background: var(--tm-type); }
#tag-map .tm-k.tm-name { background: var(--tm-name); }
#tag-map .tm-k.tm-tag  { background: var(--tm-tag); box-shadow: inset 0 0 0 1px currentColor; }
#tag-map .tm-wrap { position: relative; margin-top: 1em; }
#tag-map .tm-stage { position: relative; height: var(--tm-height); min-height: 26rem; border-top: 1px solid var(--tm-line); }
#tag-map .tm-stage canvas { position: absolute; inset: 0; touch-action: none; }
#tag-map .tm-side {
  position: absolute; top: 1em; right: 0; width: var(--tm-side-width); max-height: calc(100% - 10rem);   /* stays clear of the footer */ overflow: auto;
  border-left: 1px solid var(--tm-hi); padding: 0 0 0 1em; display: none;
  background: color-mix(in srgb, var(--tm-bg) 80%, transparent);
}
#tag-map .tm-side.is-on { display: block; }
#tag-map .tm-head { font: inherit; font-size: 1.6em; font-weight: var(--bs-small-weight); margin: 0; }
#tag-map .tm-n, #tag-map .tm-src, #tag-map .tm-y { font-size: var(--bs-small-size); opacity: var(--bs-dim); }
#tag-map .tm-side ul { list-style: none; margin: .6em 0 0; padding: 0; }
#tag-map .tm-side li { padding: .15em 0; display: grid; grid-template-columns: var(--tm-year-width) minmax(0, 1fr); gap: .6em; align-items: baseline; }   /* wrapped lines stay right of the year */
#tag-map .tm-side .tm-y { font-variant-numeric: tabular-nums; }
#tag-map .tm-side a { color: inherit; text-decoration: none; }
#tag-map .tm-side a:hover { text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 760px) {
  #tag-map .tm-stage { height: 65vh; min-height: 20rem; }
  #tag-map .tm-side { position: static; width: auto; max-height: none; border-left: 0; border-top: 1px solid var(--tm-hi); padding: .6em 0 0; }
}

/* the plain text lists under the map */
#tag-map .tm-index { margin-top: 2em; padding: 1em 0 8rem;   /* room for the footer */
  border-top: 1px solid var(--tm-line); }
#tag-map .tm-index .tm-head { font-size: 1em; }
#tag-map .tm-col { margin-bottom: 2em; }
#tag-map .tm-index ul { list-style: none; margin: .6em 0 0; padding: 0; columns: var(--tm-index-col); column-gap: 2em; }
#tag-map .tm-index li { padding: .1em 0 .1em 1em; text-indent: -1em; text-align: left; break-inside: avoid; }   /* wrapped names hang in */
#tag-map .tm-index button { display: inline; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
#tag-map .tm-index button:hover { text-decoration: underline; text-underline-offset: .18em; }

/* the legend words above the map are buttons: each lists its words beside the map */
#tag-map .tm-legend button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0 1.2em 0 0; cursor: pointer; }
#tag-map .tm-legend button:hover { text-decoration: underline; text-underline-offset: .18em; }
#tag-map .tm-legend .tm-k { margin-left: 0; }
/* the Sound on/off button (2026-11-27): a white-outlined pill at full strength, the legend words around it stay dim */
#tag-map .tm-legend { opacity: 1; }
#tag-map .tm-legend button:not(.tm-sound) { opacity: var(--bs-dim); }
#tag-map .tm-legend button.tm-sound { color: #fff; border: 1px solid #fff; border-radius: 2em; padding: .15em .9em; margin-left: .2em; }
#tag-map .tm-legend button.tm-sound:hover { text-decoration: none; background: #fff; color: #000; }
#tag-map .tm-side .tm-words li { display: block; padding: .1em 0 .1em 1.1em; text-indent: -1.1em; text-align: left; }
#tag-map .tm-side .tm-words .tm-k { margin: 0 .55em 0 0; }
#tag-map .tm-side .tm-words button { display: inline; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
#tag-map .tm-side .tm-words button:hover { text-decoration: underline; text-underline-offset: .18em; }

/* colour keys under the intro (Scriabin): every list is a key */
#tag-map .tm-keys { font-size: var(--bs-small-size); opacity: .8; margin: .5em 0 0; display: flex; flex-wrap: wrap; gap: .3em 1.1em; align-items: baseline; }
#tag-map .tm-keys i { display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin-right: .4em; }
#tag-map .tm-keys em { font-style: normal; opacity: .55; }
#tag-map .tm-keys .tm-wheel { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .3em .9em; opacity: .9; }
#tag-map .tm-keys .tm-keynote { flex-basis: 100%; opacity: .6; max-width: 46em; }
#tag-map .tm-keys .tm-keynote i { display: inline; width: auto; height: auto; border-radius: 0; margin: 0; font-style: italic; }   /* book and work titles */

/* ==========================================================================
   24. SCORE — on the Info page, <div id="info-score"></div> above the links
   The dot colours come from the code (Scriabin's note colours); the rest is set here.
   ========================================================================== */
:root {
  --sco-plate-size: 30rem;                 /* the sand plate (phone/narrow: under the score) */
  --sco-plate-side: 30rem;                 /* the plate beside the score on wide screens */
  --sco-side-gap: 3em;
  --sco-history-width: 40em;               /* the cymatics text under the plate */
  --sco-eye: #ff0000;                      /* the small red eye in the middle of the plate (HAL) */
  --sco-bg: #000;                          /* background in the saved .svg */
  --sco-text: rgba(255, 255, 255, .85);
  --sco-line: rgba(255, 255, 255, .12);    /* row lines and year lines */
  --sco-head: #fff;                        /* the play line */
  --sco-dot-opacity: .9;
  --sco-swatch: .7em;                      /* colour dots in the key under the score */
  --sco-wheel-off: .3;
  --sco-step-size: 1.6em;                  /* drum machine steps */
  --sco-step-gap: 3px;
  --sco-step-on: rgba(255, 255, 255, .55);
  --sco-step-accent: #ff0000;              /* an accented hit (HAL red) */
  --sco-step-beat: rgba(255, 255, 255, .35);  /* the first step of every year */
  --sco-step-now: #fff;                    /* the step playing now */                     /* Scriabin's notes not in use right now */
}
#info-score { padding-top: var(--dl-top-space); margin-bottom: 2.5em; color: var(--sco-text); font-family: var(--bs-font); font-size: var(--bs-text-size); font-weight: var(--bs-text-weight); line-height: var(--bs-line); max-width: 80rem; }
#info-score .sco-intro { margin: 0 0 .8em; max-width: 46em; }
#info-score .sco-note { margin: .6em 0 0; font-size: var(--bs-small-size); opacity: .6; max-width: 46em; }
/* colour key under the score */
#info-score .sco-colours { margin: 1em 0 0; font-size: var(--bs-small-size); }
#info-score .sco-colours h3 { font: inherit; margin: 0 0 .4em; opacity: .9; }
#info-score .sco-lists, #info-score .sco-wheel { display: flex; flex-wrap: wrap; gap: .3em 1.1em; align-items: baseline; margin: 0 0 .4em; }
#info-score .sco-lists i, #info-score .sco-wheel i { display: inline-block; width: var(--sco-swatch); height: var(--sco-swatch); border-radius: 50%; margin-right: .4em; vertical-align: -.05em; }
#info-score .sco-lists em { font-style: normal; opacity: .55; }
#info-score .sco-wheel { gap: .3em .9em; }
#info-score .sco-wheel span { opacity: var(--sco-wheel-off); transition: opacity .3s; }
#info-score .sco-wheel span.is-on { opacity: 1; }
#info-score .sco-bar { display: flex; flex-wrap: wrap; gap: .5em 1.4em; align-items: baseline; margin-bottom: .6em; }
#info-score .sco-bar button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; opacity: .7; }
#info-score .sco-bar button:hover, #info-score .sco-bar button.is-on { opacity: 1; text-decoration: underline; text-underline-offset: .18em; }
#info-score .sco-bar button[data-a="play"] { opacity: 1; border: 1px solid currentColor; border-radius: 2em; padding: .1em .9em; }
#info-score .sco-stage { position: relative; }
#info-score .sco-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: none; user-select: none; }
#info-score .sco-grid { stroke: var(--sco-line); stroke-width: 1; }
#info-score .sco-line { stroke: var(--sco-line); stroke-width: 1; }
#info-score .sco-year { fill: var(--sco-text); opacity: .45; font-size: 11px; font-family: inherit; }
#info-score .sco-name text { fill: var(--sco-text); font-size: 14px; font-family: inherit; }
#info-score .sco-name:hover text { text-decoration: underline; }
#info-score .sco-dot { opacity: var(--sco-dot-opacity); cursor: pointer; transition: opacity .3s, stroke-width .3s; stroke: #fff; stroke-width: 0; }
#info-score .sco-dot.is-on { opacity: 1; stroke-width: 3; transition: none; }
#info-score .sco-head { stroke: var(--sco-head); stroke-width: 1; opacity: 0; }
#info-score .sco-head.is-on { opacity: 1; }
#info-score .sco-tip { position: absolute; pointer-events: none; display: none; max-width: 250px; padding: .5em .7em; background: var(--sco-bg); border: 1px solid var(--sco-line); font-size: var(--bs-small-size); line-height: 1.35; }
#info-score .sco-tip.is-on { display: block; }
#info-score .sco-tip b { font-weight: inherit; opacity: .6; }
@media (max-width: 760px) {
  #info-score .sco-name text { font-size: 15px; }
  #info-score .sco-year { font-size: 16px; }
}
/* synth panel */
#info-score .sco-synth { display: flex; flex-wrap: wrap; gap: .6em 1.4em; align-items: flex-end; margin: 0 0 1em; font-size: var(--bs-small-size); }
#info-score .sco-synth label { display: flex; flex-direction: column; gap: .25em; min-width: 7.5em; }
#info-score .sco-synth label span { opacity: .6; }
#info-score .sco-synth em { font-style: normal; opacity: .8; font-variant-numeric: tabular-nums; }
#info-score .sco-synth select { font: inherit; color: inherit; background: var(--sco-bg); border: 1px solid var(--sco-line); border-radius: 2px; padding: .15em .3em; max-width: 13em; }
#info-score .sco-synth input[type="range"] { width: 8em; accent-color: var(--sco-head); }
#info-score .sco-synth button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; opacity: .6; }
#info-score .sco-synth button:hover { opacity: 1; text-decoration: underline; }
/* layout: the score and the plate side by side on wide screens; synth and drum machine fold away */
#info-score .sco-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--sco-side-gap); align-items: start; }
#info-score .sco-left { display: contents; }   /* narrow: score, plate, then the colour key */
#info-score .sco-stage { order: 1; } #info-score .sco-side { order: 2; } #info-score .sco-colours { order: 3; }
@media (min-width: 1000px) {
  #info-score .sco-main { grid-template-columns: minmax(0, 1fr) var(--sco-plate-side); }
  #info-score .sco-left { display: block; }
  #info-score .sco-side .sco-patterns { margin-top: 0; }
  #info-score .sco-side .sco-plate { width: 100%; }
}
#info-score .sco-synth > .sco-fold { align-self: flex-end; }
#info-score .sco-mine { flex-basis: 100%; opacity: .6; }   /* 'my listening': which style, from which artists */
#info-score .sco-fold > summary { cursor: pointer; opacity: .7; list-style: none; }
#info-score .sco-fold > summary::-webkit-details-marker { display: none; }
#info-score .sco-fold > summary::after { content: ' +'; }
#info-score .sco-fold[open] > summary::after { content: ' –'; }
#info-score .sco-fold > summary:hover, #info-score .sco-fold[open] > summary { opacity: 1; text-decoration: underline; text-underline-offset: .18em; }
#info-score .sco-synth > .sco-fold[open] { flex-basis: 100%; }
#info-score .sco-knobs { display: flex; flex-wrap: wrap; gap: .6em 1.4em; align-items: flex-end; margin: .8em 0 0; }
#info-score .sco-knobs label { display: flex; flex-direction: column; gap: .25em; min-width: 7.5em; }
#info-score .sco-dmfold { margin: -.4em 0 1em; font-size: var(--bs-small-size); }
#info-score .sco-dmfold[open] > summary { margin-bottom: .8em; }
/* drum machine (808-style / 909-style) */
#info-score .sco-drums:empty { display: none; }
#info-score .sco-drums { margin: 0 0 1.2em; font-size: var(--bs-small-size); }
#info-score .dm-grid { display: grid; grid-template-columns: 3em repeat(16, minmax(0, var(--sco-step-size))); gap: var(--sco-step-gap); align-items: center; max-width: 100%; }
#info-score .dm-name { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; opacity: .55; }
#info-score .dm-name.is-on, #info-score .dm-name:hover { opacity: 1; text-decoration: underline; text-underline-offset: .18em; }
#info-score .dm-step { aspect-ratio: 1; width: 100%; padding: 0; cursor: pointer; border: 1px solid var(--sco-line); border-radius: 2px; background: none; }
#info-score .dm-step.is-beat { border-color: var(--sco-step-beat); }
#info-score .dm-step.is-hit { background: var(--sco-step-on); }
#info-score .dm-step.is-acc { background: var(--sco-step-accent); border-color: var(--sco-step-accent); }
#info-score .dm-step.is-now { box-shadow: 0 0 0 2px var(--sco-step-now); }
#info-score .dm-knobs { margin: .8em 0 0; }
#info-score .dm-sel { align-self: flex-end; min-width: 6em; opacity: .9; }
/* sand plate */
#info-score .sco-plate { width: min(var(--sco-plate-size), 100%); margin: 1em auto .6em; }
#info-score .sco-plate canvas { display: block; width: 100%; aspect-ratio: 1; }
#info-score .sco-printbar { display: flex; justify-content: center; gap: 1.4em; }
#info-score .sco-printbar button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; opacity: .7; }
#info-score .sco-printbar button:hover { opacity: 1; text-decoration: underline; text-underline-offset: .18em; }
#info-score .sco-printbar + .sco-note { text-align: center; margin: .6em auto 0; }
/* the five plate traditions, above the plate */
#info-score .sco-patterns { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em 1.2em; margin: 1.6em 0 0; font-size: var(--bs-small-size); }
#info-score .sco-patterns button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; opacity: .5; }
#info-score .sco-patterns button:hover { opacity: .85; }
#info-score .sco-patterns button.is-on { opacity: 1; text-decoration: underline; text-underline-offset: .18em; }
#info-score .sco-patterns + .sco-plate { margin-top: 1em; }
#info-score .sco-pnote { max-width: 40em; }
#info-score .sco-plate canvas { cursor: pointer; }
#info-score .sco-plate.is-frozen canvas { outline: 1px solid var(--sco-line); outline-offset: 6px; }   /* held */
/* the short history of cymatics under the plate */
#info-score .sco-history { max-width: var(--sco-history-width); margin: 3em auto 0; font-size: var(--bs-small-size); line-height: 1.5; }
#info-score .sco-history h3 { font: inherit; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin: 0 0 .6em; }
#info-score .sco-history p { margin: 0; opacity: .85; }
#info-score .sco-history .sco-sign { margin-top: .8em; }   /* Halvor's name under the statement */

/* "read more on Info" link after each generated sound or image (to Halvor's statement at /Info#rules) */
a.bs-rules[href][rel] { color: inherit; text-decoration: underline; text-underline-offset: .15em; }

/* ===== 25. Modular synthesizer (section 25 of the HTML tab): small under the score on Info, big on /Modular ===== */
:root {
  --md-trace: #fff;                  /* the oscilloscope's lines before a note plays (then they take Scriabin's colours) */
  --md-line: rgba(255, 255, 255, .25);   /* module edges */
  --md-tube: #000;                   /* the screen */
}
html.md-page, html.md-page body { background: var(--tm-bg) !important; }
html.md-page .page_container:not(.overlay) { color: var(--tm-text); }
#modular, #modular-mini { color: var(--tm-text, #fff); font-family: var(--bs-font); font-size: var(--bs-text-size); font-weight: var(--bs-text-weight); line-height: var(--bs-line); max-width: 80rem; margin-bottom: 2.5em; }
#modular { padding-top: var(--dl-top-space); }
#modular-mini { margin-top: 1em; }
#modular a, #modular-mini a { color: inherit; }
#modular .md-title, #modular-mini .md-title { font: inherit; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin: 0 0 .6em; }
#modular .md-intro, #modular-mini .md-intro, #modular .md-note, #modular-mini .md-note, #modular .md-link, #modular-mini .md-link { font-size: var(--bs-small-size); font-weight: var(--bs-small-weight); opacity: .6; max-width: 46em; margin: .6em 0; }
#modular .md-link, #modular-mini .md-link { opacity: 1; }
#modular .md-link a, #modular-mini .md-link a { text-decoration: underline; text-underline-offset: .18em; }
#modular .md-bar, #modular-mini .md-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1.2em; margin: .8em 0; }
#modular .md-bar button, #modular-mini .md-bar button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; opacity: .7; }
#modular .md-bar button:hover, #modular-mini .md-bar button:hover, #modular .md-bar button.is-on, #modular-mini .md-bar button.is-on { opacity: 1; text-decoration: underline; text-underline-offset: .18em; }
#modular .md-bar .md-play, #modular-mini .md-bar .md-play { opacity: 1; border: 1px solid currentColor; border-radius: 2em; padding: .1em .9em; text-decoration: none; }
#modular .md-export, #modular-mini .md-export { font-size: var(--bs-small-size); margin-top: -.3em; }
#modular .md-main, #modular-mini .md-main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2em; }
#modular .md-rack, #modular-mini .md-rack { position: relative; flex: 1 1 34em; display: flex; flex-wrap: wrap; gap: .7em; font-size: var(--bs-small-size); font-weight: var(--bs-small-weight); }
#modular .md-mod, #modular-mini .md-mod { width: 11em; aspect-ratio: 4 / 9; box-sizing: border-box; display: flex; flex-direction: column; gap: .45em; padding: .6em .75em .7em; border: 1px solid var(--md-line); border-radius: .5em; }
#modular .md-mod.is-data, #modular-mini .md-mod.is-data { border-color: rgba(255, 255, 255, .6); }
#modular .md-rack, #modular-mini .md-rack { -webkit-user-select: none; user-select: none; }
#modular a.md-go, #modular-mini a.md-go { color: inherit; text-decoration: none; opacity: .7; }
#modular a.md-go:hover, #modular-mini a.md-go:hover { opacity: 1; }
#modular .md-siteread a, #modular .md-caption a { color: inherit; }
#modular .md-st { font-style: normal; opacity: .5; }

#modular .md-name, #modular-mini .md-name { text-transform: uppercase; letter-spacing: .08em; font-size: .85em; opacity: .8; }
#modular .md-mod label, #modular-mini .md-mod label { display: flex; flex-direction: column; gap: .15em; }
#modular .md-mod label span, #modular-mini .md-mod label span { opacity: .6; }
#modular .md-mod label em, #modular-mini .md-mod label em { font-style: normal; }
#modular .md-mod input[type=range], #modular-mini .md-mod input[type=range] { width: 100%; margin: 0; accent-color: #fff; }
#modular .md-jacks, #modular-mini .md-jacks { display: flex; flex-wrap: wrap; gap: .35em .8em; margin-top: auto; padding-top: .2em; }
#modular .md-jackrow, #modular-mini .md-jackrow { display: inline-flex; align-items: center; gap: .35em; }
#modular .md-jack, #modular-mini .md-jack { flex: none; width: 1.05em; height: 1.05em; padding: 0; border: 1.5px solid #fff; border-radius: 50%; background: transparent; cursor: grab; touch-action: none; }
#modular .md-jack.is-out, #modular-mini .md-jack.is-out { background: #fff; }
#modular .md-jack.is-used, #modular-mini .md-jack.is-used { box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }
#modular .md-jack em, #modular-mini .md-jackrow em { font-style: normal; opacity: .6; }
#modular .md-cables, #modular-mini .md-cables { position: absolute; left: 0; top: 0; z-index: 2; overflow: visible; pointer-events: none; }
#modular .md-cables path, #modular-mini .md-cables path { fill: none; stroke-width: 3; stroke-linecap: round; opacity: .85; }
#modular .md-cables path.is-temp, #modular-mini .md-cables path.is-temp { stroke-dasharray: 4 5; opacity: 1; }
#modular .md-read, #modular-mini .md-read { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .4em; min-height: 2.6em; }
#modular .md-read i, #modular-mini .md-read i { display: inline-block; width: .7em; height: .7em; border-radius: 50%; }
#modular .md-read b, #modular-mini .md-read b { font-size: 1.4em; font-weight: 400; }
#modular .md-read em, #modular-mini .md-read em { font-style: normal; opacity: .6; }
#modular .md-nowtext { display: block; word-break: break-word; opacity: .8; }
#modular .md-nowtext b { color: var(--md-trace); font-weight: 400; }
#modular .md-crt, #modular-mini .md-crt { border: 1px solid var(--md-line); background: var(--md-tube); }
#modular .md-crt canvas, #modular-mini .md-crt canvas { display: block; width: 100%; aspect-ratio: 2.2 / 1; }   /* 2.20:1, Super Panavision 70 */
#modular .md-screen, #modular-mini .md-screen { flex: 1 1 100%; max-width: 72em; }

#modular .md-about, #modular-mini .md-about, #modular .md-work, #modular-mini .md-work, #modular .md-legend, #modular-mini .md-legend { font-size: var(--bs-small-size); opacity: .6; margin: .2em 0 .5em; line-height: 1.3; }
#modular .md-work, #modular-mini .md-work { opacity: .85; height: 1.3em; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#modular .md-legend, #modular-mini .md-legend { margin-top: .6em; }
#modular .md-caption, #modular-mini .md-caption { font-size: var(--bs-small-size); line-height: 1.3; height: 3.9em; overflow: hidden; margin: .3em 0 .8em; max-width: 46em; }   /* fixed height, so the rack and its cables never move */
@media (max-width: 760px) {
  #modular .md-mod, #modular-mini .md-mod { width: calc(50% - .35em); box-sizing: border-box; }
}

/* ===== 26. Weather at Faenshølet (section 26 of the HTML tab): thin coloured lines over the Front backdrop ===== */
:root {
  --wx-strength: 2;          /* everything at once: 1 = very faint, 2 = faint but readable (now), 3 = clearly visible */
  --wx-line: .6px;           /* base line width; each line is 0.65–1.5 times this (WIDTHS in section 26 of the HTML tab) */
  --wx-o-ground: .22;        /* how visible each part is (0–1) */
  --wx-o-swell: .26;
  --wx-o-wind: .5;
  --wx-o-rain: .55;
  --wx-o-sky: .6;
  /* air (and sea) temperature in °C -> colour of the wind and swell lines */
  --wx-t-15: #5a4cff;
  --wx-t-5: #2d7dff;
  --wx-t0: #00b2c8;
  --wx-t8: #3fb54a;
  --wx-t16: #e0b000;
  --wx-t24: #ff7a1a;
  --wx-t32: #ff2d55;
  --wx-rain: #2f8fff;        /* rain rings */
  --wx-snow: #eef4ff;        /* snow dots, thunder */
  --wx-ground: #b8863b;      /* contour lines of the ground */
  --wx-ground-night: #000000;  /* the Moutmarka mesh at night (black, as by day: Halvor) */
  --wx-ground-day: #000000;    /* the Moutmarka mesh by day (it fades between them at dusk and dawn) */
  --wx-sun: #ffb000;
  --wx-moon: #9fb8ff;
  --wx-dusk: #ff5a36;        /* the horizon at dusk and dawn */
  --wx-night: #4a5cff;       /* colours lean toward this at night */
  --wx-night-tint: .2;       /* how far they lean (0 = keep their own colours) */
  --wx-night-lift: .6;       /* the lines grow this much clearer at night (0 = same as day, 1 = twice as clear) */
  --wx-night-dim: .8;        /* night fog: dark shapes over the photo. 0 = none, .8 = dark, 1 = full (thinner under a clear full moon) */
  --wx-day-mist: .6;         /* the same shapes by day, in white: 0 = none by day, .6 = clear, 1 = full */
  --wx-fog-cover: .4;        /* how many shapes: 0 = a couple, .4 = about nine, 1 = about seventeen (on a large screen) */
  --wx-fog-size: 1;          /* their size: .5 = small, 2 = large */
  --wx-fog-levels: 3;        /* 3 = camouflage: three dark tones that overlap;  1 = one tone */
  --wx-fog-music: .3;        /* share of the shapes that take a colour from the cover playing in the studio (0 = none, 1 = all) */
  --wx-fog-morph: 1;         /* how lively the shapes change form: 0 = still, 1 = blobs, 2 = restless */
  --wx-fog-tide: .5;         /* the tide at Helgeroa: .5 = half as many shapes at low water, half again as many at high water; 0 = off */
  --wx-fog-project: .2;      /* share of the shapes in the colour of the newest project under Front (its Cargo page background) */
  --wx-z: 1;                 /* above the backdrop (1), under the page (2) and header/footer (4) */
  --wx-caption-size: .75rem;
  --wx-caption-colour: rgba(255, 255, 255, .7);
  --wx-caption-bg: rgba(0, 0, 0, .18);        /* the quiet line */
  --wx-caption-bg-open: rgba(0, 0, 0, .55);   /* when the pointer opens it */
}
svg.wx-layer {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: var(--wx-z); pointer-events: none; overflow: hidden;
}
svg.wx-layer path, svg.wx-layer circle, svg.wx-layer line {
  fill: none; stroke-width: var(--wx-line); vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round;
}
svg.wx-layer .wx-sun, svg.wx-layer .wx-moon { stroke-width: calc(var(--wx-line) * 1.4); }
svg.wx-layer .wx-ground path { stroke-width: calc(var(--wx-line) * .8); }
svg.wx-layer .wx-ground * { fill: none !important; stroke: inherit !important; stroke-width: calc(var(--wx-line) * .8) !important; vector-effect: non-scaling-stroke; }
.wx-caption {
  position: fixed; left: 5vw; bottom: 2rem; z-index: 5; max-width: 28rem;
  padding: .35rem .5rem; background: var(--wx-caption-bg); color: var(--wx-caption-colour);
  font-family: var(--bs-font); font-weight: var(--bs-small-weight); font-size: var(--wx-caption-size); line-height: 1.35;
  opacity: 0; transition: opacity 1.6s ease, background .6s; pointer-events: none;
}
.wx-caption.wx-show { opacity: 1; pointer-events: auto; }
.wx-caption p { margin: 0; }
.wx-caption .wx-more { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .8s ease, opacity .8s ease, margin .8s ease; }
.wx-caption:hover { background: var(--wx-caption-bg-open); }
.wx-caption:hover .wx-more { max-height: 20em; opacity: 1; margin-top: .4em; }
.wx-caption .wx-more p { margin: 0 0 .4em; }
.wx-caption .wx-more p:last-child { margin: 0; opacity: .7; }
.wx-caption a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.wx-skytip {
  position: fixed; left: 0; top: 0; z-index: 6; max-width: 19rem;
  padding: .35rem .5rem; background: var(--wx-caption-bg-open); color: var(--wx-caption-colour);
  font-family: var(--bs-font); font-weight: var(--bs-small-weight); font-size: var(--wx-caption-size); line-height: 1.35;
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.wx-skytip.wx-show { opacity: 1; }
.wx-skytip p { margin: 0 0 .3em; }
.wx-skytip p:last-child { margin: 0; }
.wx-skytip .wx-tip-src { opacity: .6; }
@media (max-width: 700px) { .wx-caption { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; } }
