@font-face {
  font-family: "Rowan Regular";
  src: url("/asset?u=https%3A%2F%2Fnews.mongabay.com%2Fwp-content%2Fthemes%2Fmongabay_v2%2Ffonts%2FRowan-Regular.eot");
  src:
    url("/asset?u=https%3A%2F%2Fnews.mongabay.com%2Fwp-content%2Fthemes%2Fmongabay_v2%2Ffonts%2FRowan-Regular.eot%3F%23iefix") format("embedded-opentype"),
    url("/asset?u=https%3A%2F%2Fnews.mongabay.com%2Fwp-content%2Fthemes%2Fmongabay_v2%2Ffonts%2FRowan-Regular.woff") format("woff"),
    url("/asset?u=https%3A%2F%2Fnews.mongabay.com%2Fwp-content%2Fthemes%2Fmongabay_v2%2Ffonts%2FRowan-Regular.woff2") format("woff2"),
    url("/asset?u=https%3A%2F%2Fnews.mongabay.com%2Fwp-content%2Fthemes%2Fmongabay_v2%2Ffonts%2FRowan-Regular.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
}

:root {
  --theme-pine-green: #738b87;
  --theme-pine-green-dark: #092f29;
  --theme-pine-green-low: #92a3a0;
  --theme-pine-green-alpha: rgb(115 139 135 / 40%);
  --theme-emerald-green: #006a54;
  --theme-mint-green: #bfecb1;
  --theme-body-white: #ffffff;
  --theme-white: #fcfcfc;
  --theme-off-white: #eef0f0;
  --theme-off-white-alpha: rgb(255 255 255 / 40%);
  --theme-black: #000;
  --theme-body: #092f29;
  --theme-donate: #f6e779;
  --theme-accent: #bfecb1;
  --theme-secondary: var(--theme-body);
  --theme-dark-green: var(--theme-body);
  --theme-secondary-alpha: rgba(0, 106, 84, 0.071);
  --theme-soft-gray: rgba(0, 0, 0, 0.05);
  --theme-medium-gray: #d9d9d9;
  --theme-muted: #878787;
  --theme-red: #e63946;
  --accent-green: #bfecb1;
  --spacing-1: 4px;
  --spacing-2: 6px;
  --spacing-3: 8px;
  --spacing-4: 10px;
  --spacing-5: 16px;
  --spacing-6: 20px;
  --spacing-7: 24px;
  --spacing-8: 30px;
  --spacing-9: 32px;
  --spacing-10: 36px;
  --spacing-11: 40px;
  --spacing-12: 42px;
  --spacing-13: 48px;
  --spacing-14: 80px;
  --rounded: 8px;
  --font-xs: 0.8rem;
  --font-s: 1rem;
  --font-sm: 1.5rem;
  --font-m: 2rem;
  --font-l: 2.5rem;
  --font-xl: 3rem;
  --font-xxl: 3.5rem;
  --font-jumbo: 4.875rem;
  --line-height-normal: 1.5;
  --line-height-tight: 1.2;
  --line-height-tightest: 1;
}

html,
body {
  width: 100%;
}

html {
  font-family: "Public Sans", sans-serif;
  line-height: 1.5;
  box-sizing: border-box;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

*,
::after,
::before {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@-ms-viewport {
  width: device-width;
}

body {
  font-size: var(--font-s);
  font-weight: 400;
  color: var(--theme-body);
  background-color: var(--theme-body-white);
  margin: 0;
  overflow-x: hidden;
}

a {
  color: var(--theme-emerald-green);
  text-decoration: none;
  cursor: pointer;
}

.dark-mode a {
  color: var(--theme-mint-green);
}

article a {
  text-decoration: underline;
}

p,
.is-layout-flex p {
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

p.copyright {
  font-size: var(--font-xs);
  color: var(--theme-body);
}

ul li {
  margin-bottom: 1rem;
  margin-left: 1rem;
}

label {
  display: flex;
  gap: var(--spacing-5);
  flex-direction: row-reverse;
}

hr.spacer,
.single-custom-story .wp-block-separator {
  display: flex;
  height: 1px;
  background: var(--theme-secondary-alpha) !important;
  width: 100%;
  margin: var(--spacing-13) 0;
  border: none;
}

.dark-mode hr.spacer,
.single-custom-story.dark-mode .wp-block-separator,
.single-custom-story.dark-mode .wp-block-quote,
.single-custom-story.dark-mode .wp-block-verse.has-background,
.single-custom-story.dark-mode .wp-block-code,
.dark-mode .soliloquy-carousel .soliloquy-caption-inside {
  background: var(--theme-accent) !important;
}

ul.no-bullets {
  list-style: none;
}

ul.no-bullets li {
  margin-bottom: var(--spacing-4);
}

ul.no-bullets li a {
  text-decoration: none;
  color: var(--theme-body);
}

ul.no-bullets li.active a {
  color: var(--theme-pine-green) !important;
  font-weight: 600;
}

.full-width {
  width: 100%;
}

.full-height {
  height: 100% !important;
}

.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.full-vheight {
  height: 100vh;
}

img.full-height {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover;
}

img.rounded {
  border-radius: var(--rounded);
}

.rounded-top {
  border-radius: var(--rounded) var(--rounded) 0 0 !important;
}

.rounded-bottom {
  border-radius: 0 0 var(--rounded) var(--rounded) !important;
}

blockquote {
  border-radius: var(--rounded);
  background: var(--theme-secondary-alpha);
  margin: var(--spacing-9) 0;
  padding: var(--spacing-9);
}

.headline,
.headline h1,
.headline h2,
.headline h3,
.headline h4,
.single h1,
.single h2,
.single h3,
.single h4,
h1,
h2,
h3,
h4 {
  font-family: "Rowan Regular";
  font-weight: 400;
}

.headline,
.headline h1,
.headline h2,
.headline h3,
.headline h4 {
  margin: 0;
}

.single h1 {
  font-size: clamp(2.5rem, 5vw + 0.5rem, var(--font-jumbo));
  line-height: 1.27;
}

.single h2 {
  font-size: var(--font-l);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.single h3 {
  font-size: var(--font-m);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

.headline h5 {
  font-family: "Public Sans", sans-serif;
  font-size: var(--font-xs);
  font-weight: 400;
  color: var(--theme-off-white);
}

.article--container .title h3.podcast--banner-title {
  font-size: var(--font-m);
}

/* Texts */
.text--theme-off-white {
  color: var(--theme-off-white);
}

.text--theme-accent {
  color: var(--theme-accent);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

/* Content alignment */
.align-left {
  align-items: flex-start !important;
}

.align-right {
  align-items: flex-end !important;
}

.align-center {
  align-items: center !important;
}

.justify-center {
  justify-content: center !important;
}

.justify-right {
  justify-content: flex-end !important;
}

/* Line heights */
.lh--normal {
  line-height: var(--line-height-normal);
}

.lh--tight {
  line-height: var(--line-height-tight);
}

.lh--tightest {
  line-height: var(--line-height-tightest);
}

/* Gaps */
.gap--4 {
  gap: 4px;
}
.gap--8 {
  gap: 8px;
}
.gap--16 {
  gap: 16px;
}
.gap--20 {
  gap: 20px;
}
.gap--32 {
  gap: 32px;
}
.gap--40 {
  /* gap: 40px; */
  gap: clamp(20px, 5vw + 1px, 40px);
}

.gap--80 {
  /* gap: 80px; */
  gap: clamp(20px, 5vw + 1px, 80px);
}

/* Backgrounds */
.bg-theme-secondary {
  background: var(--theme-secondary);
  color: var(--theme-off-white) !important;
}

.dark-mode .bg-theme-secondary {
  color: var(--theme-pine-green-dark) !important;
}

.bg-theme-secondary-alpha {
  background: var(--theme-secondary-alpha);
}

.bg-theme-accent {
  background: var(--theme-accent);
}

.bg-theme-emerald-green {
  background: var(--theme-emerald-green);
  color: var(--theme-off-white) !important;
}

.bg-theme-off-white {
  background: var(--theme-off-white) !important;
  color: var(--theme-dark-green) !important;
}

.bg-theme-gray {
  background: var(--theme-soft-gray);
}

.dark-mode .bg-theme-gray {
  background: rgb(255 255 255 / 9%);
}

.bg-brand-color {
  background: var(--theme-pine-green);
  color: var(--theme-off-white) !important;
}

/* Flex direction and distribution */
.in-column {
  display: flex;
  flex-direction: column;
}

.in-row {
  display: flex;
  flex-direction: row;
}

.space-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

/* Margins */
.mt--8 {
  margin-top: 8px;
}
.mt--16 {
  margin-top: 16px;
}
.mt--20 {
  margin-top: 20px;
}
.mt--24 {
  margin-top: 24px;
}
.mt--30 {
  margin-top: 30px;
}
.mt--40 {
  margin-top: clamp(20px, 5vw + 1px, 40px);
}
.mb--8 {
  margin-bottom: 8px;
}
.mb--16 {
  margin-bottom: 16px;
}
.mb--20 {
  margin-bottom: 20px;
}
.mb--24 {
  margin-bottom: 24px;
}
.mb--30 {
  margin-bottom: 30px;
}
.mb--40 {
  margin-bottom: clamp(20px, 5vw + 1px, 40px);
}
.mh--auto {
  margin: 0 auto !important;
}

/* Paddings */
.pv--8 {
  padding-top: 8px;
  padding-bottom: 8px;
}
.pv--16 {
  padding-top: clamp(10px, 2vw + 1px, 16px);
  padding-bottom: clamp(10px, 2vw + 1px, 16px);
}
.pv--20 {
  padding-top: 20px;
  padding-bottom: 20px;
}
.pv--24 {
  padding-top: 24px;
  padding-bottom: 24px;
}
.pv--30 {
  padding-top: 30px;
  padding-bottom: 30px;
}
.pv--40 {
  /* padding-top: 40px; */
  padding-top: clamp(20px, 5vw + 1px, 40px);
  /* padding-bottom: 40px; */
  padding-bottom: clamp(20px, 5vw + 1px, 40px);
}
.pv--56 {
  padding-top: 56px;
  padding-bottom: 56px;
}
.pv--80 {
  padding-top: clamp(40px, 5vw + 1px, 80px);
  padding-bottom: clamp(40px, 5vw + 1px, 80px);
}
.ph--8 {
  padding-left: 8px;
  padding-right: 8px;
}
.ph--16 {
  padding-left: 16px;
  padding-right: 16px;
}
.ph--20 {
  padding-left: 20px;
  padding-right: 20px;
}
.ph--30 {
  padding-left: 30px;
  padding-right: 30px;
}
.ph--40 {
  /* padding-left: 40px; */
  padding-left: clamp(20px, 5vw + 1px, 40px);
  /* padding-right: 40px; */
  padding-right: clamp(20px, 5vw + 1px, 40px);
}
.ph--56 {
  padding-left: 56px;
  padding-right: 56px;
}

.ph--80 {
  padding-left: clamp(40px, 5vw + 1px, 80px);
  padding-right: clamp(40px, 5vw + 1px, 80px);
}

/* Columns */
.column--20,
.column--30,
.column--40,
.column--50,
.column--60,
.column--70,
.column--80,
.column--100 {
  display: flex;
  flex-direction: column;
}

.column--20 {
  width: 20%;
}

.column--40 {
  width: 40%;
}

.column--30 {
  width: 30%;
}

.column--50 {
  width: 50%;
}

.column--60 {
  width: 60%;
}

.column--70 {
  width: 70%;
}

.column--80 {
  width: 80%;
}

.column--100 {
  width: 100%;
}

.grid--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.grid--3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

/* Masonry layout for shorts - fallback using CSS columns */
.shorts.grid--3 {
  display: block;
  column-count: 3;
  column-gap: 40px;
}

.shorts.grid--3 .article--container {
  break-inside: avoid;
  margin-bottom: 40px;
  display: block;
  width: 100%;
}

/* When Masonry.js is initialized, it will override these column rules */
.shorts.grid--3[data-masonry-init="true"] {
  column-count: initial;
}

.shorts.grid--3[data-masonry-init="true"] .article--container {
  position: relative;
}

.grid--4 {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.grid--5 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.short-videos-horizontal-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.short-videos-horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.short-videos-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: var(--spacing-10);
  text-align: center;
  color: var(--theme-pine-green);
  background: var(--theme-off-white);
  border-radius: 8px;
  aspect-ratio: 9 / 16;
}

.loading-spinner {
  display: inline-block;
  font-size: var(--font-s);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.grid--4.repeat {
  grid-template-columns: repeat(4, 1fr);
  display: inline-grid;
}

/* Modifiers */
.hidden {
  display: none !important;
}

.no-scroll {
  overflow: hidden;
}

.is-position-sticky {
  position: sticky;
  position: -webkit-sticky;
}

@keyframes move-up {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50px);
  }
}

/* Dark Theme */
.dark-mode {
  --theme-pine-green: #92a3a0;
  --theme-secondary: #fcfcfc;
  --theme-accent: #006a54;
  --theme-body: var(--theme-off-white);
}

body.dark-mode {
  background: var(--theme-dark-green);
  color: var(--theme-off-white);
}

/* Navigation */
header.sticky {
  position: sticky;
  top: 0;
  left: 0;
  background: var(--theme-body-white);
  z-index: 10;
}

.dark-mode header.sticky {
  background: var(--theme-dark-green);
  box-shadow: 0px 0px 6px rgb(7 26 23);
}

.branding {
  width: 230px;
}

.branding .theme-dark {
  display: none;
}

.dark-mode .menu-container .icon {
  color: var(--theme-off-white);
}

#off-canvas {
  position: absolute;
  transform: translateX(200vw);
  top: 0;
  left: 0;
  background: var(--theme-secondary);
  height: 100%;
  width: 100%;
  z-index: 1;
  transition-duration: 0.3s;
}

.dark-mode #off-canvas {
  background: var(--theme-dark-green);
}

#off-canvas.active {
  transform: translateX(0);
  transition-duration: 0.3s;
  height: 100vh;
}

#off-canvas .footer-links a {
  color: var(--theme-off-white);
}

ul.main-menu.nav-desktop.off-canvas {
  display: block;
  column-count: 2;
}

ul.main-menu.nav-desktop.off-canvas li {
  padding: 10px 0;
  margin: 0;
}

ul.main-menu.nav-desktop.off-canvas li a {
  font-size: clamp(1.8rem, 3vw + 1rem, 3rem);
  font-family: "Rowan Regular";
  color: var(--theme-off-white);
}

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 10px;
  max-width: calc(100% - 140px);
}

.global-nav ul li a {
  color: var(--theme-off-white);
}

.global-nav ul li a.active {
  color: var(--theme-off-white);
  font-weight: 800;
}

.global-nav span.icon.icon-globe {
  font-size: 36px;
  color: var(--theme-off-white);
}

.global-nav {
  display: flex;
  align-items: center;
}

.global-nav a {
  font-size: small;
  font-family: "Public Sans", sans-serif;
  font-weight: 600;
}

.global-nav span.icon.icon-cancel {
  color: white;
  font-size: 20px;
  position: absolute;
  right: 60px;
  cursor: pointer;
}

.global-languages li {
  margin: 0;
}

/* Buttons */
.theme--button {
  padding: var(--spacing-5) var(--spacing-13) var(--spacing-5) var(--spacing-7);
  font-size: var(--font-s);
  border-radius: var(--spacing-7);
  font-family: "Public Sans", sans-serif;
  display: inline-block;
  box-sizing: border-box;
  position: relative;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
}

.theme--button.prev-step {
  padding: var(--spacing-5) var(--spacing-7) var(--spacing-5) var(--spacing-12);
}

.theme--button span {
  display: flex;
  position: absolute;
  right: 10px;
  top: calc(50% - 10px);
  animation: all 0.2s;
}

.theme--button.prev-step span {
  left: 10px;
  right: auto;
}

.theme--button:hover span {
  margin-right: 10px;
}

.theme--button.prev-step:hover span {
  margin-left: 10px;
}

.theme--button.simple {
  padding: 16px 24px;
}

.theme--button.primary {
  background: var(--theme-secondary);
  color: var(--theme-off-white);
}

.theme--button.donate {
  background: var(--theme-donate);
  color: var(--theme-black);
}

.theme--button.secondary {
  background: var(--theme-accent);
  color: var(--theme-body);
}

.theme--button.outlined {
  border: 1px solid var(--theme-body);
  color: var(--theme-body);
}

.dark-mode .theme--button.outlined {
  border: 1px solid var(--theme-off-white);
  color: var(--theme-off-white);
}

.theme--button.no-margins {
  margin: 0;
}

.dark-mode .theme--button.primary {
  color: var(--theme-dark-green) !important;
}

.dark-mode .theme--button.primary .icon {
  color: var(--theme-dark-green) !important;
}

.theme--button.disabled {
  border-color: var(--theme-muted);
  color: var(--theme-muted);
  pointer-events: none;
}

.load-more-button {
  display: flex;
  flex-direction: row;
  line-height: 2;
  padding: var(--spacing-3) var(--spacing-13) var(--spacing-3) var(--spacing-7);
  gap: var(--spacing-5);
}

/* Menu */
.header a {
  color: var(--theme-body);
}

.menu-container {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-7);
  height: 48px;
}

ul.main-menu {
  list-style: none;
  display: flex;
  gap: var(--spacing-7);
  margin: 0;
  align-items: center;
  column-count: 2;
}

ul.main-menu li {
  padding: var(--spacing-7) 0;
  position: relative;
  margin: 0;
}

ul.main-menu li a {
  opacity: 1;
  font-size: var(--font-s);
  font-weight: 500;
  cursor: pointer;
}

.dark-mode ul.main-menu li a {
  color: var(--theme-off-white);
}

ul.main-menu li a:hover,
ul.main-menu li a.active {
  color: var(--theme-pine-green);
}

ul.main-menu:not(.off-canvas) li a:hover:before,
ul.main-menu:not(.off-canvas) li a.active:before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--theme-pine-green);
  opacity: 1;
}

.menu-container .theme--button {
  margin: 0;
  height: min-content;
}

.container {
  display: flex;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.container.centered {
  justify-content: center;
}

.container.wrapped {
  flex-wrap: wrap;
}

.container.full-width {
  max-width: 100% !important;
}

.container.content {
  padding: 40px 40px 80px 40px;
}

.container.relative {
  position: relative;
}

.section-title {
  display: grid;
  grid-template-columns: min-content 1fr;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  align-items: center;
}

.section-title h4 {
  font-family: "Public Sans", sans-serif;
  font-weight: 400;
  font-size: var(--font-xs);
  display: flex;
  width: max-content;
  color: var(--theme-pine-green-low);
}

.section-title .divider {
  display: flex;
  height: 1px;
  background: rgba(15, 54, 46, 0.078);
  /* width: 100%; */
}

.dark-mode .section-title .divider {
  background: var(--theme-pine-green-low);
}

/* Posts in a single column */
.article--container {
  display: flex;
  flex-direction: column;
}

.article--container a {
  color: var(--theme-body);
}

.article--container img {
  width: 100%;
  max-width: 100%;
  border-radius: 5px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shorts .article--container img {
  border-radius: 0 0 5px 5px;
}

.shorts .article--container {
  position: relative;
}

.shorts .article--container.shorts-audio-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.shorts .article--container.shorts-audio-card .shorts-audio-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--spacing-5);
  padding: var(--spacing-5);
}

.shorts .article--container.shorts-audio-card .shorts-audio-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  flex: 1;
}

.shorts .article--container.shorts-audio-card .shorts-audio-label {
  color: var(--theme-secondary);
  font-size: var(--font-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
}

.shorts .article--container.shorts-audio-card .shorts-audio-info .title h2,
.shorts .article--container.shorts-audio-card .shorts-audio-info .title h3 {
  font-size: var(--font-m);
  margin: 0;
  line-height: 1.3;
}

.shorts .article--container.shorts-audio-card .shorts-audio-thumbnail {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
}

.shorts .article--container.shorts-audio-card .shorts-audio-thumbnail img {
  width: 96px;
  height: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.shorts .article--container.shorts-audio-card .shorts-audio-embed {
  padding: var(--spacing-4) var(--spacing-4);
}

.shorts .article--container.shorts-audio-card .shorts-audio-embed,
.shorts .article--container.shorts-audio-card .shorts-audio-embed p,
.shorts .article--container.shorts-audio-card .shorts-audio-embed audio,
.shorts .article--container.shorts-audio-card .shorts-audio-embed .wp-audio-shortcode {
  width: 100%;
  display: block;
  margin: 0;
}

.shorts .article--container.shorts-audio-card .shorts-audio-embed .mejs-controls,
.shorts
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  .mejs-controls {
  background: var(--theme-accent) !important;
}

.shorts .article--container.shorts-audio-card .shorts-audio-embed .mejs-time-total,
.shorts .article--container.shorts-audio-card .shorts-audio-embed .mejs-horizontal-volume-total,
.shorts
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  .mejs-time-total,
.shorts
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  .mejs-horizontal-volume-total {
  background: rgba(15, 54, 46, 0.3) !important;
}

.shorts .article--container.shorts-audio-card .shorts-audio-embed .mejs-time-current,
.shorts .article--container.shorts-audio-card .shorts-audio-embed .mejs-horizontal-volume-current,
.shorts
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  .mejs-time-current,
.shorts
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  .mejs-horizontal-volume-current {
  background: var(--theme-secondary) !important;
}

.shorts .article--container.shorts-audio-card .shorts-audio-embed .mejs-time-loaded,
.shorts
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  .mejs-time-loaded {
  background: rgba(15, 54, 46, 0.18) !important;
}

.shorts .article--container.shorts-audio-card.audio-player-active {
  cursor: pointer;
}

.shorts .article--container.shorts-audio-card .shorts-audio-sticky-shell {
  display: none;
}

.shorts .article--container.shorts-audio-card .shorts-audio-sticky-close {
  display: none;
}

.shorts .article--container.shorts-audio-card.audio-player-sticky .shorts-audio-sticky-shell {
  position: fixed;
  left: 50%;
  bottom: var(--spacing-4);
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 32px));
  z-index: 9999;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 40px;
  grid-template-rows: auto auto;
  gap: var(--spacing-4) var(--spacing-5);
  align-items: center;
  padding: var(--spacing-5);
  background: var(--theme-accent);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.shorts .article--container.shorts-audio-card.audio-player-sticky .sticky-thumbnail {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 110px;
  height: 110px;
}

.shorts .article--container.shorts-audio-card.audio-player-sticky .sticky-thumbnail img {
  width: 110px;
  height: 110px;
  border-radius: 12px;
}

.shorts .article--container.shorts-audio-card.audio-player-sticky .shorts-audio-sticky-title {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.shorts .article--container.shorts-audio-card.audio-player-sticky .shorts-audio-sticky-title h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shorts .article--container.shorts-audio-card.audio-player-sticky .shorts-audio-sticky-player-slot {
  grid-column: 2 / span 2;
  grid-row: 2;
}

.shorts .article--container.shorts-audio-card.audio-player-sticky .shorts-audio-sticky-player-slot,
.shorts
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  .shorts-audio-player-host {
  width: 100%;
}

.shorts .article--container.shorts-audio-card.audio-player-sticky .shorts-audio-embed {
  display: none;
}

.shorts .article--container.shorts-audio-card.audio-player-sticky .shorts-audio-sticky-close {
  grid-column: 3;
  grid-row: 1;
  position: absolute;
  top: 0;
  right: var(--spacing-5);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--theme-body);
  cursor: pointer;
  z-index: 10001;
}

@media (max-width: 767px) {
  .shorts .article--container.shorts-audio-card.audio-player-sticky .shorts-audio-sticky-shell {
    width: calc(100vw - 20px);
    bottom: var(--spacing-3);
    grid-template-columns: 72px minmax(0, 1fr) 32px;
    padding: var(--spacing-4);
  }

  .shorts .article--container.shorts-audio-card.audio-player-sticky .sticky-thumbnail,
  .shorts .article--container.shorts-audio-card.audio-player-sticky .sticky-thumbnail img {
    width: 72px;
    height: 72px;
  }

  .shorts .article--container.shorts-audio-card.audio-player-sticky .shorts-audio-sticky-title h3 {
    font-size: 1.2rem;
  }
}

.shorts .article--container.shorts-video-card .shorts-video-featured-image {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px;
}

.shorts .article--container.shorts-video-card .shorts-video-preview,
.shorts .article--container.shorts-video-card .shorts-video-preview p,
.shorts .article--container.shorts-video-card .shorts-video-preview iframe,
.shorts .article--container.shorts-video-card .shorts-video-featured-image img {
  width: 100%;
  aspect-ratio: 9 / 16;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.shorts .article--container.shorts-video-card .shorts-video-preview iframe {
  pointer-events: none;
}

.shorts .article--container.shorts-video-card .shorts-video-click-blocker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.shorts .article--container.shorts-video-card .shorts-video-featured-image .img-overlay {
  border-radius: 8px;
}

.shorts .article--container.shorts-video-card .shorts-video-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: var(--spacing-8);
  z-index: 4;
}

.shorts .article--container.shorts-video-card .shorts-video-overlay .title {
  position: static;
  width: 100%;
}

.shorts .article--container.shorts-video-card .shorts-video-overlay .title h2,
.shorts .article--container.shorts-video-card .shorts-video-overlay .title h3 {
  color: var(--theme-off-white);
  margin: 0;
  line-height: 1.25;
}

.shorts .article--container.shorts-video-card .shorts-video-overlay .post-meta,
.shorts .article--container.shorts-video-card .shorts-video-overlay .post-meta a {
  color: var(--theme-off-white);
}

/* Shorts video cards in search results */
#post-results .article--container.shorts-video-card {
  padding: 0;
  cursor: pointer;
}

#post-results .article--container.shorts-video-card .shorts-video-featured-image {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

#post-results .article--container.shorts-video-card .shorts-video-featured-image img {
  width: 100%;
  aspect-ratio: 9 / 16;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

#post-results .article--container.shorts-video-card .shorts-video-featured-image .img-overlay {
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
}

#post-results .article--container.shorts-video-card .shorts-video-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: var(--spacing-8);
  z-index: 4;
}

#post-results .article--container.shorts-video-card .shorts-video-overlay .title {
  position: static;
  width: 100%;
}

#post-results .article--container.shorts-video-card .shorts-video-overlay .title h2,
#post-results .article--container.shorts-video-card .shorts-video-overlay .title h3 {
  color: var(--theme-off-white);
  margin: 0;
  line-height: 1.25;
  font-size: var(--font-base);
}

#post-results .article--container.shorts-video-card .shorts-video-overlay .post-meta,
#post-results .article--container.shorts-video-card .shorts-video-overlay .post-meta span {
  color: var(--theme-off-white);
  font-size: var(--font-xs);
}

#post-results .article--container.shorts-video-card .featured-image .post-icon {
  position: absolute;
  top: var(--spacing-2);
  right: var(--spacing-2);
  height: var(--spacing-7);
  width: var(--spacing-7);
  background: var(--theme-off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#post-results .article--container.shorts-video-card .featured-image .post-icon span {
  color: var(--theme-pine-green);
  font-size: 0.7rem;
}

/* Shorts audio cards in search results */
#post-results .article--container.shorts-audio-card {
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

#post-results .article--container.shorts-audio-card:hover {
  background-color: var(--theme-gray-alpha);
}

#post-results .article--container.shorts-audio-card .shorts-audio-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--spacing-5);
  padding: var(--spacing-5);
}

#post-results .article--container.shorts-audio-card .shorts-audio-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  flex: 1;
}

#post-results .article--container.shorts-audio-card .shorts-audio-info .title h2,
#post-results .article--container.shorts-audio-card .shorts-audio-info .title h3 {
  font-size: var(--font-m);
  margin: 0;
  line-height: 1.3;
}

#post-results .article--container.shorts-audio-card .shorts-audio-info .post-meta {
  font-size: var(--font-xs);
}

#post-results .article--container.shorts-audio-card .shorts-audio-thumbnail {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  position: relative;
}

#post-results .article--container.shorts-audio-card .shorts-audio-thumbnail .post-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  height: var(--spacing-7);
  width: var(--spacing-7);
  background: var(--theme-off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

#post-results .article--container.shorts-audio-card .shorts-audio-thumbnail .post-icon span {
  color: var(--theme-pine-green);
  font-size: 0.7rem;
}

#post-results .article--container.shorts-audio-card .shorts-audio-thumbnail img {
  width: 96px;
  height: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

/* Hide sticky shell until audio is active */
#post-results .article--container.shorts-audio-card .shorts-audio-sticky-shell {
  display: none;
}

/* When audio is active but still in view, keep embed visible */
#post-results .article--container.shorts-audio-card.audio-player-active .shorts-audio-embed {
  display: block;
}

/* Highlight active audio card */
#post-results .article--container.shorts-audio-card.audio-player-active {
  border-color: var(--theme-secondary);
  box-shadow: 0 2px 8px rgba(15, 54, 46, 0.15);
}

/* Show sticky shell when audio is active and out of view */
#post-results .article--container.shorts-audio-card.audio-player-sticky .shorts-audio-sticky-shell {
  position: fixed;
  left: 50%;
  bottom: var(--spacing-4);
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 32px));
  z-index: 9999;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 40px;
  grid-template-rows: auto auto;
  gap: var(--spacing-4) var(--spacing-5);
  align-items: center;
  padding: var(--spacing-5);
  background: var(--theme-accent);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.dark-mode
  #post-results
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-shell {
  background: var(--theme-accent);
}

/* Sticky thumbnail */
#post-results
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-shell
  .sticky-thumbnail {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

#post-results
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-shell
  .sticky-thumbnail
  img {
  width: 110px;
  height: 110px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

/* Sticky title */
#post-results .article--container.shorts-audio-card.audio-player-sticky .shorts-audio-sticky-title {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

#post-results
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-title
  h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Close button */
#post-results .article--container.shorts-audio-card.audio-player-sticky .shorts-audio-sticky-close {
  grid-column: 3;
  grid-row: 1;
  position: absolute;
  top: 0;
  right: var(--spacing-5);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--theme-body);
  cursor: pointer;
  z-index: 10001;
  padding: 0;
}

.dark-mode
  #post-results
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-close {
  background: rgba(255, 255, 255, 0.9);
  color: var(--theme-body);
}

/* Player slot in sticky shell */
#post-results
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot {
  grid-column: 2 / span 2;
  grid-row: 2;
  width: 100%;
}

#post-results
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  .shorts-audio-player-host {
  width: 100%;
}

#post-results
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  audio {
  width: 100%;
}

/* Responsive styles */
@media (max-width: 767px) {
  #post-results
    .article--container.shorts-audio-card.audio-player-sticky
    .shorts-audio-sticky-shell {
    width: calc(100vw - 20px);
    bottom: var(--spacing-3);
    grid-template-columns: 72px minmax(0, 1fr) 32px;
    padding: var(--spacing-4);
  }

  #post-results .article--container.shorts-audio-card.audio-player-sticky .sticky-thumbnail,
  #post-results .article--container.shorts-audio-card.audio-player-sticky .sticky-thumbnail img {
    width: 72px;
    height: 72px;
  }

  #post-results
    .article--container.shorts-audio-card.audio-player-sticky
    .shorts-audio-sticky-title
    h3 {
    font-size: 1.2rem;
  }
}

/* Hide the top section when sticky */
#post-results .article--container.shorts-audio-card.audio-player-sticky .shorts-audio-top {
  display: none;
}

/* Hide the embed section when sticky (player moves to sticky shell) */
#post-results .article--container.shorts-audio-card.audio-player-sticky .shorts-audio-embed {
  display: none;
}

#post-results .article--container.shorts-audio-card .shorts-audio-embed {
  padding: var(--spacing-4) var(--spacing-4);
}

#post-results .article--container.shorts-audio-card .shorts-audio-embed,
#post-results .article--container.shorts-audio-card .shorts-audio-embed p,
#post-results .article--container.shorts-audio-card .shorts-audio-embed audio,
#post-results .article--container.shorts-audio-card .shorts-audio-embed .wp-audio-shortcode {
  width: 100%;
  display: block;
  margin: 0;
}

/* Audio player controls styling */
#post-results .article--container.shorts-audio-card .shorts-audio-embed .mejs-controls,
#post-results
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  .mejs-controls {
  background: var(--theme-accent) !important;
}

#post-results .article--container.shorts-audio-card .shorts-audio-embed .mejs-time-total,
#post-results
  .article--container.shorts-audio-card
  .shorts-audio-embed
  .mejs-horizontal-volume-total,
#post-results
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  .mejs-time-total,
#post-results
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  .mejs-horizontal-volume-total {
  background: rgba(15, 54, 46, 0.3) !important;
}

#post-results .article--container.shorts-audio-card .shorts-audio-embed .mejs-time-current,
#post-results
  .article--container.shorts-audio-card
  .shorts-audio-embed
  .mejs-horizontal-volume-current,
#post-results
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  .mejs-time-current,
#post-results
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  .mejs-horizontal-volume-current {
  background: var(--theme-secondary) !important;
}

#post-results .article--container.shorts-audio-card .shorts-audio-embed .mejs-time-loaded,
#post-results
  .article--container.shorts-audio-card.audio-player-sticky
  .shorts-audio-sticky-player-slot
  .mejs-time-loaded {
  background: rgba(15, 54, 46, 0.18) !important;
}

/* Hover effect for shorts video cards */
#post-results .article--container.shorts-video-card:hover .img-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.article--container .featured-image {
  position: relative;
  display: flex;
}

.latest-news .article--container .featured-image {
  margin-bottom: var(--spacing-5);
}

.article--container .featured-label {
  font-size: var(--font-xs);
  background: var(--theme-secondary);
  border-radius: 1rem;
  display: inline-flex;
  padding: var(--spacing-1) var(--spacing-4);
  color: var(--theme-white);
  margin: 0 0 var(--spacing-5) 0;
}

.dark-mode .article--container .featured-label {
  background: var(--theme-secondary);
  color: var(--theme-emerald-green);
}

.article--container .featured-image .post-icon {
  height: var(--spacing-9);
  width: var(--spacing-9);
  position: absolute;
  background: var(--theme-off-white);
  border-radius: 50%;
  right: var(--spacing-4);
  top: var(--spacing-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shorts .article--container > .post-icon {
  height: var(--spacing-9);
  width: var(--spacing-9);
  position: absolute;
  background: var(--theme-off-white);
  border-radius: 50%;
  right: var(--spacing-4);
  top: var(--spacing-4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.shorts .article--container > .post-icon span {
  color: var(--theme-pine-green);
  font-size: 0.8rem;
}

.shorts .shorts-thumbnail-wrapper {
  position: relative;
}

.shorts .shorts-thumbnail-wrapper .post-icon {
  height: var(--spacing-9);
  width: var(--spacing-9);
  position: absolute;
  background: var(--theme-off-white);
  border-radius: 50%;
  right: var(--spacing-4);
  top: var(--spacing-4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.shorts .shorts-thumbnail-wrapper .post-icon span {
  color: var(--theme-pine-green);
  font-size: 0.8rem;
}

.shorts .shorts-audio-thumbnail {
  position: relative;
}

.shorts .shorts-audio-thumbnail .post-icon {
  height: 24px;
  width: 24px;
  position: absolute;
  background: var(--theme-off-white);
  border-radius: 50%;
  right: var(--spacing-2);
  top: var(--spacing-2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.shorts .shorts-audio-thumbnail .post-icon span {
  color: var(--theme-pine-green);
  font-size: 0.6rem;
}

.list-view .article--container .featured-image .post-icon {
  zoom: 0.6;
}

.featured-image .post-icon span {
  color: var(--theme-pine-green);
  font-size: 0.8rem;
}

.article--container .featured-image.full-height img {
  height: 100%;
  object-fit: cover;
}

.featured-image .img-overlay {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 99%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38.06%, rgba(0, 0, 0, 0.8) 100%);
  border-radius: 8px;
}

.article--container .featured-image .title,
.article--container-headline {
  position: absolute;
  bottom: 24px;
  left: 24px;
  width: calc(100% - 48px);
}

.article--container-headline .title {
  position: relative !important;
  display: flex;
  flex-direction: column;
}
.article--container-headline .meta,
.article--container-headline .meta a {
  font-family: "Public Sans", sans-serif;
  color: var(--theme-off-white) !important;
}

.article--container .meta,
.article--container-headline .meta {
  font-size: var(--font-xs);
}

.article--container .meta {
  color: var(--theme-off-white);
  font-family: "Public Sans", sans-serif;
}

.article--container .featured-image .title h1 {
  font-size: var(--font-l);
  color: var(--theme-off-white);
  width: calc(100% - 48px);
  line-height: 1.27;
  overflow: hidden;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  max-width: calc(100% - 48px);
}

.article--container .featured-image .title h1.odd {
  font-size: var(--font-m);
}

.article--container .title h3 {
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0;
  line-height: 133.333%;
}

.article--container .post-meta,
.article--container .post-meta a,
.single-custom-story .wp-block-quote cite {
  color: var(--theme-emerald-green);
  font-size: var(--font-s);
  font-weight: 400;
}

.dark-mode .article--container .post-meta,
.dark-mode .article--container .post-meta a {
  color: var(--theme-pine-green-low);
}

.article--container .post-meta .date:before,
.article--container .meta .date:before {
  content: " · ";
}

.list-view .article--container .post-meta .date:before {
  content: "";
}

.article--container.bg-gray {
  background: var(--theme-soft-gray);
}

.article--container.bg-gray .title h3 {
  max-width: 100%;
}

.article--container.bg-gray img {
  border-radius: 0 0 5px 5px;
  object-fit: cover;
  height: 100%;
}

.article--container.bg-gray a {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

/* Sections */
.section--highlight .article--container {
  margin: 0 auto;
}
.section--highlight .article--container.narrow {
  width: 25%;
}
.section--highlight.videos .article--container {
  width: 100%;
}

.section--highlight .title {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.section--highlight .title.left {
  align-items: flex-start;
  flex-direction: column-reverse;
}

.section--highlight .meta {
  font-family: "Public Sans", sans-serif;
}

.section--highlight h1 span.icon:before {
  position: absolute;
  left: 1rem;
  top: calc(50% - 1rem);
  font-size: 2.3rem;
}

.sound-wave,
.dark-mode .sound-wave {
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

.sound-wave {
  background-image: url(/asset?u=https%3A%2F%2Fnews.mongabay.com%2Fwp-content%2Fthemes%2Fmongabay_v2%2Fimg%2Fsound-wave.svg);
}

.dark-mode .sound-wave {
  background-image: url(/asset?u=https%3A%2F%2Fnews.mongabay.com%2Fwp-content%2Fthemes%2Fmongabay_v2%2Fimg%2Fsound-wave-white.svg);
}

.section--headline .theme--button {
  margin: 0;
}

.section--headline h1 {
  font-size: var(--font-xxl);
  font-family: "Rowan Regular";
  font-weight: 400;
}

.section--headline.latest-videos {
  align-items: center;
  justify-content: space-between;
}

#section-features-latest .secondary .article--container img {
  height: 170px;
  object-fit: cover;
}

#section-features-latest .primary .article--container img {
  height: 360px;
  object-fit: cover;
}

/* Banners */
.banner {
  display: flex;
  flex-direction: column;
  border-radius: var(--rounded);
  align-items: center;
  height: max-content;
}

.banner.outlined {
  border: 1px solid var(--theme-medium-gray);
}

.dark-mode .banner.outlined {
  border-color: var(--theme-pine-green-low);
}

.banner.accent {
  background: var(--theme-accent);
}

.banner .inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: inherit;
}

.banner .title {
  align-items: start;
}

.banner .title h1 {
  font-size: var(--font-m);
  font-weight: 400;
  font-family: "Rowan Regular";
}

.banner .title h1.extra-large {
  font-size: var(--font-xxl);
}

.banner a.theme--button.primary {
  color: var(--theme-off-white);
}

.banner a.theme--button {
  width: max-content;
}

.banner a.theme--button.full-width {
  width: 100%;
}

/* Inspiration block */
.section--inspiration {
  background: var(--theme-secondary);
  min-height: 50vh;
  display: flex;
  align-items: center;
  flex-direction: row;
  padding: 80px 40px;
  color: var(--theme-off-white);
  box-sizing: border-box;
}
.dark-mode .section--inspiration {
  background: var(--theme-accent);
}

.section--inspiration .title {
  width: 50%;
  align-self: center;
}

.section--inspiration .title h1 {
  font-family: "Rowan Regular";
  font-weight: 400;
  font-size: 4.875rem;
  line-height: 115%;
}

.section--inspiration .items {
  display: flex;
  flex-direction: row;
  gap: 40px;
}
.section--inspiration .item-container {
  position: relative;
}
.section--inspiration .item-container:first-child {
  margin-bottom: 40px;
}
.section--inspiration .item-container img {
  border-radius: 16px;
  width: 100%;
  object-fit: cover;
  max-height: 200px;
  /* animation: move-up linear;
  animation-timeline: view();
  animation-range-start: 100px;
  animation-range-end: 1000px; */
}

.section--inspiration .item-container.first img {
  width: 50%;
}

.section--inspiration .item-container .item-title {
  background: rgba(7, 245, 197, 0.078);
  padding: 10px 24px;
  border-radius: 40px;
  position: absolute;
  display: flex;
  align-items: center;
  line-height: 70%;
  min-height: 70px;
  backdrop-filter: blur(1px);
}

.section--inspiration .item-container .item-title span:before {
  font-size: 1.6rem;
}

.section--inspiration .item-container .item-title a {
  color: var(--theme-off-white);
  font-size: var(--font-l);
  text-transform: lowercase;
  font-family: "Rowan Regular";
}

.section--inspiration .item-container.first .item-title {
  right: 40%;
  bottom: -30%;
}

.section--inspiration .item-container.second .item-title {
  left: -30%;
  bottom: 10%;
}

.section--inspiration .item-container.third .item-title {
  right: 53%;
  bottom: 10%;
}

.section--inspiration .item-container.second {
  margin-top: var(--spacing-14);
}

.section--inspiration .item-container.first img {
  width: 70%;
  height: auto;
}

.section--inspiration .item-container.second img {
  width: 80%;
  height: auto;
}

.section--inspiration .item-container a {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section--inspiration .item-container.third img {
  width: 52%;
  height: auto;
}

.section--highlight h1,
.section--highlight h3 {
  font-family: "Rowan Regular";
  font-weight: 400;
  max-width: 80%;
}

.section--highlight h1.text-center {
  margin: 0 auto;
}

.section--highlight.videos h1,
.section--highlight.videos h3 {
  max-width: 100%;
}

.section--highlight h1 {
  font-size: var(--font-xxl);
}

.section--highlight.full-width h1 {
  max-width: 100%;
}

.section--highlight h3 {
  font-size: var(--font-sm);
  line-height: normal;
  margin: 0;
}

.section--highlight h1 span {
  background: var(--theme-accent);
  border-radius: 40px;
  position: relative;
  color: var(--theme-secondary);
  padding: 0 1rem;
  display: inline-block;
}

.section--highlight h1 span.icon {
  padding: 0 1rem 0 4.5rem;
}

.section--highlight h1 span.outlined,
.section--highlight h1 span.outlined span {
  background: transparent;
}

.section--highlight h1 span.outlined {
  border: 2px solid;
  line-height: 1.3;
  margin: 0 5px 5px 0;
}

.section--highlight h1 span.outlined a {
  display: inline-flex;
  align-items: center;
}

.section--highlight h1 span.outlined a,
.section--highlight h1 span.outlined span.icon {
  color: var(--theme-body);
}

.section--highlight h1 span.outlined span.icon {
  font-size: 2rem;
  padding: 0 0 0 4rem;
}

.section--highlight h1 span.outlined:hover {
  background: var(--theme-body);
}

.section--highlight h1 span.outlined:hover a,
.section--highlight h1 span.outlined:hover a span.icon {
  color: var(--theme-off-white);
}

.dark-mode .section--highlight h1 span.outlined:hover {
  background: var(--theme-off-white);
  border: none;
}

.dark-mode .section--highlight h1 span.outlined:hover a,
.dark-mode .section--highlight h1 span.outlined:hover a span.icon {
  color: var(--theme-dark-green);
}

.section--highlight h2 {
  font-weight: 400;
}

#post-results h2 {
  font-size: clamp(1.5rem, 5vw + 0.5rem, var(--font-m));
  line-height: 1.2;
}

#series-slider .article--container {
  gap: 20px;
}

#series--description-container {
  display: flex;
  flex-direction: row;
}

#series--description-container .series--browse {
  align-items: end;
}
.section--highlight.series {
  height: 100%;
}
#series-slider .article--container .featured-image {
  height: 580px;
}

#series-slider .article--container img {
  object-fit: cover;
  height: 100%;
}

#formats-slider,
#formats-slider.slick-slider,
.slider-formats.slick-slider {
  height: max-content;
}

.article--container-headline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}

.section--series-more .title {
  position: relative !important;
}

.section--series-more h3 {
  font-size: var(--font-m);
  color: var(--theme-off-white);
}

.section--series-more a {
  height: 100%;
}

/* Topics slider */
.topics-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--spacing-8);
  aspect-ratio: 1;
}

/* Slick slider */
.slick-track {
  display: flex !important;
}

.slick-slide {
  height: inherit !important;
}

.slick-slide > div {
  height: 100%;
}

.slick-dotted.slick-slider {
  margin-bottom: 0;
}

a.slider-link {
  display: flex;
  flex-direction: column;
}

a.slider-link img {
  height: 100%;
  object-fit: cover;
}

.dark-mode .slick-dots li button:before {
  color: var(--theme-off-white);
}

.slick-slide .article--container,
.slick-slide .article--container .featured-image,
.slick-slide .article--container img,
.slick-slide .article--container a {
  height: 100%;
  object-fit: cover;
}

.slick-slide .article--container a {
  height: 100%;
}

/* Podcast player */
.podcast--player {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.podcast--player .podcast-link {
  align-self: flex-end;
}

.podcast--player .podcast-embed {
}

/* Dialogs */
#shorts-dialog a:focus-visible {
  outline: none;
}

#share-dialog,
#shorts-dialog {
  position: fixed;
  left: 0%;
  top: 0%;
  border: none;
  background: var(--theme-off-white);
  color: var(--theme-body);
  overflow-y: hidden;
}

#shorts-video-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  border-radius: 12px;
  background: #000;
  padding: 0;
  width: auto;
  max-width: 90vw;
  height: 80vh;
  max-height: 80vh;
  aspect-ratio: 9 / 16;
  overflow: visible;
}

#shorts-video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.dark-mode #share-dialog,
.dark-mode #shorts-dialog {
  background: var(--theme-dark-green);
}

#share-dialog .close,
#shorts-dialog .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: var(--spacing-3);
  cursor: pointer;
  color: var(--theme-secondary);
}

#shorts-video-dialog .close {
  position: absolute;
  top: var(--spacing-4);
  right: calc(-44px - var(--spacing-4));
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--theme-accent);
  color: var(--theme-secondary);
  cursor: pointer;
  font-size: 1.2rem;
}

#shorts-video-dialog .shorts-video-modal-body {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

#shorts-video-dialog .shorts-video-modal-body p,
#shorts-video-dialog .shorts-video-modal-body iframe {
  width: 100%;
  height: 100%;
  margin: 0;
}

#shorts-video-dialog .shorts-video-nav {
  position: absolute;
  right: calc(-44px - var(--spacing-4));
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--theme-accent);
  color: var(--theme-secondary);
  cursor: pointer;
  font-size: 1.2rem;
}

#shorts-video-dialog .shorts-video-prev {
  bottom: calc(50% + 30px);
}

#shorts-video-dialog .shorts-video-next {
  top: calc(50% + 30px);
}

#shorts-video-dialog .shorts-video-nav.hidden {
  display: none;
}

#shorts-dialog .back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: var(--spacing-3);
  cursor: pointer;
}

#share-dialog a:not(.close),
#shorts-dialog a:not(.close) {
  color: var(--theme-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-4);
}

#share-dialog a span {
  border-width: 1px;
  border-color: var(--theme-soft-gray);
  border-style: solid;
  border-radius: 100%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.dark-mode #share-dialog a span {
  border-color: var(--theme-secondary);
}

::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

dialog h1 {
  font-size: var(--font-m) !important;
  font-weight: 400;
  font-family: "Rowan Regular";
  color: var(--theme-body);
  display: block;
  max-width: 100% !important;
}

.dialog-content .title {
  display: block;
}

dialog label {
  font-size: var(--font-s);
  font-weight: 600;
}

dialog input {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--spacing-1);
  color: var(--theme-muted);
  padding: var(--spacing-3);
  font-size: var(--font-s);
  padding-right: var(--spacing-12);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-body {
  max-height: 520px;
  overflow-y: scroll;
}

.dark-mode #share-dialog input {
  border: 1px solid var(--theme-secondary);
  background: var(--theme-body);
}

.share-dialog-link {
  position: relative;
}

.dialog-content .title {
  display: block;
}

.icon-share svg {
  fill: var(--theme-body);
}

.icon-share-copy {
  position: absolute;
  right: var(--spacing-3);
  top: 40px;
  cursor: pointer;
}

.icon-share-copy svg {
  stroke: var(--theme-secondary);
}

/* Shorts page */
.shorts-trigger {
  cursor: pointer;
}

#shorts-dialog .post-content a {
  display: inline-block;
  font-weight: 600;
}

/* Byline archive */
.byline--overview.byline-avatar {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
}

.byline--overview.byline-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.byline--info h1 {
  font-size: var(--font-xl);
  font-family: "Rowan Regular";
  font-weight: 400;
}

.byline--info .role {
  color: var(--theme-pine-green);
}

.byline--info .email:before {
  content: "·";
  margin: 0 var(--spacing-4);
}

.dark-mode .byline--info .role,
.dark-mode .byline--info .email a {
  color: var(--accent-green) !important;
}

/* Search page */
.search #content {
  max-width: 100%;
  display: block;
  padding: 0 40px;
  margin-top: 40px;
}

.results-wrapper {
  width: 100%;
}

.search .search-input-wrapper {
  position: relative;
  width: 100%;
}

.search input::placeholder {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  font-family: "Public Sans", sans-serif;
  color: var(--theme-pine-green);
}

.dark-mode .tax-item-wrapper input,
.dark-mode input::placeholder {
  color: var(--theme-pine-green);
}

.dark-mode .search-input-wrapper svg path {
  stroke: var(--theme-off-white);
}

.search-input-wrapper svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18.001px;
  height: 18.001px;
  transform: translateY(-50%);
}

.tax-tag-topic,
.tax-tag-location {
  margin: 8px 8px 8px 0;
  padding: 4px 12px;
  border-radius: 40px;
  border: 1px solid #000;
  cursor: pointer;
  background: transparent;
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 22px;
  text-transform: capitalize;
}

.dark-mode .tax-tag-topic,
.dark-mode .tax-tag-location {
  border-color: var(--theme-secondary);
  color: var(--theme-secondary);
}

.search .dropdown span {
  display: block;
  width: 100%;
  cursor: pointer;
  margin: 4px 0;
  color: rgba(0, 0, 0, 0.32);
}

.dark-mode .dropdown span {
  color: var(--accent-green);
}

.search .dropdown span mark {
  color: var(--theme-body);
  background-color: transparent;
}

.dark-mode .dropdown span mark {
  color: rgba(7, 245, 197, 0.4) !important;
}

.search-input-wrapper button {
  position: absolute;
  right: 17px;
  top: 19px;
}

.search-input-wrapper button:after {
  content: "\e803";
  cursor: pointer;
  font-size: 10px;
  font-family: "fontello";
}

.search .tax-item-wrapper button:after {
  content: "\e803";
  margin-left: 6px;
  cursor: pointer;
  font-size: 10px;
  font-weight: lighter;
  font-family: "fontello";
}

.post-icon span.icon.icon-shorts:before {
  font-size: 8px !important;
  margin-left: -8px;
}

.dark-mode .search .tax-item-wrapper button:after {
  color: var(--accent-green);
}

button.clear-button {
  display: flex;
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center;
  height: 20px;
  width: 20px;
  justify-content: center;
}

.dark-mode button.clear-button {
  color: var(--accent-green);
}

button.clear-button:after {
  margin-left: 0;
}

.search-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.search .tax-wrapper {
  margin: 0;
  width: 100%;
  display: flex;
  gap: 8px;
}

.search .tax-item-wrapper {
  position: relative;
  background: rgba(15, 54, 46, 0.07);
  border-radius: 5px;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  width: 32.949%;
  padding: 6.5px 20px;
  align-items: flex-start;
}

.tax-item-wrapper button:not(.clear-button) {
  background: transparent;
  border: 1px solid var(--theme-body);
  padding: var(--spacing-3) var(--spacing-4);
  cursor: pointer;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  margin: var(--spacing-1);
  color: var(--theme-body);
  font-size: 1rem;
}

.dark-mode .search .tax-item-wrapper,
.dark-mode .search input#searchInput {
  background: rgba(3, 117, 94, 0.4);
}

.search .tax-item-wrapper input {
  padding: 14px 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: flex-start !important;
  flex: 1 1 0%;
  font-size: 16px;
}

.search input#searchInput {
  padding: 16px 16px 16px 48px;
  width: 100%;
  border: none;
  font-size: 1rem;
  background: rgba(15, 54, 46, 0.078);
  min-height: 60px;
  font-family: "Public Sans", sans-serif;
}

.dark-mode input {
  color: var(--theme-secondary);
}

.dark-mode input#searchInput,
.dark-mode .tax-item-wrapper {
  background: #0f362e;
  color: var(--theme-body);
}

#topics-results,
#locations-results,
#formats-results,
#topics-suggestions,
#locations-suggestions,
#formats-suggestions,
#articles-suggestions {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  position: absolute;
  background: #eff1f0;
  z-index: 1;
  width: 100%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  min-height: max-content;
  left: 0;
  max-height: 200px;
  overflow-y: auto;
}

.dark-mode #topics-results,
.dark-mode #locations-results,
.dark-mode #formats-results,
.dark-mode #topics-suggestions,
.dark-mode #locations-suggestions,
.dark-mode #formats-suggestions,
.dark-mode #articles-suggestions {
  background: #0f362e;
}

#topics-suggestions span,
#locations-suggestions span,
#formats-suggestions span,
#articles-suggestions span {
  color: var(--theme-body);
}

.dark-mode #topics-suggestions span,
.dark-mode #locations-suggestions span,
.dark-mode #formats-suggestions span,
.dark-mode #articles-suggestions span {
  color: var(--theme-secondary);
}

.dark-mode #topics-results span,
.dark-mode #locations-results span,
.dark-mode #formats-results span,
.dark-mode #articles-results span {
  color: rgba(222, 250, 206, 0.58);
}

input:focus-visible {
  outline: none;
}

.search .suggestions {
  display: flex;
  gap: 28px;
}

.search .suggestion-item a {
  font-family: "Rowan Regular";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  color: var(--theme-pine-green);
}

.dark-mode .search .suggestion-item a {
  color: var(--accent-green);
}

.search #default,
.search #no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 120px 0;
}

.search #default h1,
.search #no-results h1 {
  font-family: "Rowan Regular";
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  margin-bottom: 40px;
  text-align: center;
}

input#featured[type="checkbox"] {
  accent-color: var(--theme-pine-green) !important;
  background-color: var(--theme-pine-green) !important;
}

#results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
}

#results-header .theme--button {
  margin: 0;
}

#list-view,
#results-view-toggles button:last-child {
  font-size: 0;
  color: transparent;
  background-color: transparent;
  border: none;
}

#list-view:before {
  content: "\e80d";
  font-family: "fontello";
  color: var(--theme-pine-green);
  font-size: 16px;
  vertical-align: middle;
  padding: 10px;
}

.dark-mode #grid-view:before {
  color: var(--theme-secondary);
}

#list-view.active:before {
  border-radius: 24px;
  background-color: var(--theme-pine-green);
  padding: 13px;
  color: #fff;
}

.dark-mode #list-view.active:before {
  background-color: var(--theme-secondary);
  color: #000;
}

#results-view-toggles button.active:last-child:before,
#results-view-toggles button.active:last-child:before {
  content: "\e805";
  border-radius: 24px;
  background-color: var(--theme-pine-green);
  padding: 13px;
  color: #fff;
}

.dark-mode #results-view-toggles button.active:last-child:before {
  background-color: var(--theme-secondary);
  color: #000;
}

#results-view-toggles button:last-child:before {
  content: "\e805";
  border-radius: 24px;
  background-color: transparent;
  padding: 10px;
  color: var(--theme-pine-green);
  font-family: "fontello";
  font-size: 16px;
  vertical-align: middle;
}

.dark-mode #results-view-toggles button:last-child:before {
  color: var(--theme-secondary);
}

#post-results {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 750px;
}

#results-header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.dark-mode #results-view-toggles {
  background: var(--theme-pine-green-alpha);
}

#post-results.grid-view {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  width: 100%;
}

/* Masonry layout for shorts in search results - fallback using CSS columns */
#post-results.shorts-masonry {
  display: block;
  column-count: 3;
  column-gap: 40px;
  width: 100%;
}

#post-results.shorts-masonry .article--container {
  break-inside: avoid;
  margin-bottom: 40px;
  display: block;
  width: 100%;
}

/* When Masonry.js is initialized */
#post-results.shorts-masonry[data-masonry-init="true"] {
  column-count: initial;
}

#post-results.shorts-masonry[data-masonry-init="true"] .article--container {
  position: relative;
}

#post-results.list-view {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

#post-results.list-view .post-img-container {
  height: 80px;
  width: 80px;
}

#post-results.list-view a {
  display: grid;
  gap: 20px;
  grid-template-columns: 100px 1fr calc(50% - 100px);
  align-items: center;
}

#post-results.list-view a.no-image {
  grid-template-columns: auto calc(50% + 100px);
}

#results-view-toggles {
  display: flex;
  justify-content: flex-end;
  padding: 4px;
  width: 88px;
  float: right;
  height: 48px;
  border-radius: 24px;
  border: 1px solid rgba(15, 54, 46, 0.1);
}

.dark-mode #results-view-toggles {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-img-container {
  max-height: 188px;
  overflow: hidden;
  border-radius: 8px;
}

.dark-mode .search .post-meta {
  color: var(--accent-green) !important;
}

.list-view .post-meta {
  display: grid;
  grid-template-columns: 2fr 1fr 0.2fr;
}

.list-view .post-meta span {
  margin: 0 4px;
}

.grid-view .meta-author:after {
  content: " · ";
}

.list-view .post-meta:after {
  content: "\e80f";
  font-family: "fontello";
  text-align: right;
  font-size: 16px;
  float: right;
  color: var(--theme-pine-green);
}

.post-meta span {
  color: var(--theme-pine-green);
  font-family: "Public Sans", sans-serif;
}

.dark-mode .post-meta span {
  color: var(--theme-pine-green-low);
}

.dark-mode .search .results-footer button {
  color: #000;
  background: var(--theme-secondary);
}

.hide {
  display: none !important;
}

.results-footer {
  display: flex;
  justify-content: center;
  padding: 60px 0 80px;
}

.tax-search-actions,
.search-actions {
  position: absolute;
  top: 2px;
  margin-right: 5px;
  display: flex;
  right: 0;
  height: calc(100% - 2px);
  flex-direction: column;
}
.search-actions {
  width: 20px;
}

.preloader-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.preloader-wrapper svg {
  height: 22px;
}

/* Tooltip */
.extra-tooltip {
  position: relative;
  display: inline-flex;
  height: 22px;
}

.extra-tooltip .tooltiptext {
  visibility: hidden;
  width: max-content;
  background-color: #fff;
  color: #000;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -40px;
  z-index: 10;
  font-size: 0.8em;
}

.extra-tooltip:hover .tooltiptext {
  visibility: visible;
}

.extra-tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
}

.search-actions .tooltiptext {
  top: 200%;
  margin-left: -75px;
}

/* General pages */
#general-page h1 {
  font-size: clamp(1.5rem, 5vw + 1rem, var(--font-xxl));
  line-height: 1.2;
}

#general-page h1.jumbo {
  font-size: clamp(2rem, 5vw + 1rem, var(--font-jumbo));
  line-height: 1.1;
}

#general-page h2 {
  font-size: clamp(1.5rem, 5vw + 0.5rem, var(--font-xl));
  line-height: 1.2;
}

#general-page h3 {
  font-size: clamp(1.2rem, 5vw + 0.5rem, var(--font-m));
  line-height: 1.2;
}

#general-page.narrow {
  max-width: 980px;
  margin: 0 auto;
}

#general-page .inner {
  max-width: 780px;
}

#general-page .inner.centered {
  margin: 0 auto;
}

#general-page p a {
  color: var(--theme-body);
  text-decoration: underline;
  font-weight: 700;
}

#general-page h1.arrow-left {
  color: var(--theme-pine-green);
}

#general-page h1.arrow-left:before {
  content: "\e802";
  font-family: "fontello";
  font-size: 2.4rem;
  margin-right: 1rem;
}

#general-page .bulletpoints p {
  margin-left: 3.3rem;
}

#general-page .open-sans {
  font-family: "Public Sans", sans-serif !important;
}

/* Mongabay tools */
.tools-item {
  height: 250px;
  border-radius: var(--spacing-6);
  overflow: hidden;
  max-width: 421px;
}

.tools-item img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  max-width: 421px;
}

/* Single post */
.single-videos .video iframe {
  width: 100%;
  height: max-content;
  aspect-ratio: 16 / 9;
  border-radius: var(--rounded);
}

.article-headline h1 {
  font-size: clamp(2rem, 3vw + 1rem, var(--font-xl));
  font-family: "Rowan Regular";
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}

.single .about-author {
  display: flex;
  align-items: center;
}

.single .author-avatar {
  border-radius: 50%;
  overflow: hidden;
  width: 48px;
  height: 48px;
}

.single .author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single .meta-author-circle {
  width: 48px;
  height: 48px;
  background: var(--theme-pine-green);
  display: flex;
  border-radius: 50%;
}

.single .extra-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.single .extra-info span.bylines a {
  font-size: var(--font-s);
  color: var(--theme-emerald-green);
  font-weight: 600;
}

.single.dark-mode .extra-info span.bylines a,
.single.dark-mode .extra-info a {
  color: var(--theme-pine-green-low);
}

.single .extra-info a {
  color: var(--theme-emerald-green);
  font-weight: 600;
}

.single .extra-info .post-meta {
  display: flex;
  flex-direction: row;
}

.single .extra-info span {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.1;
}

.single .post-meta {
  display: flex;
  flex-wrap: wrap;
}

.single span.taxonomy:before {
  content: "·";
  margin: 0 4px;
  color: var(--theme-soft-gray);
}

.single .meta-comments-count,
.single .social {
  height: 32px;
  padding: var(--spacing-1) var(--spacing-5);
  justify-content: center;
  align-items: center;
  border-radius: 80px;
}

.single .article-cover-image {
  margin: 24px 0 80px 0;
}

.single .article-cover-image > div {
  min-height: 675px;
  border-radius: var(--rounded);
}

.single .article-cover-image.cover-image-16-9 > div {
  min-height: 675px;
}

.single .article-cover-image__bg {
  background-image: var(--cover-image-large);
  background-size: cover;
  background-position: center;
  width: 100%;
}

.single .row > #main {
  padding: 0 10%;
}

.single .bulletpoints-wrapper {
  position: relative;
  margin-bottom: 3rem;
}

.single .bulletpoints {
  height: 160px;
  overflow: hidden;
}

.single .bulletpoints.visible {
  height: max-content;
  display: flex;
}

.single .bulletpoints ul {
  padding-left: 1rem;
}

.single .bulletpoints ul li {
  margin-bottom: 1rem;
}

.single .inner {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.single .banner .inner {
  max-width: 100%;
}

.single figure {
  margin: 40px 0;
}

.single figcaption {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: var(--spacing-3) 0;
}

#expander-container:not(.visible):before {
  content: "";
  display: block;
  width: 100%;
  height: 30px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--theme-body-white),
    var(--theme-body-white)
  );
  position: absolute;
  top: -22px;
}

.dark-mode #expander-container:before {
  background: linear-gradient(
    to bottom,
    transparent,
    var(--theme-dark-green),
    var(--theme-dark-green)
  );
}

#expander-container.visible:before {
  display: none;
}

#expander-container {
  position: relative;
}

.content-expander {
  width: 100%;
  height: max-content;
  left: 0;
  bottom: 0;
  border: none;
  display: flex;
  position: relative;
  align-content: center;
  justify-content: center;
  align-items: flex-end;
  padding: var(--spacing-4);
  background: transparent;
}

.content-expander span {
  color: var(--theme-pine-green);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.content-expander span:after {
  content: "\e80c";
  margin-left: var(--spacing-4);
  font-family: "fontello";
  font-weight: 100;
  font-size: 1.25rem;
  vertical-align: middle;
}

.content-expander.visible {
  background: transparent !important;
}

.content-expander.visible span:after {
  content: "\e809";
}

.single #main figure {
  margin: 40px 0;
}

.single #main figure > img {
  border-radius: var(--rounded);
}

.single #main figure .wp-caption-text {
  font-size: 14px;
  line-height: 160%;
  padding-top: 10px;
}

#single-article-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

#single-article-tags a {
  margin: var(--spacing-1);
  padding: var(--spacing-1) var(--spacing-5);
  border-radius: var(--spacing-11);
  background: var(--theme-off-white);
  font-size: 1rem;
  color: var(--theme-body);
  text-wrap: nowrap;
  height: max-content;
  text-transform: lowercase;
}

.dark-mode #single-article-tags a {
  color: var(--theme-emerald-green);
}

#single-article-tags a:hover {
  opacity: 0.8;
}

#single-article-tags .section-title {
  width: 100%;
}

#article-taxonomies,
#transcript {
  overflow: hidden;
  align-content: flex-start;
}

#article-taxonomies {
  height: 130px;
  overflow: hidden;
}

#transcript {
  position: relative;
  height: 450px;
}

#transcript ul {
  padding: 0 0 0 1rem;
}

#article-taxonomies.visible,
#transcript.visible {
  height: max-content;
  overflow: visible;
}

#single-article-footer .extra-info span {
  color: var(--theme-body);
}

.single-article-meta {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
}

.single-article-meta .theme--button {
  margin: 0;
}

/* Shorts */
.dark-mode .shorts .bg-gray {
  background: var(--theme-accent);
}

/* Single Custom-story */

.single-custom-story .wp-block-embed.is-type-video:nth-of-type(1) .wp-block-embed__wrapper,
.single-custom-story .wp-block-cover,
.single-custom-story .wp-block-code {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.single-custom-story .wp-block-separator,
.single-custom-story h2.wp-block-heading {
  margin: var(--spacing-11) 0;
}

.single-custom-story .wp-block-quote {
  background-color: var(--theme-secondary-alpha);
  padding: var(--spacing-14);
  border-radius: var(--rounded);
  margin: var(--spacing-11) 0;
}

.single-custom-story .wp-block-quote p {
  font-family: Cardo;
  font-size: var(--font-l);
  font-weight: 400;
  line-height: 120%;
}

.single-custom-story.dark-mode .wp-block-quote cite {
  color: var(--accent-green);
}

.single-custom-story .wp-block-verse {
  padding: var(--spacing-11) var(--spacing-6);
}

.single-custom-story .wp-block-verse.has-background {
  background-color: var(--theme-secondary-alpha) !important;
}

.single-custom-story .wp-block-cover,
.single-custom-story .custom-story > .iframe-class {
  margin: var(--spacing-11) 0;
}

.single-custom-story .wp-block-cover__inner-container {
  max-width: 780px !important;
}

.single-custom-story .wp-block-code {
  background-color: var(--theme-secondary-alpha);
  margin-bottom: var(--spacing-11);
  margin-top: var(--spacing-11);
  padding: var(--spacing-11) 0;
}

/* Soliloquy slider */
.soliloquy-container {
  overflow: hidden !important;
}

.single-custom-story .wp-block-soliloquy-soliloquywp {
  margin: var(--spacing-13) 0;
}

.soliloquy-carousel .soliloquy-pager {
  display: none;
}

.soliloquy-carousel .soliloquy-controls-direction a {
  position: relative;
  background-image: none;
  background-color: transparent;
  border: 1px solid #03755e;
  padding: var(--spacing-6);
}

.soliloquy-carousel .soliloquy-next {
  right: 0 !important;
  margin-top: -42px !important;
  border-radius: 0 50% 50% 0;
}

.soliloquy-carousel .soliloquy-controls-direction a span {
  position: absolute;
  top: 12px;
  margin-left: -3px;
}

.soliloquy-carousel .soliloquy-controls-direction a span:before {
  font-size: var(--font-s);
  color: var(--theme-pine-green);
  display: inline;
  font-family: "fontello";
}

.soliloquy-carousel .soliloquy-controls-direction a:hover {
  background: var(--theme-pine-green);
}

.soliloquy-carousel .soliloquy-controls-direction a:hover span:before {
  color: var(--theme-off-white);
}

.soliloquy-carousel .soliloquy-prev span:before {
  content: "\e80b";
}

.soliloquy-carousel .soliloquy-next span:before {
  content: "\e80a";
}

.soliloquy-carousel .soliloquy-prev {
  left: unset !important;
  right: 41px !important;
  border-radius: 50% 0 0 50%;
}

.soliloquy-carousel .soliloquy-caption {
  position: relative !important;
  display: block !important;
}

.soliloquy-carousel .soliloquy-viewport {
  width: 100vw !important;
}

.soliloquy-carousel .soliloquy-item {
  width: 370px !important;
  margin-right: var(--spacing-11) !important;
}

.soliloquy-outer-container.soliloquy-carousel {
  margin: var(--spacing-11) 0;
  height: auto;
  overflow: visible;
}

.soliloquy-carousel .soliloquy-caption-inside {
  padding: var(--spacing-11) !important;
  min-height: max-content;
  background: rgba(15, 54, 46, 0.07) !important;
  text-shadow: none !important;
  text-align: left !important;
  font-size: var(--font-s) !important;
  line-height: 170% !important;
  border-radius: 0 0 8px 8px;
}

.single-custom-story:not(.dark-mode) .soliloquy-carousel .soliloquy-caption-inside {
  color: var(--theme-black);
}

.soliloquy-container .soliloquy-image {
  border-radius: var(--spacing-3) var(--spacing-3) 0 0;
}

/* Related articles slider  */
.related--slider {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: calc(200% + 20px);
  gap: 20px;
  overflow-x: scroll;
}

.related--slider-container {
  overflow-x: scroll;
}

.related--slider .article--container {
  width: 25%;
}

.related--slider-nav {
  display: flex;
  gap: 0;
}

.related--slider-nav .prev,
.related--slider-nav .next {
  border: 1px solid var(--theme-muted);
  padding: var(--spacing-5);
  background: transparent;
  opacity: 0.3;
  cursor: pointer;
}

.related--slider-nav .prev {
  border-radius: 50% 0 0 50%;
  border-right: none;
}

.related--slider-nav .next {
  border-radius: 0 50% 50% 0;
}

.related--slider-nav .prev.active,
.related--slider-nav .next.active {
  border-color: var(--theme-pine-green);
  color: var(--theme-pine-green);
  opacity: 1;
}

.related--slider-nav .prev.active,
.related--slider-nav .next.active {
  border: 1px solid var(--theme-pine-green);
}

.related--slider-nav .next {
  border-left: none;
}

span.slider-dot {
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--theme-pine-green);
  border-radius: 50%;
}

.related--slider-dots {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-3);
  margin: 0 var(--spacing-5);
}

span.slider-dot.active {
  background: var(--theme-pine-green);
}

/* Pagination */
span.page-numbers.current,
.pagination a.prev,
.pagination a.next {
  color: var(--theme-pine-green);
}

span.page-numbers,
.pagination a {
  color: #c1c1c1;
}

a.prev.page-numbers,
a.next.page-numbers {
  font-size: 0;
}

a.prev.page-numbers:before,
a.next.page-numbers:before {
  font-family: "fontello";
  font-size: 1rem;
}

a.prev.page-numbers:before {
  content: "\e806";
}

a.next.page-numbers:before {
  content: "\e802";
}

/* Contact page */

.contact .is-position-sticky,
.legals .is-position-sticky {
  top: var(--spacing-13);
}

.contact h4.wp-block-heading,
.contact ul.no-bullets li a:hover {
  color: var(--theme-pine-green) !important;
  font-weight: 600;
}

.dark-mode .contact h4.wp-block-heading,
.dark-mode .contact ul.no-bullets li a:hover {
  color: var(--theme-secondary) !important;
}

/* Featured articles, legacy support */
.container-featured {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.container-featured h1,
.container-featured .extra-info span,
.container-featured .extra-info span a {
  color: var(--theme-off-white) !important;
  text-shadow: 0 0 var(--spacing-3) var(--theme-black);
}

/* Footer */
ul.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  padding: 4px 0;
  margin: 0;
}

.footer-links li a {
  text-decoration: none;
  color: var(--theme-body);
}

footer .grid--4 {
  align-items: start;
}

.newsletter-option {
  position: relative;
  cursor: pointer;
}

.newsletter-option.selected {
  background: var(--theme-dark-green);
  color: var(--theme-body-white);
}

.newsletter-option.selected:after {
  content: "–";
  background: var(--theme-body-white);
  color: var(--theme-dark-green);
  border: 1px solid var(--theme-dark-green);
}

.newsletter-option:after {
  content: "+";
  width: 40px;
  height: 40px;
  border-radius: 40px;
  background: var(--theme-dark-green);
  position: absolute;
  top: -20px;
  right: -20px;
  color: #fff;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

#subscribe-email,
#subscribe-name,
#subscribe-last-name,
#subscribe-company {
  width: 100%;
  padding: var(--spacing-3) var(--spacing-4);
  font-size: var(--font-sm);
  color: var(--theme-body);
  border: none;
  border-bottom: 1px solid var(--theme-body);
}

#subscribe-email.input-error,
#subscribe-name.input-error,
#subscribe-last-name.input-error {
  border-bottom: 1px solid var(--theme-red);
}

#newsleter-subscribe {
  min-width: fit-content;
}

#step-2,
#step-3 {
  display: none;
}

@media (min-width: 769px) {
  .desktop-section-headline {
    align-items: center;
    justify-content: space-between;
  }

  #series-slider .article--container {
    flex-flow: initial;
  }

  .article--slide.collapsed {
    width: 100px !important;
  }

  .article--slide.collapsed .title {
    display: none;
  }

  .article--slide.expanded {
    width: calc(100% - 350px) !important;
  }

  .article--slide {
    transition: width 0.5s ease-in-out;
  }

  #series-slider {
    height: 580px;
  }

  /* .section--inspiration .column--60 > .item-container:last-child img {
    height: 296px;
    width: 296px;
  }

  .section--inspiration .column--60 > .item-container.first img {
    width: auto;
    height: 150px;
  } */

  .section--inspiration .item-container.second {
    margin-top: var(--spacing-14);
  }

  /* .section--inspiration .column--40 > .item-container.second img {
    width: 218px;
    height: 133px;
  } */

  /* .section--inspiration .column--40 > .item-container.third img {
    width: 60%;
  } */

  .single-custom-story .wp-block-embed.is-type-video:nth-of-type(1) iframe {
    min-width: 100%;
    min-height: 810px;
  }

  .soliloquy-carousel .soliloquy-controls {
    position: absolute !important;
    left: 745px;
    top: -40px;
  }

  .single-custom-story .wp-block-code code {
    max-width: 780px;
    margin: var(--spacing-11) auto !important;
  }

  .d-hide {
    display: none !important;
  }
}

@media only screen and (max-width: 768px) {
  header.header {
    position: sticky;
    background: var(--theme-white);
    left: 0;
    top: 0;
    z-index: 10;
    box-shadow: 0px 0px 6px rgb(135 135 135 / 21%);
  }
  .headline h1 {
    margin: var(--spacing-4) 0;
    line-height: 1.1;
  }

  /* Masonry responsive - 2 columns on tablets */
  .shorts.grid--3,
  #post-results.shorts-masonry {
    column-count: 2;
    column-gap: 20px;
  }

  .shorts.grid--3 .article--container,
  #post-results.shorts-masonry .article--container {
    margin-bottom: 20px;
  }

  .container {
    flex-direction: column;
  }
  .container.content {
    padding: 40px 20px;
  }
  .menu-container {
    height: fit-content;
  }
  [class*="column--"] {
    width: 100%;
  }
  .branding {
    width: 175px;
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .wrap {
    flex-wrap: wrap !important;
  }
  dialog#share-dialog .grid--4 {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  #share-dialog,
  #shorts-dialog {
    min-width: 90%;
  }

  .dialog-body {
    max-height: 480px;
    overflow-y: scroll;
  }

  #shorts-overview .dialog-footer {
    flex-direction: row;
  }

  .md-hide {
    display: none !important;
  }

  header .container {
    flex-direction: row;
  }

  #off-canvas {
    display: none;
  }

  #off-canvas.active {
    display: flex;
  }

  #off-canvas,
  #off-canvas .container {
    flex-direction: column-reverse;
    height: calc(100vh - 40px);
    box-sizing: border-box;
  }
  ul.main-menu.nav-desktop {
    display: none;
  }
  #off-canvas ul.main-menu.nav-desktop.off-canvas {
    column-count: 1;
    display: inline-flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: flex-start;
    align-items: flex-start;
    gap: 0;
  }
  #off-canvas ul.global-languages,
  #off-canvas ul.global-languages li {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: var(--spacing-3);
    flex-direction: row;
    max-width: 100%;
  }

  #off-canvas ul.global-languages li a {
    color: var(--theme-off-white-alpha);
    font-weight: 400;
  }

  #off-canvas ul.global-languages li a.active {
    color: var(--theme-off-white);
    font-weight: 600;
  }

  #off-canvas .icon-cancel {
    position: absolute;
    right: var(--spacing-5);
    top: var(--spacing-5);
    color: var(--theme-accent);
  }

  #off-canvas .global-nav {
    margin-bottom: var(--spacing-11);
  }

  .single .row > #main {
    padding: 0;
  }

  .single iframe.wp-embedded-content {
    width: 100%;
  }

  .latest-news {
    order: 3;
    gap: 20px;
  }

  .latest-featured {
    order: 1;
  }

  .latest-banners {
    order: 2;
  }

  .article--container .featured-image .title {
    width: 100%;
    bottom: 0;
    left: 0;
    gap: 0;
  }

  .article--container .featured-image .title h1 {
    font-size: 1.5rem;
  }

  .article--container .title h3 {
    /* font-size: 1em; */
  }

  .article--container-headline {
    padding: var(--spacing-6);
  }

  .banner .title h1.extra-large,
  .section--highlight h1,
  .section--headline h1,
  .section--inspiration .title h1 {
    font-size: clamp(1.2rem, 8vw + 0.5rem, 2.625rem);
    line-height: 1.1;
  }

  .section--highlight h1 {
    max-width: 100%;
  }

  .section--highlight .article--container.narrow {
    width: 50%;
  }

  .section--inspiration {
    padding: 40px 20px;
    box-sizing: inherit;
  }

  .section--inspiration .title {
    width: 100%;
    margin-bottom: 100px;
  }

  .section--inspiration .item-container:first-child {
    margin-bottom: 40px;
    top: -40px;
  }

  .section--inspiration .item-container .item-title a {
    font-size: 1.6rem;
  }

  .section--inspiration .item-container .item-title {
    min-width: max-content;
    padding: var(--spacing-4) var(--spacing-5);
    min-height: min-content;
  }

  .section--inspiration .item-container.first .item-title {
    right: 12%;
    bottom: -40%;
  }

  .section--inspiration .item-container.third .item-title {
    right: 36%;
    bottom: 10%;
  }

  .section--inspiration .item-container.first img,
  .section--inspiration .item-container.second img {
    width: 100%;
  }

  .section--headline.latest-videos {
    align-items: unset;
  }

  .latest-series .grid--2,
  .latest-series .grid--3 {
    grid-template-columns: 1fr;
  }

  #series--description-container,
  .section--series-more .in-row {
    flex-direction: column;
  }

  .section--series-more .grid--3 {
    grid-template-columns: 1fr;
  }

  #series--description-container .series--browse {
    align-items: initial;
  }

  .section--highlight.series .featured-image:first-child {
    min-height: 60vh;
  }

  .section--highlight.series .featured-image:first-child img {
    object-fit: cover;
    height: 50vh;
  }

  .single .article-cover-image > div {
    min-height: calc(100vw * 9 / 16);
  }

  .single .article-cover-image.cover-image-16-9 > div {
    min-height: calc(100vw * 9 / 16);
  }

  .single .article-cover-image__bg {
    background-image: var(--cover-image-medium);
  }

  .single h3 {
    line-height: 1.2;
    margin-bottom: 20px;
  }

  #series-slider .article--container .featured-image,
  .article--slide.expanded {
    height: 400px;
  }

  .article--slide.collapsed {
    width: 100% !important;
    height: 52px !important;
  }

  .article--slide.collapsed,
  .article--slide.expanded {
    overflow: hidden;
    border-radius: var(--rounded);
  }

  .slick-slider {
    height: 405px;
  }

  #article-taxonomies {
    position: relative;
    width: 100%;
    display: inline-flex;
    flex-direction: row;
  }

  .search .tax-wrapper {
    flex-direction: column;
  }

  .search .tax-item-wrapper {
    width: 100%;
    padding: var(--spacing-4);
  }

  .search .results-wrapper {
    margin-top: var(--spacing-11);
  }

  .search .tax-wrapper {
    gap: 0;
  }

  .search .article--container .featured-image .post-icon {
    height: var(--spacing-6);
    width: var(--spacing-6);
    position: absolute;
    right: var(--spacing-2);
    top: var(--spacing-2);
  }

  .search .article--container .featured-image .post-icon span {
    font-size: 0.5rem;
  }

  .suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-3);
  }

  #post-results.grid-view {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: var(--spacing-11);
  }

  #post-results .article--container a {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  #post-results .article--container .post-meta {
    display: inline-flex;
    flex-wrap: wrap;
  }

  #post-results .article--container img {
    width: 100%;
    border-radius: 5px;
    height: 75px;
    object-fit: cover;
  }

  .pagination {
    flex-direction: row;
  }

  .single .post-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .single .article-headline {
    flex-direction: column;
  }

  .single-article-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .single-article-meta .social {
    display: block;
    height: max-content;
    margin: 20px 0 0 0;
    padding: 0;
  }

  .byline--overview.byline-avatar {
    width: 110px;
    height: 110px;
  }

  .byline--info h1 {
    font-size: 2rem;
  }

  /* Subscribe form */
  #step-2 .container.action-buttons {
    flex-direction: row;
    gap: var(--spacing-11);
  }

  /* Contact page */
  .contact .is-position-sticky,
  .legals .is-position-sticky {
    display: none;
  }

  .contact .wp-block-group-is-layout-flex {
    flex-direction: column;
    width: 100%;
  }

  .contact hr.spacer,
  .legals hr.spacer {
    margin: var(--spacing-6) 0;
  }

  .soliloquy-outer-container.soliloquy-carousel {
    overflow: hidden;
  }

  .soliloquy-carousel .soliloquy-item {
    min-width: 320px !important;
  }

  .single-custom-story .wp-block-embed iframe {
    max-width: unset;
  }

  .single-custom-story .soliloquy-controls {
    display: none;
  }

  .latest-series .article--container .featured-image .title {
    bottom: var(--spacing-7);
    left: var(--spacing-7);
  }

  .single-custom-story .wp-block-quote p {
    font-size: var(--font-sm);
  }

  .sound-wave {
    background-size: 200%;
  }

  footer .section-title {
    display: flex;
    align-items: flex-start;
  }

  footer .section-title .divider {
    width: 100%;
  }
}

/* Alerts Page */
.alerts-page {
  position: relative;
  width: 100%;
  height: calc(100vh - 48px);
  overflow: hidden;
  background: rgb(10, 15, 30);
}

.alerts-globe {
  width: 100%;
  height: 100%;
}

.alerts-panel {
  position: absolute;
  top: var(--spacing-8);
  left: var(--spacing-8);
  width: 420px;
  max-height: calc(100% - 60px);
  display: flex;
  flex-direction: column;
  z-index: 5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.alerts-filters-section {
  background: var(--theme-body-white);
  padding: var(--spacing-5);
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  position: relative;
}

.alerts-filters-scroll-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--theme-body);
  background: var(--theme-body-white);
  color: var(--theme-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.alerts-filters-scroll-btn:hover {
  background: var(--theme-body);
  color: var(--theme-body-white);
}

.alerts-filters-scroll-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.alerts-filters-scroll-btn .icon {
  font-size: 0.7rem;
}

.alerts-card-section {
  padding: var(--spacing-5);
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.alerts-card-section::-webkit-scrollbar {
  width: 6px;
}

.alerts-card-section::-webkit-scrollbar-track {
  background: transparent;
}

.alerts-card-section::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.alerts-card-section::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.alerts-pagination-section {
  background: var(--theme-body-white);
  padding: var(--spacing-5);
}

.alerts-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--spacing-3);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  scroll-behavior: smooth;
}

.alerts-filters::-webkit-scrollbar {
  display: none;
}

.alerts-filter-btn {
  padding: var(--spacing-3) var(--spacing-5);
  border-radius: 24px;
  border: 1px solid var(--theme-body);
  background: var(--theme-body-white);
  color: var(--theme-body);
  font-size: var(--font-xs);
  font-family: "Public Sans", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}

.alerts-filter-btn.active {
  background: var(--theme-body);
  color: var(--theme-off-white);
}

.alerts-card {
  background: var(--theme-body-white);
  border-radius: 16px;
  overflow: hidden;
}

.alerts-card-image-wrapper {
  position: relative;
  width: 100%;
}

.alerts-card-inner {
  padding: var(--spacing-6);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-5);
}

.alerts-card-location {
  position: absolute;
  top: var(--spacing-5);
  left: var(--spacing-5);
  font-size: var(--font-xs);
  color: var(--theme-body-white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.alerts-card-location::before {
  content: "📍";
  font-size: 1rem;
}

.alerts-card-image {
  width: 100%;
  position: relative;
}

.alerts-card-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0) 60%
  );
  pointer-events: none;
}

.alerts-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.alerts-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-4);
}

.alerts-card-topic {
  font-size: var(--font-xs);
  padding: var(--spacing-2) var(--spacing-5);
  border-radius: 20px;
  background: rgba(191, 236, 177, 0.3);
  color: var(--theme-emerald-green);
  font-weight: 600;
}

.alerts-card-date {
  font-size: var(--font-xs);
  color: #b0b0b0;
  font-weight: 400;
}

.alerts-card-title {
  font-family: "Rowan Regular";
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.4;
  margin: 0;
  color: var(--theme-body);
}

.alerts-card-excerpt {
  font-size: var(--font-xs);
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.alerts-card-link {
  text-align: center;
  margin-top: var(--spacing-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-3);
  padding: var(--spacing-5) var(--spacing-6);
  border-radius: 32px;
}

.alerts-pagination {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  justify-content: space-between;
}

.alerts-pagination button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--theme-accent);
  color: var(--theme-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.alerts-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.alerts-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  max-width: 300px;
}

.alerts-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--theme-medium-gray);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.2s,
    transform 0.2s;
}

.alerts-dot.active {
  background: var(--theme-emerald-green);
  width: 24px;
  border-radius: 5px;
}

.alerts-marker {
  width: 16px;
  height: 16px;
  background: var(--theme-red);
  border: 2px solid var(--theme-body-white);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.alerts-marker.active {
  transform: scale(1.5);
  background: var(--theme-emerald-green);
}

/* Mobile masonry - single column on small screens */
@media only screen and (max-width: 600px) {
  .shorts.grid--3,
  #post-results.shorts-masonry {
    column-count: 1;
    column-gap: 0;
  }

  .shorts.grid--3 .article--container,
  #post-results.shorts-masonry .article--container {
    margin-bottom: 20px;
  }
}

@media only screen and (max-width: 768px) {
  .alerts-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .alerts-globe {
    height: 50%;
  }

  .alerts-panel {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-height: 50%;
    background: var(--theme-body-white);
    border-radius: 16px 16px 0 0;
    margin-top: -16px;
    overflow-y: auto;
  }
}
