/* =====================================================================
   WAYS & MEANS — GLOBAL CSS
   ---------------------------------------------------------------------
   1. Cargo base (Cargo-managed: keep its "!variable" comment markers intact)
   2. Global media & layout
   3. Header: logo, corners, about/index links
   4. Homepage grid
   5. Stacked sets (About)
   6. Index
   7. Contact & newsletter
   8. Project pages

   Hooks are ID-free: rules target what is on the page (#IndexTable,
   Cargo's stacked-set container, data-wm-* markers inside page content),
   never page IDs, so duplicated pages inherit their styling.
   ===================================================================== */


/* =====================================================================
   1. CARGO BASE
   ===================================================================== */

/**
 * Content
 */

[thumbnails=montessori] .thumbnail_sizer {
	z-index: 11;
}

body, html {
	background-color: #e4e4e4 !important;
	color: #000;
}

a:active {
	opacity: 0.7;
}

.page a.active {
	opacity: 1;
}

i,
em {
	font-style: italic;
}

b,
strong {
	font-weight: bolder;
}

sub,
sup {
	position: relative;
}

sub {
	font-size: 0.7em;
	color: #a3a3a3;
	top: -1em;
}

sub:before {
	content: "\A";
	white-space: pre;
}

sup {
	font-size: 0.7em;
	color: #a3a3a3;
	top: 0.6em;
}

s {
	text-decoration: line-through;
}

img {
	border: 0;
	padding: 0;
}

ul,
ol {
	margin: 0;
	padding: 0.5em 0 0.5em 0;
	list-style-type: none;
}

li {
	padding-bottom: 9px;
}

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

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

.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: Inter, Icons;
	font-style: normal;
	line-height: 1.3;
}

p {
	margin-block-start: 0em;
}

/**
 * Loading Animation
 */

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

/**
 * Editor styles
 */

[data-predefined-style="true"] bodycopy {
	font-size: 1.5rem;
	font-weight: 400;
	color: #666;
	font-family: Inter, Icons;
	font-style: normal;
	line-height: 1.5;
}

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

[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: Inter, Icons;
	font-style: normal;
	font-weight: 400;
	padding: 0;
	margin: 0;
	font-size: 3.5rem;
	line-height: 1.3;
	color: #666;
}

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

[data-predefined-style="true"] h2 {
	font-family: Inter, Icons;
	font-style: normal;
	font-weight: 400;
	padding: 0;
	margin: 0;
	color: #666;
	font-size: 2.3rem;
	line-height: 1.2;
}

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

[data-predefined-style="true"] small {
	font-size: 1.2rem;
	line-height: 1.5;
	font-family: Inter, Icons;
	font-weight: 400;
	color: #666;
}

[data-predefined-style="true"] small a {
	color: #999;
	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: auto /*!content_center*/;
	margin-right: auto /*!content_center*/;
	text-align: center /*!text_center*/;
}

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

[data-css-preset] .container_width {
	width: 100%/*!content_center*/;
	max-width: 1800px;
}

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

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

/**
 * Thumbnails
 */

[data-css-preset] .thumbnails {
	position: static;
	z-index: initial;
	background-color: rgba(0, 0, 0, 0)/*!thumbnails_bgcolor*/;
}

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

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

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

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

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

[data-css-preset] [responsive-layout] [thumbnails-gutter] {
	margin: -4rem/*!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: 4rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 1);
	font-family: Inter, Icons;
	font-style: normal;
	line-height: 1.0;
	text-align: left;
	display: none;
	position: fixed; /* follows the cursor; see "homepage-hover-titles" script */
	top: 45%;
	max-width: 8.4em;
	white-space: normal;
}

.thumbnail:hover .title {
	display: block;
}

.thumbnails .tags {
	margin-top: 1.2rem;
	margin-bottom: 0.5rem;
	font-size: 1.6rem;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.35);
	font-family: Inter, Icons;
	font-style: normal;
	line-height: 1.2;
}

.thumbnails .tags a {
	border-bottom: 0;
	color: rgba(0, 0, 0, 0.35);
	text-decoration: none;
}

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

.mobile .thumbnails .title,
.mobile .thumbnail:hover .title {
	display: none !important;
}

/**
 * Site Menu
 */

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

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 {
	position: relative;
	z-index: 99999;
	font-family: Inter, 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: Inter, Icons;
	font-size: 2rem;
	padding: 0;
	font-weight: 400;
	color: rgba(0, 0, 0, 0.85);
	font-style: normal;
}

#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: Inter, Icons;
	font-size: 2rem;
	line-height: 1;
	color: rgba(0, 0, 0, 0.85);
	display: block;
	margin-bottom: 1rem;
	font-style: normal;
	font-weight: 400;
}

.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: white;
	stroke-width: 2.5px;
}

.image-gallery-navigation .left-arrow .outer-color,
.image-gallery-navigation .right-arrow .outer-color {
	stroke: #000;
	stroke-width: 0px;
	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;
}

/**
 * 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;
}

/**
 * Feed
 */

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

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


/* =====================================================================
   2. GLOBAL MEDIA & LAYOUT
   ===================================================================== */

.page_container {
	z-index: 11;
}

.main_container {
	overflow: initial !important;
}

body.mobile .content_container {
	overflow-x: hidden;
}

.mobile .backdrop {
	left: 0;
}

/* Project-page content width (16:9 frame) lives in Custom HTML,
   "W&M STRUCTURAL CSS": it uses the has-selector, which this editor rejects. */

iframe {
	margin-bottom: 0.75em;
}

iframe[src*="vimeo.com"] {
	border-radius: 8px;
	overflow: hidden;
}

.page_content > div[style*="position:relative;"],
.image-gallery {
	margin-bottom: 0.75em;
}

.content_container img {
	border-radius: 8px;
}


/* =====================================================================
   3. HEADER: LOGO, CORNERS, ABOUT / INDEX LINKS
   (markup lives in Custom HTML)
   ===================================================================== */

/* Corners and corner links appear on the homepage only */
body:not(.homepage) #about,
body:not(.homepage) #contact,
body:not(.homepage) #left_corner,
body:not(.homepage) #right_corner {
	display: none;
}

#headerlogo {
	margin-top: 4em;
	display: flex;
	align-items: center;
	justify-content: center;
	left: 50%;
	margin-left: -70px;
	width: 140px;
	height: 140px;
	position: relative;
	text-decoration: none;
}

body.homepage #headerlogo {
	position: fixed;
}

.mobile #headerlogo {
	z-index: 0 !important;
}

.mobile:not(.homepage) #headerlogo {
	margin-bottom: 4em;
}

/* White logo over dark sections; toggled by the "logo-contrast" script */
#headerlogo.logo-white {
	filter: invert(1);
}

.logo {
	position: absolute; /* sits behind .logotype */
	display: block;
	background: url(https://freight.cargo.site/t/original/i/921ecb177ece8a1acd3df4f05ddc1f4de2457a4b18e6340b8039e39a4fd0e011/ways_and_means.svg) no-repeat;
	background-size: 140px 140px, 100% 100%;
	text-indent: 100%;
	white-space: nowrap;
	overflow: hidden;
	width: 140px;
	height: 140px;
}

.logotype {
	opacity: 0;
	font-family: Inter, Icons;
	color: #000;
	white-space: nowrap;
	text-align: center;
	font-size: 20px;
}

#headerlogo:hover .logotype {
	opacity: 1;
}

#headerlogo:hover .logo {
	opacity: 0;
}

/* No hover swap on touch devices */
body.mobile #headerlogo:hover .logotype {
	opacity: 0 !important;
}

body.mobile #headerlogo:hover .logo {
	opacity: 1 !important;
}

/* Corner shapes. Each corner is randomly a circle or a triangle, and gets
   a random brand color, on every homepage visit (the "accent-colors"
   script sets the class and --wm-corner-color). On phones both corners
   are flat bars. */
#left_corner,
#right_corner {
	position: fixed;
	z-index: 99;
	bottom: 0;
	width: 0;
	height: 0;
	--wm-corner-color: blue;
}

body:not(.mobile) #left_corner.wm-corner-circle,
body:not(.mobile) #right_corner.wm-corner-circle {
	width: 400px;
	height: 400px;
	border-radius: 50%;
	bottom: -200px;
	background: var(--wm-corner-color);
}

body:not(.mobile) #left_corner.wm-corner-circle {
	left: -200px;
}

body:not(.mobile) #right_corner.wm-corner-circle {
	right: -200px;
}

body:not(.mobile) #left_corner.wm-corner-triangle,
body:not(.mobile) #right_corner.wm-corner-triangle {
	border-bottom: 225px solid var(--wm-corner-color);
}

body:not(.mobile) #left_corner.wm-corner-triangle {
	left: 0;
	border-right: 225px solid transparent;
}

body:not(.mobile) #right_corner.wm-corner-triangle {
	right: 0;
	border-left: 225px solid transparent;
}

.mobile #left_corner,
.mobile #right_corner {
	width: 50vw;
	border-bottom: 72px solid var(--wm-corner-color);
}

.mobile #left_corner {
	left: 0;
}

.mobile #right_corner {
	right: 0;
}

h2#about,
h2#contact {
	display: block;
	position: fixed;
	bottom: 55px;
	margin: 0;
	padding: 0;
	font-size: 4rem;
	font-weight: 600;
	line-height: 100%;
	z-index: 999;
}

h2#about {
	left: 65px;
}

h2#contact {
	right: 65px;
}

h2#about a,
h2#contact a {
	text-decoration: none;
	color: #000;
	cursor: pointer;
}

.mobile h2#about,
.mobile h2#contact {
	line-height: 72px;
	bottom: 0;
	width: 50vw;
	text-align: center;
}

.mobile h2#about {
	left: 0;
}

.mobile h2#contact {
	right: 0;
}


/* =====================================================================
   4. HOMEPAGE GRID
   ===================================================================== */

/* Space above the grid. Cargo drops .content_padding from the bodycopy
   when the homepage text is empty, so the bare bodycopy is targeted too. */
body.homepage .content_padding,
body.homepage bodycopy.content {
	padding-top: 5em;
}

body.mobile.homepage .content {
	padding: 0rem !important;
}

body.mobile.homepage div.thumbnails {
	margin-top: 17em;
}

body.mobile.homepage div[thumbnails="columns"] > .column:first-child {
	margin-top: 0em;
}

body.mobile.homepage [thumbnails-gutter] {
	margin: 0rem !important;
}

body.mobile.homepage [thumbnails-pad] {
	padding: 1rem !important;
}


/* =====================================================================
   5. STACKED SETS (ABOUT)
   Applies to any set Cargo renders as a stack, i.e. a set container
   holding two or more page sections. Every page sits inside a set, but
   only About shows several at once, so a duplicated About still works.

   Section markers, added inside a page's own content:
     data-wm-logo="show"   logo stays visible over this section
     data-wm-logo="white"  logo stays visible and turns white
     (unmarked sections slide over the logo)
     class="wm-capabilities"  the Capabilities column grid
   ===================================================================== */

/* The stacked-set layout itself (full-screen sections, snapping, logo
   layering) lives in Custom HTML,
   "W&M STRUCTURAL CSS": it uses the has-selector, which this editor rejects. */

/* Capabilities: list items brighten on hover */
.wm-capabilities ul li {
	opacity: 0.5 !important;
	transition: opacity 0.5s ease;
}

.wm-capabilities ul li:hover {
	opacity: 1 !important;
}


/* =====================================================================
   6. INDEX
   Everything keys off #IndexTable; pills and tag coloring come from the
   "index-*" scripts in Custom HTML.
   ===================================================================== */

#IndexTable {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

/* Rows wait for the "index-intro" script, which fades them in */
body:not([data-adminview]) #IndexTable:not([data-wm-intro]) tbody tr {
	opacity: 0;
}

#IndexTable td,
#IndexTable th {
	position: relative;
	padding: 10px 0px;
	border-bottom: 2px solid #bbb !important;
}

#IndexTable th {
	cursor: pointer;
}

#IndexTable td:nth-child(1),
#IndexTable th:nth-child(1) {
	width: 33.33%;
	text-align: left;
}

#IndexTable td:nth-child(2),
#IndexTable th:nth-child(2) {
	width: 33.33%;
	text-align: center;
}

#IndexTable td:nth-child(3),
#IndexTable th:nth-child(3) {
	width: 33.33%;
	text-align: right;
}

/* Sort arrows on header hover */
#IndexTable th:nth-child(1):hover::after {
	content: "\21C5";
	padding-left: 5px;
}

#IndexTable th:nth-child(2):hover::after {
	content: "\21C5";
	position: absolute;
	top: 50%;
	padding-left: 5px;
	transform: translateY(-50%);
}

#IndexTable th:nth-child(3):hover::before {
	content: "\21C5";
	padding-right: 5px;
}

#IndexTable td a {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

#IndexTable .tag,
#IndexTable .wm-index-tag {
	cursor: pointer;
}

/* Mobile: two columns, Client/Artist left, Project right, no Category */
.mobile #IndexTable {
	font-size: 1.4em;
}

.mobile #IndexTable tr {
	display: flex;
	width: 100%;
}

/* Rows the filter hides must stay hidden */
.mobile #IndexTable tr:not([style*="display: none"]):not([style*="display:none"]) {
	display: flex !important;
}

.mobile #IndexTable td:nth-child(1),
.mobile #IndexTable th:nth-child(1) {
	width: 50%;
	order: 2;
	text-align: right;
}

.mobile #IndexTable td:nth-child(2),
.mobile #IndexTable th:nth-child(2) {
	width: 50%;
	order: 1;
	text-align: left;
}

.mobile #IndexTable td:nth-child(3),
.mobile #IndexTable th:nth-child(3) {
	display: none;
}

/* Rename "Title" to "Project" on mobile. -webkit-text-fill-color hides the
   original text without changing color, so ::after inherits the real color. */
.mobile #IndexTable th:nth-child(1) {
	-webkit-text-fill-color: transparent;
	position: relative;
	overflow: visible;
}

.mobile #IndexTable th:nth-child(1)::after {
	content: "Project";
	-webkit-text-fill-color: initial;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.mobile #IndexTable th:nth-child(1):hover::after {
	content: "\21C5\00a0Project";
	-webkit-text-fill-color: initial;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

/* Category tags as colored pills (class added by "index-tag-colors") */
#IndexTable.wm-category-pills td:last-child {
	font-size: 0;
	line-height: normal;
}

#IndexTable.wm-category-pills td:last-child .wm-index-tag {
	display: inline-block;
	vertical-align: middle;
	font-size: var(--wm-category-font, 16px);
	line-height: 1.25;
	padding: .16em .55em;
	margin: .12em 0 .12em .35em;
	border: 0;
	border-radius: 999px;
	background: var(--wm-tag-fill, #aaa);
	color: var(--wm-tag-ink, #e4e4e4) !important;
	white-space: nowrap;
	cursor: pointer;
}

#IndexTable.wm-category-pills td:last-child .wm-index-tag:first-child {
	margin-left: 0;
}

#IndexTable.wm-category-pills tr.wm-category-row td,
#IndexTable.wm-category-pills tr.wm-category-row td a {
	color: var(--wm-category-row-color) !important;
}

/* Category filter pills above the table (built by "index-filter-pills") */
#wm-index-pills {
	position: relative;
	display: block;
	width: 100%;
	max-width: 40em;
	margin: 0 auto 42px;
	padding: 0;
}

#wm-index-pills .wm-filter-pill {
	position: absolute;
	width: max-content;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	background: transparent;
	color: #666 !important;
	border: 2px solid #bbb;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 999px;
	padding: .25em .75em .3em .55em;
	font: inherit;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	min-height: 0;
	text-decoration: none !important;
	margin: 0;
	cursor: pointer;
	transition: background-color 160ms, border-color 160ms, color 160ms;
}

#wm-index-pills .wm-filter-pill * {
	pointer-events: none;
}

#wm-index-pills .wm-filter-pill[hidden] {
	display: none !important;
}

#wm-index-pills .wm-filter-pill[aria-pressed="true"],
#wm-index-pills .wm-filter-pill.wm-tag-preview,
#wm-index-pills .wm-filter-pill:focus-visible {
	background: var(--wm-pill-accent, #FF5F1F);
	border-color: var(--wm-pill-accent, #FF5F1F);
	color: var(--wm-pill-ink, #000) !important;
}

#wm-index-pills .wm-filter-pill:focus-visible span {
	text-decoration: underline;
	text-underline-offset: .18em;
}

#wm-index-pills svg {
	width: 1.05em;
	height: 1.05em;
	flex: 0 0 1.05em;
	fill: none;
	stroke: currentColor;
	stroke-width: 5;
}

#wm-index-pills .wm-filter-close {
	display: none;
}

#wm-index-pills [aria-pressed="true"] .wm-filter-search {
	display: none;
}

#wm-index-pills [aria-pressed="true"] .wm-filter-close {
	display: block;
}

.wm-index-filter-status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (hover: hover) {
	#wm-index-pills .wm-filter-pill:hover {
		background: var(--wm-pill-accent, #FF5F1F);
		border-color: var(--wm-pill-accent, #FF5F1F);
		color: var(--wm-pill-ink, #000) !important;
	}
}

@media (max-width: 600px) {
	#wm-index-pills {
		margin-top: -7px;
		margin-bottom: 20px;
	}

	#wm-index-pills .wm-filter-pill {
		font-size: 0.72em;
		min-height: 34px;
		padding: 0.2em 0.55em;
		gap: 0.45em;
	}
}

@media (prefers-reduced-motion: reduce) {
	#wm-index-pills .wm-filter-pill {
		transition: none;
	}
}


/* =====================================================================
   7. CONTACT & NEWSLETTER
   ===================================================================== */

input {
	border: 0;
	border-bottom: 1px solid rgba(153, 153, 153, 1);
	font-size: 1em;
	background: transparent;
	width: 14em;
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
	input {
		width: 11.5em;
	}
}

input:focus {
	border-bottom: 1px solid rgba(102, 102, 102, 1);
}

input#fieldEmail {
	color: #666;
}

#go {
	font-size: 1em;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: #666;
	margin-left: -32px;
}

#go:hover {
	opacity: 0.5;
}

#footer {
	font-size: 0.7em;
	line-height: 1.5em;
	color: #222;
	position: relative;
	bottom: -17em;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
}

body.mobile #footer {
	bottom: -14em;
}


/* =====================================================================
   8. PROJECT PAGES
   ===================================================================== */

/* Category / Services values as pills (built by "project-meta-pills") */
.page_content .wm-project-meta-pill {
	display: inline-block;
	vertical-align: middle;
	margin: 0.1em 0.32em 0.1em 0;
	padding: 0.16em 0.55em;
	border: 0;
	border-radius: 999px;
	background: var(--wm-project-pill-fill, #aaa);
	color: var(--wm-project-pill-ink, #e4e4e4) !important;
	font-size: 0.9em;
	line-height: 1.25;
	text-decoration: none !important;
	white-space: nowrap;
}

.page_content .wm-project-meta-values {
	margin-left: 0.35em;
}

.page_content a.wm-project-meta-pill {
	cursor: pointer;
}

.page_content span.wm-project-meta-pill {
	cursor: default;
}

.page_content a.wm-project-meta-pill:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}


/* =====================================================================
   HALLOWEEN (seasonal)
   Project pages listed in WM.halloween (Custom HTML) go black until the
   end date there; the "halloween-projects" script adds the class.
   The homepage face is styled on the Home page itself.
   ===================================================================== */
html.wm-halloween-project,
body.wm-halloween-project {
	background-color: #000 !important;
}

body.wm-halloween-project #headerlogo .logo {
	filter: invert(1);
}
